Home > Web Front-end > HTML Tutorial > Don't forget to close HTML tags_HTML/Xhtml_Web Page Production

Don't forget to close HTML tags_HTML/Xhtml_Web Page Production

WBOY
Release: 2016-05-16 16:43:00
Original
1389 people have browsed it

Creating web pages that comply with Web standards has always been a topic discussed by jb51.net. Then do you remember to close all XHTML elements? Some elements in HTML do not need to be closed. When the next element starts, the previous element is automatically closed. This is not allowed in XHTML. All elements must be closed, even if there is no content inside them (such as Don't forget to close HTML tags_HTML/Xhtml_Web Page Production). Only such page editing complies with Web standards.


Error:

  • Item 1
    Correct:
  • Item 1


  • Error:

    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    Correct:

    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Correct:




    Incorrect:


    Correct:



    Wrong approach should be 100% avoided. As always, always keep all your tags closed.
    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template