It's best to start paying attention, because HTML Police will walk through your code and pick out all your tags that don't have semantics. This list contains 10 most frequently made HTML tag mistakes . Note them down to help us avoid making this common mistake and make our HTML tags meet semantics and standards.
There are only two ways of expressing HTML elements: block-level and in-line. Each tag has a default representation method either block-level or in-line. For example, div and p are block-level elements, which are used to form a document structure. In-line elements can only be found in block-level elements.
The alt attribute is a necessary attribute for all pictures displayed on web pages. It can help people know what picture is. Or what the meaning of displaying pictures when the internet speed is slower. Its main purpose is to explain the meaning of the picture. It is bad to say that alt=image is. If some pictures are indeed just decorative, then it is recommended that you write it as alt=.
You can use the css style to define font-weight and font-style. If you have to write a tag in the page, use <strong> or <em> tags to replace it. <b><i> has no semantics, but for a more concise page, you should choose css definition style.
<br />The newline tag should only be used to insert a special word when the first text stream is typed into a newline. It should not be used to create gaps between elements, but to split into different paragraphs, or to adjust the magnitude of CSS style text.
In the past, <S> and <strike> were allowed to define website text. However, now they are defined as deprecated tags when they can still have effect. Now use the new tag set - <del> and <ins>. To replace <s><strike>
The most important purpose of css is to distinguish between documents and styles. If you write style into the page, then there is no use of css at all. So, remember to put your style in the position it should put.
Not recommended by w3, <blink> and <marquee> (flash, scroll) tags are purely ugly.
Don't use this tag. If you have to use this effect, I believe you will have other better effects.