开发者

HTML Basic - Validation

开发者 https://www.devze.com 2023-04-03 08:11 出处:网络
I know this is a really basic question... Are these the same f开发者_开发技巧or close - <iframe src=\"includes/captcha/captcha.php\"></iframe>

I know this is a really basic question...

Are these the same f开发者_开发技巧or close -

 <iframe src="includes/captcha/captcha.php"></iframe>
 <iframe src="includes/captcha/captcha.php"/>

And

 <div id="container_join_messages" class="shadow"></div>
 <div id="container_join_messages" class="shadow"/>

Just wanting to see if I can drop the extra tag at the end and still validate.

Using this doc type

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


According to What are all the valid self-closing elements in XHTML (as implemented by the major browsers)? XHTML capable browsers support self-closing on every element. I've never tried validating such a document myself though.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号