Home  >  Article  >  Web Front-end  >  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
WBOYOriginal
2016-05-16 16:43:001372browse

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.
    Statement:
    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