my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes HTML DocTYPE question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTML DocTYPE question" Watch "HTML DocTYPE question" New topic
Author

HTML DocTYPE question

Wilson Mui
Ranch Hand

Joined: Apr 09, 2003
Posts: 140
I am trying to build my website using CSS. After trying to do it with tables and being totally frustrated, I figured there must be a better way. As somebody who has never done any html designing before it really took me a while to find css.
But I understand that you need to have the "correct" doctype heading to make css work properly. I am just wondering which doctype should I be using. It seems like there are really only three: Strict, Transitional, and Frameset. I'd like to use Strict so that it forces me to use the most robust code, but I think I started by using Transitional, then I changed the header one day and it changed a bunch of my alignment stuff in CSS. Does anybody know of a good document that explains which doctypes will do what to your css styles. Right now I have no idea why some things in my CSS will work, and some won't. The some that won't is namely my alignment, I'm trying to get the page to center and that is a big headache.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Somone asked this question before so check it out here:
http://www.coderanch.com/t/114412/HTML-JavaScript/does-strict-mean
Wilson Mui
Ranch Hand

Joined: Apr 09, 2003
Posts: 140
I guess the more annoying thing is then, what am I learning when I read websites that teach HTML. There are a bunch of sites that help you learn HTML, and javascripts, and CSS, but none of them say, "this is for this doctype." It is like everybody is assuming you are using some sort of generic doctype, transitional probably. So now I've designed a whole page and I'm not sure what convention I used.
In a way I wish I learned everything from the ground up so that at least I know how things are suppose to be written in a very rigorous manner.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You might just do a search for xhtml or pick up a book on it. It will help you out more. If you are just starting, I would not be to worried about compliance right away or you will b pulling your hair out too much!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTML DocTYPE question
 
Similar Threads
XHTML documents vs. XHTML syntax in HTML documents
Problem in Netscape 6 (HTML CSS)
Web page content is being cut with no horizontal scrolling
HTML CSS problem in Netscape 6.
JEditorPane and images via the IMG tag