JCL's Tutorial On HTML Style
Usually a beginning programmer crams all the HTML code together making it difficult for his/her visitor to understand the document source. That is why good style is important in any type of programming. Do the tips listed below in your HTML code, not on your page. For example, when you double space, double space each line in the source, do not use the <br> tag twice to double space. Below are the guidelines that you should try to follow when creating your web page:
- Double space each line that does not flow with the text before. For example, the <p> tag and the paragraph itself would have a line between them. It is not necessary to skip lines between the lines of a paragraph.
- Triple space two lines that have nothing to do with each other such as the <html> tag and the <title> tag.
- Finish what you start. In other words, if you use the <body> tag, use the </body> at the end.
- If you have a paragraph of text that has nothing to do with the items above, use the <p> tag (paragraph tag) at the beginning of the paragraph and the </p> tag at the end. Do this to seperate the paragraph from the text before and after instead of the <br> tag.
- Place the <p> and </p> tags on their own line.
- If you start a command on its own line, place the command that ends it on its own line.
- Make it look neat. If it looks neat and it's easy to read, you did a good job.
That's about it. I know, that was probably the shortest and dumbest tutorial you've ever read, but good style is important. If you haven't learned that by now, you'll learn it later on.
JCL's HTML & JavaScript Tutorial
E-Mail Me