Friday, July 5, 2019

html - Is it OK to use a self closing DIV tag?










For example:







Something would then be done to populate this div using Javascript.



Is this valid HTML?


Answer



No. HTML 4.x doesn't have any concept of self closing tags.



It is valid in XHTML.


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...