HTML has tried to remove expression and develop towards content, resulting in the basic principle of isolating content meaning (HTML) from performance (CSS). This will lose weight to the webpage, as a collection of performance instructions (in the form of external CSS documents) can be applied to multiple pages. This will also make the website easier to manage because global changes can be obtained from modifying a separate file.
Some bad tags are basically manifestation tags (like small ) that can be replaced with more meaningful and simpler CSS rules. Others are not only used for performance, but are also unnecessary huge (such as font tags) or hateful (such as blink ) that are harmful to usability.
Here are the tags you may encounter that you can have better choices:
b can be used to produce bold elements. Using strong (meaning strong emphasis) instead makes more sense, or using CSS to do the work, adding font-weight: bold rule to indicate bold elements.i can be used to produce italic elements. Using em (indicates emphasis), this makes more sense too. Or you can use CSS to express italics: font-style: italicbig can produce larger fonts. Use titles (such as h1 , h2 , etc., when the text is originally a title) instead, add meaning, or simply use the font-size attribute in CSS to gain more control.small can produce small fonts. CSS ( font-size ) once again gains more control.hr can be used to show a horizontal line. It is rare to use hr design in CSS. It will be better to do this with CSS's border-top , border-bottom attributes or plain images.Although the above tags are compatible with the latest HTML standards, they do not have any meaning for the content that good tags should have. They could be more useful but they aren't particularly harmonious, and might easily be mistaken for innocent butter-wouldn't-melt-in-their-mouth nuggets of pure goodness when standing next to the following filterhy tags.
u can underline elements. It reminds that underlined text has many connections. That's why this tag has been dead for a long time - you don't have to underline non-concatenated text.center can be used to center elements inside an element. The CSS attribute text-align promises not only center , but also left , right and justify .menu is used to create menu lists. It does ul do perfectly, because the disordered list is more general, ul stands high on the corpse of the menu.layer and div elements are similar, both of which are at the top of the CSS. This only works in older versions of Netscape, so it's useless.blink or marquee . Say no! They should be expected as their own meaning, but with very limited support, and will only produce very, very disgusting jokes.font , which can be used to define the font name, size and color of the element, is naturally awarded the infamous Tag King honorary title in the world of labels. Old websites (even new ones) fill the entire page like plague ants all over the world. Most of the surge in font tags is brought from web page production software, using font tags including color and size on every element. 3 pages in total Previous page 123 Next page