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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi language home page

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I am new at HTML so I check the HTML on a lot of websites that I visit. I have seen a few without the <!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>.

I thought this was mandatory. Does anyone have any imput on this?

Thanks in advance,

Daniel
 
It's not mandatory. At least, I've never had to use it. I think it's something put in there when you use a program to make your page. I always delete it to make things simpler.
 
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;> declares the document type as HTML ver. 4.0 as set stadards by the World Wide Web Consortium (W3C - By haveing in your document code, it's one less thing the server has to figure out, therefore loading your page that much faster for the user.

You actually are required to put very little in basic HTML. You don't HAVE to declare <html> or <head> or <body>. You can get much more specific with your document if you do, and it speeds load time a bit for each bit more specific you get, however, you could simple put:

<table border=1>
<tr>
<td>
This is my really really basic page!
</td>
</tr>
</table>

And it would display as a web page if given the .htm or .html file extension.

Hope this clears things up for you. -Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top