Home >Web Front-end >HTML Tutorial >The most common mistakes in writing HTML tags_HTML/Xhtml_Web page production
We better start paying attention, because HTML Police will be going through your code and picking out all your semantically meaningless tags . This list contains the 10 most common HTML mistakes. Tag errors , writing them down can allow us to avoid making this common mistake and make our HTML tags comply with semantics and standard requirements.
HTML elements can be expressed in two ways: block level and inline. Each
tag has a default expression mode of either block level or inline. Like div and p, they are block-level elements. They are used to form the document structure. Inline elements can only be inside block-level elements.
The alt attribute is a must attribute for all The most common mistakes in writing HTML tags_HTML/Xhtml_Web page productions displayed on web pages. It can help people know what kind of The most common mistakes in writing HTML tags_HTML/Xhtml_Web page production it is. Or what the meaning of the The most common mistakes in writing HTML tags_HTML/Xhtml_Web page production is when the network speed is relatively slow. Its main purpose is to explain the nature of the The most common mistakes in writing HTML tags_HTML/Xhtml_Web page production. Meaning, it is very bad to explain alt="The most common mistakes in writing HTML tags_HTML/Xhtml_Web page production" like this. If some pictures are really just for decoration, then it is recommended that you write alt="".
Crime 4: Use and to display bold and italics
You can use css styles to define font-weight and font-style. If you must write the
tag in the page, replace it with the or tag.< ;i> has no semantics at all, but for a simpler page, choose css to define the style
Crime 5: Using too much
In the old days,
tags , while they can still have effect. Now with the new set of tags - and . to replace
The most important purpose of css is to distinguish documents and styles. If you write style into the page, then css will have no effect at all. So, remember to put your style where it should be
Not recommended by w3,