January 2018
Intermediate to advanced
678 pages
20h 16m
English
strong, em, b, u, and i ElementsThe W3C makes it clear that elements should be used according to what they represent and not according to their appearance. In the old days—and even today—web developers violated this credo a lot. That is especially true for this section’s elements. As in the previous section, this section’s set of elements is loosely coupled. What these elements have in common is that web developers very often use them only for their appearance. You should be a force for good and resist that temptation.
The strong element is for text that is supposed to be given strong importance. Typically, browsers display strong elements with a boldface font. For an example, see “Fight back!” in Figure 2.12. The em element is for text ...
Read now
Unlock full access