This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes HTML DOCType problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTML DOCType problem" Watch "HTML DOCType problem" New topic
Author

HTML DOCType problem

vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 170
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

Joined: Jan 10, 2002
Posts: 63208
    
  69

Why bother with all that mess? Just use the HTML5 doctype of:

<!DOCTYPE html>

and write to modern standards.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19727
    
  10

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: HTML DOCType problem
 
It's not a secret anymore!