10 most common HTML Tag errors

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.