Maintaining a good code style is a required course for every Coder.HTMLPay special attention to the Code standardization during design. Although nonstandard Code does not directly cause serious consequences, it may cause some interference to the user experience, at the same time, it will also reduce the search engine's goodwill towards the website. this list contains 10HTML TagErrors, write down them, so that we can avoid this common mistake and make our HTML tags conform to the semantics and standard requirements.
Crime 1: Put block-level elements in the Row Element
HTML elements are represented in two ways: block-level and intra-row. each label has a default expression, either block-level or intra-row. div and p are block-level elements used to form the document structure. the Row Element can only be within the fast-level element.
Crime 2: the img tag does not contain the alt attribute
The alt attribute is a required attribute for all images displayed on the webpage. It helps people know what the image is. or what is the meaning of the image displayed when the network speed is slow. its main purpose is to explain the meaning of the image. To explain this, alt = "image" is very bad. if some images are only decorative, we recommend that you write them as alt = "".
Crime 3: Do not use list when necessary
- Three pages in total:
- Previous Page
- 1
- 2
- 3
- Next Page