Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Center > Breakroom (General: Any Topic)
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Breakroom (General: Any Topic) Here's the place to talk about anything and everything. What's discussed is up to you!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-20-2007, 05:21 PM
Tony_V's Avatar
WebProWorld Member
 

Join Date: Jan 2004
Posts: 98
Tony_V RepRank 1
Default html headers?

ok, I am lost. I am tyring to find out information about html headers. Not even sure if that is what it is called.
but at the top of some html pages, I see something like this:

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

and I see different variations of this on different sites. I have looked over www.w3.org and it is just way to overwhelming. I can't seem to find a straight answer, and maybe it is that I am asking the wrong way. hard to know what to ask when you don't know much about the topic.

I would like to know, how to know which variation I should put on my websites. I have a lot of them, and I want to be sure to put the right one on the right site.

what the heck is it anyway? what is it for? what does it do. what is the purpose of it?
why should I have it? how does it benefit me. any or all of these questions answered would be highly appreciated.

Been designing websites for years, and only now deciding I should learn about it. Geesh, what a web designer hu.....

thanks in advance for all your info.
Reply With Quote
  #2 (permalink)  
Old 08-20-2007, 06:52 PM
wige's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,928
wige RepRank 4wige RepRank 4wige RepRank 4wige RepRank 4
Default Re: html headers?

Just for clarification - this is referred to as a doctype or declaration. "Headers" refer to data that is sent by browsers to the server to request a file, or sent at the head of the file returned by the server, kept invisible to the user, to facilitate the communication.

Basically, as webmasters move from the older HTML standard to the newer XHTML standard, they add this tag to tell the web browser what type of document the web page is. The url points to a DTD, which is basically a file that tells the browser how to display the web page.

There are two major variations of this tag:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
and
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
The transitional version means that the document is similar to the old HTML format that everyone is used to. The strict version is newer, and literally more strict and closer to XML. For example, frames are not allowed, and a lot of tags are deprecated. Some tags have also been changed. For example <IMG src="file.jpg"> is probably acceptable in a transitional document, but in a strict document, you have to use <img src="file.jpg" />. The tag has to be closed, you have to have quotes, and the tag name has to be lowercase.

Basically, the strict tag is to be used when your site is fully compliant with the XHTML standard. The transitional tag is intended to be used as you migrate your web site from HTML to XHTML. You get the benefits of being able to use newer XHTML functionality, but some backwards compatibility is maintained for older sections of code. Your site should be marked transitional until you reach your final goal of full standards compliance and can label it strict.

A better explanation: A List Apart: Articles: Fix Your Site With the Right DOCTYPE!
__________________
The best way to learn anything, is to question everything.

Last edited by wige : 08-20-2007 at 06:56 PM.
Reply With Quote
Reply

  WebProWorld > Center > Breakroom (General: Any Topic)
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP and headers question ADAM Web Design Web Programming Discussion Forum 2 04-19-2005 12:03 PM
Host Headers FiveGrand Google Discussion Forum 1 06-17-2004 12:39 AM
forged email headers Housesit Internet Industry 25 03-19-2004 10:34 AM
h1,h2,h3 headers donmorgan Graphics & Design Discussion Forum 3 03-18-2004 12:45 AM
Custom Headers Graphics & Design Discussion Forum 11 01-08-2004 04:02 PM


Search Engine Optimization by vBSEO 3.2.0