Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

difference between HTML 3.2 and 4.1

Status
Not open for further replies.

spicymango

Programmer
May 25, 2008
119
CA
Hi,

What is the obvious differece between HTML


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">

and

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">


I mean there will be many differences but can someone give me few examples?

 
Neither of the doctypes is valid, that should be the first thing that jumps at you. Please consult the list of valid doctypes here:
Next, the doctype declares what document structure the browsers should expect from your page. The 3.2 recommendation was the first W3 prepared and it was released in 1996. In short, you're saying that your page is designed using the guidelines from 1996. The 4.0 (released in 1997 and revised in 1998) is a recommendation that has been superseded by 4.01 (released in 1999), so I don't think it should be in use at all. The 4.01 is old too, but it is the newest version of HTML recommendation. The later versions moved to XHTML.

I would suggest you change your doctype to use the 4.01 spec and then validate your page to make sure you're using elements that are expected within that doctype. I see no use in coding for old HTML doctypes.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Thanks, you have any example of how HTML 4.1 is different from lets say 3.2

I mean like in HTML 3.2 closing tage was </p> and in 4.1 it is </> something of this sort, you have few examples?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top