Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DOCTYPE
09-10-2007, 03:16 PM (This post was last modified: 09-10-2007 03:17 PM by bpsujith.)
Post: #1
DOCTYPE
What is the need for the code given below in a web page.
some java script , styles (scroll bar colour changing) works only if the code removed...

(DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)
Visit this user's website Find all posts by this user
Quote this message in a reply
09-11-2007, 03:23 PM
Post: #2
RE: DOCTYPE
DOCTYPE is not a html tag or,XHTML element.Always this will appeare at the top of your documents.DOCTYPE define the type of document of the page,

(DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)

This is an optional URL indicating where the DTD (Document Type Definitions )for this DOCTYPE can be found.
Find all posts by this user
Quote this message in a reply
09-18-2007, 06:37 PM
Post: #3
RE: DOCTYPE
DOCTYPE tells the browser which version of HTML the page is using. The Doctype tells the browser what language is used, and where the base DTD is located. So that the browser can render the page according to the DTD . Its always a good practice to use the appropriate doctypes with your html pages.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-11-2007, 06:03 PM
Post: #4
RE: DOCTYPE
albinjoseph Wrote:DOCTYPE tells the browser which version of HTML the page is using. The Doctype tells the browser what language is used, and where the base DTD is located. So that the browser can render the page according to the DTD . Its always a good practice to use the appropriate doctypes with your html pages.



but the problem is that

some java script , styles (scroll bar colour changing) works only if the code removed...
Visit this user's website Find all posts by this user
Quote this message in a reply
10-11-2007, 08:00 PM
Post: #5
RE: DOCTYPE
bpsujith Wrote:but the problem is that

some java script , styles (scroll bar colour changing) works only if the code removed...

The DOCTYPE you are using may be incompatible with the style information. Not sure :-)
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)