Welcome to another article on Building Better Web Pages. This article series comprehensively covers building an HTML document: easily learned, but rarely perfected.
Why is it Important?
<input type="text" name="somename" onclick="dosomething();" />
Consider the previous code example. This time, however, we will be passing the input element in the form of some variable “x.”
<input type="text" name="somename" onclick="dosomething(x);" />
We like using our function, so it appears numerous times across numerous files. This presents a huge maintenance problem. One day we need to make some changes to the method and now require a different variable or use a new function name. The only way to handle the situation now is to search through all the files and make changes in every one.
For building better web pages, any of the following books are a great! “Web Design For Dummies” introduces pretty much every aspect of design, including planning and research. If you are interested more in the concepts and ideas of proper markup, go with “HTML and CSS Web Standards Solutions”. Finally, for a more conversational tone, “Designing with Web Standards” is reading geared toward the practical application, rather than the concepts themselves.