interpretation of HTML ?! (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


_gail -> interpretation of HTML ?! (6/18/2002 16:59:54)

"... missing the tags which would tell everyone's browser which version of HTML you're using. Without that kind of information available to it, a browser has to fall back to a more loose interpretation of your HTML."

Can someone explain to me what this means? Never heard of it before.


thanks, gail





Gil -> RE: interpretation of HTML ?! (6/18/2002 17:10:02)

The DTD (Document Type Declaration) Tag

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

This is one of the few required tags for a HTML document and in the beggining was the most important tag. This tells the browser to use the Transitional & EN (english) version of HTML 4.0 to parse this document. Lately browsers have been parsing documents without this tag, but they use the "least strict" version of HTML, so may not render things exactly like you envisioned. Also, as we move away from HTML to XHTML & XML this tag will be critical!

Gil Harvey
The Host Factory
Resellers are our Specialty
Find a Web Professional





_gail -> RE: interpretation of HTML ?! (6/18/2002 17:14:20)

quote:

The DTD (Document Type Declaration) Tag

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




Where do I paste the code, or do I enter it via Page Properties > Custom in FPage?

thanks, gail



Edited by - _gail on 06/18/2002 17:14:53




albino_lab_rat -> RE: interpretation of HTML ?! (6/18/2002 18:33:12)

It should be the very first thing on everypage. Also, it isn't code, its just a tag that tells browsers which version of HTML they should use to translate your mark-up into an eye pleasing, attention grabbing web page. I don't think FrontPage will put it in, so you will have to go to the HTML view and insert it yourself.

Edited by - albino_lab_rat on 06/18/2002 18:34:54




_gail -> RE: interpretation of HTML ?! (6/18/2002 20:24:57)

Thanks all. One final question.

The organization, to the extent possible, doesn't want their site "public." I note that's in the code. Should something else replace the word?

gai





Charles W Davis -> RE: interpretation of HTML ?! (6/18/2002 20:51:55)

Gail,

If you are publishing to the World Wide Web, it is by definition "Public." You can create password protected pages that are then restricted.

Enjoy! It's your endeavor!
Chuck, the male ladybug. http://www.anthemwebs.com
http://www.moderncabinetmaking.com




daveh42 -> RE: interpretation of HTML ?! (6/19/2002 10:02:04)

I believe in this case the word "PUBLIC" refers to the DTD and not to the page itself. That is, when this line is included in a page you are referencing the public HTML 4.0 Transitional DTD.

Dave





albino_lab_rat -> RE: interpretation of HTML ?! (6/20/2002 17:05:55)

The DTD just defines which elements, attributes, tags, etc... that are used in the document. The PUBLIC portion of the DTD has nothing to do with with the page being open to the public or not.




_gail -> RE: interpretation of HTML ?! (6/22/2002 9:54:26)

quote:


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




Should this tag be placed on all pages of a web, or just the home page?

Thanks, gail





abbeyvet -> RE: interpretation of HTML ?! (6/22/2002 11:15:22)

All pages.

I have to confess I have not been doing this.

But I should. And I will

Katherine

++++++++++++++++++++++++
www.inkkdesign.com

Women and cats will do as they please. Men and dogs should relax and get used to the idea.




_gail -> RE: interpretation of HTML ?! (6/22/2002 11:32:18)

quote:


I have to confess I have not been doing this.




;-)





_gail -> RE: interpretation of HTML ?! (6/22/2002 11:51:52)

quote:

It should be the very first thing on everypage.



For long-term newbies like myself who may not have realized something can precede the opening tag of a page, The DTD (Document Type Declaration) Tag should be placed ABOVE the initial <html> tag.

Someone please correct me if I'm wrong.

gail





Gil -> RE: interpretation of HTML ?! (6/22/2002 12:18:17)

quote:

quote:

It should be the very first thing on everypage.



For long-term newbies like myself who may not have realized something can precede the opening tag of a page, The DTD (Document Type Declaration) Tag should be placed ABOVE the initial <html> tag.

Someone please correct me if I'm wrong.



Correct - It is parsed by the browser before any HTML code is parsed, so it knows what rules to apply.

Gil Harvey
The Host Factory
Resellers are our Specialty
Find a Web Professional





Gil -> RE: interpretation of HTML ?! (6/22/2002 12:20:12)

"I don't think FrontPage will put it in, so you will have to go to the HTML view and insert it yourself" by albino_lab_rat

This a BIG bug in Frontpage and really needs to be fixed soon!

Gil Harvey
The Host Factory
Resellers are our Specialty
Find a Web Professional





_gail -> RE: interpretation of HTML ?! (7/9/2002 7:49:32)

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


It appears that putting this tag on a page which contains a simple form causes the form not to function, at least that' s what I recently experienced.

Are there any other types of pages where placing this tag should be avoided?!

gail




Gil -> RE: interpretation of HTML ?! (7/9/2002 8:28:21)

gail, that tag has nothing to do with the form not working, has to be something else. As long as the form contains correct HTML that is [:)]




_gail -> RE: RE: interpretation of HTML ?! (7/9/2002 8:41:25)

quote:

ORIGINAL: Gil

gail, that tag has nothing to do with the form not working, has to be something else. As long as the form contains correct HTML that is [:)]



Hmmmm....interesting. Then why did the form start working as soon as I removed the tag?

I changed nothing else, and checked over everything that I know of. In fact, I had the form uploaded to two different locations; one worked, the other didn' t. Both were exactly the same except for the tag.

Any insights would be appreciated.

thanks, gail




Gil -> RE: interpretation of HTML ?! (7/9/2002 9:00:44)

URL? of the one not working




_gail -> RE: RE: interpretation of HTML ?! (7/9/2002 9:26:29)

quote:

ORIGINAL: Gil

URL? of the one not working


It' s http://www.psychic-stories.com/submission.htm

It is working now that I' ve removed the tag.

gail

ps please note: I do not necessarily endorse or subscribe to my clients products or services.




Gil -> RE: interpretation of HTML ?! (7/9/2002 14:11:43)

quote:

It is working now that I' ve removed the


Hard to say with it working [8D]





_gail -> RE: RE: interpretation of HTML ?! (7/9/2002 14:28:39)

Ooooooooooooooh, my mistake. [:o]

I forgot since I' d been working on the problem for a couple of hours. I remember somewhere along the line removing a single misplaced period. I bet that was it.

Thanks, Gil, for pushing me to keep looking, and for taking a look yourself. I put the tag back in and it' s okay.

If there is one thing that will make me chuck this web stuff it will be a darn dot . Spent a few hours on a problem last week that was caused by an extra period.

[:' (][:' (][:' (][:' (][:' (][:' (][:' (][:' (][:' (][:' (]


.......................gail




Gil -> RE: interpretation of HTML ?! (7/9/2002 16:22:30)

quote:

Thanks, Gil, for pushing me to keep looking
LOL - sometimes you have to just keep looking & looking & looking *....

I once spent three very long days trying to find a problem with a 60+ perl script - finally found a : that should have been a ;




_gail -> RE: RE: interpretation of HTML ?! (7/9/2002 17:25:29)

quote:

ORIGINAL: Gil

I once spent three very long days trying to find a problem with a 60+ page perl script - finally found a : that should have been a ;


Pleeeeeeeeeease say it isn' t so! [:D]

Thanks again.

.;.;.;.;.;.;.;. gail




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.109375