Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML DocTYPE question

 
Wilson Mui
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic