Author Topic: need education on Doctype at top of header...  (Read 4247 times)

0 Members and 1 Guest are viewing this topic.

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
need education on Doctype at top of header...
« on: September 06, 2010, 06:59:49 PM »
Have been messing with a jquery code and all the normal templates in 4images and most of the free ones I have played with start with on the header.html file...
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

The only way I could get the jquery script to look right was to change this to...
Code: [Select]
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

but when I changed this line then none of the templates looked correct, some white gaps can be seen above/below register area, ect...
I am assuming to use that line then all html codes have to start/end correctly like <div><p>paragraph</p></div>
Is that all I need to look at or is there more to it. w3 website is very cryptic and not very educational.

Thanks for any advice anyone can send my way...
Buddy Duke
www.budduke.com

Rembrandt

  • Guest
Re: need education on Doctype at top of header...
« Reply #1 on: September 06, 2010, 07:59:56 PM »
hm .. jQuery also works with:
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">

my website works.


mfg Andi

edit: i hate "\" I have it all away..