Ask Your Question

Are XHTML elements such as DOCTYPE, link, and meta always closed with a forward slash?

asked 2022-11-19 11:00:00 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-08-27 18:00:00 +0000

djk gravatar image

Yes, XHTML elements such as DOCTYPE, link, and meta are always closed with a forward slash (/). This is because XHTML follows the rules of XML, which requires all tags to be closed properly. Failure to close XHTML tags properly can lead to validation errors and rendering issues in web browsers.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer

Question Tools


Asked: 2022-11-19 11:00:00 +0000

Seen: 8 times

Last updated: Aug 27 '22