Home > Article > Web Front-end > Don’t forget to close HTML tags_HTML/Xhtml_Web Page Production
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 ). Only such page editing complies with Web standards.
Error:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Correct:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Correct: