SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 44 | Next

Jonathan Snook, Aaron Gustafson, Stuart Langridge, and Dan Webb

"Accelerated DOM Scripting with Ajax, APIs, and Libraries"


When it comes to web application development, using semantic HTML improves code
readability, makes CSS easier to work with, and allows for additional hooks with which to tie
in JavaScripting goodness.
What does semantic HTML look like? For examples, the main heading of a document
should be marked up by using an

tag, subheadings should be marked up using

to

tags, paragraphs should be marked up using

tags, and emphasized text should be
marked up using tags instead of tags. If you??™re curious about why tags should be
used instead of tags, just think of what italicizing is: it??™s presentational; there??™s no specific
meaning to it. On the other hand, adds emphasis. The same goes for the difference
between and . Simply bolding the text adds no additional meaning to it; if you
want to say something strongly, use .
Semantic markup can also apply to your choice of class names on an element. Using class="error"> is more useful than

, especially if you decide to change
the look and feel of your error messages. This also becomes more relevant when using DOM
scripting. Searching for something called error makes more sense than looking for something
called boldRed.
CHAPTER 2 n HTML, CSS, AND JAVASCRIPT 15
HTML Best Practices
Although I certainly don??™t preach the following as gospel, I want to cover some of my personal
practices and explain the reasons behind them before moving on.


Pages:
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6