Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML DOCType problem

 
vanlalhmangaiha khiangte
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently reading the tutorial HTML Doctype
HTML 4.01 Strict
This DTD contains all HTML elements and attributes, but does NOT INCLUDE presentational or deprecated elements (like font and center). Framesets are not allowed:


I am trying to use Strict doctype as below but the frameset is still showing.


Can you please guide me how to use each doctype properly with an example

Regards,
Vanlal
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why bother with all that mess? Just use the HTML5 doctype of:

<!DOCTYPE html>

and write to modern standards.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vanlalhmangaiha khiangte wrote:I am trying to use Strict doctype as below but the frameset is still showing.


Well, your HTML document may well be invalid because it doesn't conform to its DTD. However browsers don't require well-formed and valid HTML, they will make their best effort to make some sense of even the worst example of tag soup. In your case I expect the browsers would just ignore the DTD and carry on with the HTML which they see.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic