Topic: Doctype Issue Pages that link to <a href="https://ozoneasylum.com/backlink?for=10947" title="Pages that link to Topic: Doctype Issue" rel="nofollow" >Topic: Doctype Issue\

 
Author Thread
Gilbert Nolander
Maniac (V) Inmate

From: Washington DC
Insane since: May 2002

IP logged posted posted 04-11-2003 15:29 Edit Quote

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

Hello,
I just realized I don't have a DOCTYPE on my webpage anywhere, and I was reading some stuff about it and I figured this would be the best one? What is that at the end of the DOCTYPE "http://www.w3.org.....? Should I change this to my website? I'm not really sure how this works, so I don't want to mess up the general look of my page. I know you all are probably like, what the hell is this, I don't have time for this BS, but anyway....Click on my Sig to view my page.


Ozone Quotes

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

IP logged posted posted 04-11-2003 15:31 Edit Quote

I'll move this to the right forum (XML, etc.)

___________________
Emps

FAQs: Emperor

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

IP logged posted posted 04-11-2003 15:33 Edit Quote

Ahhhhh much better - have a look at this:

:FAQ: Can you help me understand the DOCTYPE?

___________________
Emps

FAQs: Emperor

Gilbert Nolander
Maniac (V) Inmate

From: Washington DC
Insane since: May 2002

IP logged posted posted 04-11-2003 15:35 Edit Quote

Thanks, Emps...

I wasn't sure where to put this.

Suho1004
Maniac (V) Inmate

From: Seoul, Korea
Insane since: Apr 2002

IP logged posted posted 04-11-2003 15:44 Edit Quote

GN: While you're at it, you might want to make sure your pages have the proper encoding, too.

For your reading pleasure: :FAQ: What exactly is encoding, and why do I need it?

[This message has been brought to you by the Society for the Promotion of Encoding Awareness.]





www.liminality.org

Gilbert Nolander
Maniac (V) Inmate

From: Washington DC
Insane since: May 2002

IP logged posted posted 04-11-2003 16:05 Edit Quote

Ummm, Ok.

I tried several different DOCTYPES, and thanks for the info on encoding Suho. But when I add the DOCTYPE to my code, it completly removes my style attributes. What's that all about?

About Me - Here is the only page that I have added the DOCTYPE to, does any one know why it is turning my links from the Green color specified in my style info. to the default red and blue?

{edit - By the way, I am using IE6.0}

[This message has been edited by Gilbert Nolander (edited 04-11-2003).]

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

IP logged posted posted 04-11-2003 16:12 Edit Quote

You forgot the '#' before the hex colors, so 005500 -> #005500

Also, move the style up in the head.

Gilbert Nolander
Maniac (V) Inmate

From: Washington DC
Insane since: May 2002

IP logged posted posted 04-11-2003 16:54 Edit Quote

Thanks HZR, I fixed that...But it did not fix my colors on the scroll bar? I tried a couple of things, but am not sure what is going on here...

Your humble servant,
Gilbert

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

IP logged posted posted 04-11-2003 17:05 Edit Quote

Hmm, dunno why. Try changing the selector to 'html' or '*' (no quotes) instead of 'body'.
May work.



[This message has been edited by HZR (edited 04-11-2003).]

Gilbert Nolander
Maniac (V) Inmate

From: Washington DC
Insane since: May 2002

IP logged posted posted 04-11-2003 17:21 Edit Quote

That's awesome, thanks dude...changing body to html worked, never would of thought of that.

As far as the text thing, I guess you only need the # symbol in CSS, it doesn't seem to effect it
when it is in here <font color="123456">

That's interesting.

{edit - One other thing, will adding this doctype thing make my style stuff work in Netscape now?}


Ozone Quotes

[This message has been edited by Gilbert Nolander (edited 04-11-2003).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 04-11-2003 20:06 Edit Quote

The only reason you don't need the # symbol in the font tag's color attribute is that browsers are nice to you and let you get away without it.

Adding a doctype may cause Netscape *6* to render your page in subtley different ways (depending on what style properties your page relies on).

It won't make any difference to *your* page. This is because you're hardly using CSS. You're using a lot of deprecated presentational attributes, and even the dreaded <font> tag (which has been deprecated since 1996). Adding the doctype to your page won't make any significant difference because you're not using CSS for anything more than some colors and the scrollbox.

I strongly recommend you look into learning CSS next.

Gilbert Nolander
Maniac (V) Inmate

From: Washington DC
Insane since: May 2002

IP logged posted posted 04-11-2003 23:31 Edit Quote

um, yea. Slow and steady, ya know....

I mean, the main point of the internet is to share knowledge, data, and information. It's like "use H1, H2, H3....Don't use <font>." Or remember this one "Dude, you still do the tight roll?" It's not the style that matters, it's the content. But yea your right, I have been learning about CSS.

{edit - And thanks for all your help.}

[This message has been edited by Gilbert Nolander (edited 04-12-2003).]



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu