
Now, when you know some basic html tags, it's about time to study some rules you need to follow if you want make your life easier. When you create html page you may think it will not be necessary to modify it for a long time. Wrong. If you want your website has always "fresh" content it will defiantly require constant changes. You must be able to change your code easily. So there are some techniques, which let you make human editable code.
Here is some Coders Rules, which are actually used during websites and templates production:
- Use a space before and after equal signs within tags
.
- Use quotes around tag attribute values whether or not they include white space.
- Use embedded spacing in your HTML code so that the code itself looks similar to how it will be formatted by a browser. In other words, use indentation and paragraph markings in the code when you specify paragraphs in the code.
- Include no extra spaces in anchors and only anchor meaningful words
Here is a bad coding example:
<HTML><HEAD><TITLE>Hello World Test Page</TITLE></HEAD><BODY>Hello World!</BODY></HTML>
Here is a good coding example:
<HTML>
<HEAD>
<TITLE>Hello World Test Page</TITLE>
</HEAD>
<BODY>Hello World!</BODY>
</HTML>
The code generated by FrontPage, DreamWeaver or Photoshop may look editable, clean, etc. but in fact it may be not easy to understand. These WYSIWYG ("What You See Is What You Get") editors if you stick to them for some time will show you that they are really WYSINWYGIB (What You See Is Not What You Get In Browser) editors. So what's the advice? Code your pages manually. HTML is so easy to study! Then why do you let these digital monsters ruin you pages and crash users browsers?