Production of HTML pages you should avoid HTML elements and attributes

Good HTML tags, we must not be used in creating web pages.

The fairy-tale world and looks at some prehistoric HTML tags. They are bad HTML standard was abandoned, dirty, full of ugly, casually absurd attribute, only partially working on a second version of the browser or can be substituted label new label. Create a front-end learning qun438905713, most in the group are zero-based learners, we help each other, answer each other, and also to prepare a lot of learning materials, welcomed the zero-based junior partner to the exchange.

It was suggested that we should not sing standards although we teach standards-based HTML and CSS, but if this is the case, users (especially beginners) will encounter bad way to get started and bad practice, but they do not know what went wrong. Therefore, our answer is: A Guide to reject bad label.

Attempts have been made to remove HTML content towards the development and performance, leading to such a basic principle: the separation from presentation (CSS) in the sense of content (HTML). This page will give weight loss, because the performance of a set of instructions (in the form of an external CSS document) can be applied to multiple pages. It will also make the site more manageable because global changes can be obtained from a separate file modifications.

Poor performance is essentially part of the label label (such as small), they can be replaced with more meaningful and simple CSS rule. Other not only for performance, but also unnecessarily large (such as font tag) or the availability of harmful hateful (for example, blink).

Label

The following are frequently encountered you might be labeled a better choice:

◆ b can be used to produce elements in bold. Use strong (meaning strong emphasis) instead of the more meaningful, or use CSS to get the job done, increase the font-weight: bold rules to indicate elements in bold. 
◆ i be used to produce italic elements. Use em (emphasis), which is more meaningful. Or you can use CSS to show italics: font-style: Italic 
◆ Big font can be greater. Use headings (such as h1, h2, etc., when the text has always been when a title) in place, increasing the significance, or simply use the font-size property in CSS for more control. 
◆ small can produce small fonts. CSS (font-size) once again for more control. 
◆ hr can be used to show a horizontal line. Design rare in CSS using hr, CSS's border-top, border-bottom property or a simple image to do this would be better. 
Above the label with the latest HTML standards are compatible in spite of, but did not make any sense for the content of a good label should. They could be more useful but they are not particularly harmful, and might easily be mistaken for innocent butter-wouldn't-melt-in-their-mouth nuggets of pure goodness when standing next to the following filthy tags. Learning a new front end qun438905713, most in the group are zero-based learners, we help each other, answer each other, and also to prepare a lot of learning materials, welcomed the zero-based junior partner to the exchange.

◆ u can generate underline elements. It reminds underlined text also associated with many connections. That is why the label dead for a long time - you do not have to connect to non-underlined text. 
◆ center can be used to center the elements inside the element. CSS text-align property allows not only center, as well as left, right, and justify. 
◆ menu is used to create the menu list. It was not perfect ul do, because in the more general unordered list, menu ul stood tall body. 
◆ layer and div elements similar position by CSS in excellent shape. This can only work in older versions of Netscape, it is no longer any use. 
◆ blink or marquee. Say out loud! They should be expected the same meaning as in itself, but has a very limited support, and will only have a very, very sick joke. 
◆ font, can be used to define the elements of the font name, size and color of the label in the world rightfully won the honorary title of the notorious label of the king. The old website (even new there) like ants all over the world like the plague covered the entire page. Most of the font tag is brought from the surge in web authoring software, including the font color and size labels used in each element. font tag is to appear in the current abuse is repeated for each element (eg, every time you use the p element), and CSS, you can use a short code to apply repetitive elements, and even control the entire site. Using CSS method, not only can make the page than the font tag is a lot of parasitic slimmer and easier to maintain because you need to do is just change the CSS file line, rather than individually modify each font tag. It also increases the possibility of maintaining a consistent design style has been maintained site. font tags and inappropriate use are two forms unnecessarily bloated pages of the main reasons. 

Published 50 original articles · won praise 5 · views 30000 +

Guess you like

Origin blog.csdn.net/html168/article/details/104466650