File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML DOCType problem

 
vanlalhmangaiha khiangte
Ranch Hand
Posts: 170
  • 0
  • 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: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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
Pie
Posts: 20196
26
MySQL Database
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic