PDA

View Full Version : Web Design, CSS and HTML help?


bitchville
09-15-2008, 02:59 PM
why is this code used?


My friend helped me out on my webdesign assessment, he said to me to add this code to get the website showing



and if I remove it, my webpage goes blank, anyone know what it does or do you have to use it all the time and can not remove it?

TheAllKnowing
09-15-2008, 04:00 PM
It tells the browser what it is reading.

There are a few different versions of it.

Just ignore it, basically. Nothing you really have to worry about, so long as it is up at the top of the document.

Mihhaelo
09-15-2008, 06:00 PM
Its the docktype declaration. Its used to tell the browser which format your using and to see what you character set is. Its also used to check your validation with w3c's standard.

sunveer
09-15-2008, 10:01 PM
it will have no effect if you have coded your page in simple html not xhtml.

Everett
09-15-2008, 10:59 PM
this is called a document type. It helps the browser interpret the code better. If you remove this, replace it with . You must have this at the top.