I've been working on a danish blog (http://webr.dk) using html5 and for fun I decided to experiment with the markup. At first I used the standard html5 markup:
- Code: Select all
<!doctype html><html><head><title>My poor website</title></head><body>This is my poor website</body></html>
Which obviously works fine, but than I came to think that why declare that the content is html twice (in the doctype + in the <html> tag). So I removed the <html> tag which looks like this http://webr.dk/html5-1.html and still does validate according to w3c.
Then I started to think about removing <head> and <body> tags, I realise this is bad practice, but I still wanted to give it a shot.
http://webr.dk/html5-2.html Here I removed the body tag, but the website still validates according to w3c. In the next test I removed the <head> tag too: http://webr.dk/html5-3.html which also validated according to W3C, thus making me question whether or not this is a bug?
For some reason every browser except MSIE can show the page even when all the 3 tags are removed, but why doesn't is work on IE?
Hope someone got the answers
-Ulrik Hvide