Which tags are can be self closing and which ones must have a closing tag in XHTML 1.0 Strict?
Example:
<br/>
<input />
Are there certain tags that must have a closing tag, can be self closing, or eigther way works in XHTML 1.0 Strict?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Every element, that’s content model is
EMPTYin the XHTML 1.0 Strict DTD (i.e.<!ELEMENT element-name EMPTY>), is an empty element and “must either have an end tag or the start tag must end with/>.” Namely it’sbase,meta,link,hr,br,param,img,area, andinput. Every other element must have an end tag.