Am I Doing This Right? (HTML/CSS)

Nate_Weller

New Member
My web design skills are still in their infancy, so my sites are pretty basic looking.

However, I am just wondering if I am doing things the right way:

I am making static HTML and CSS pages. I create the HTML and CSS pages separately, and connect the stylesheet to the html page in the header.

Then, I link html elements to styles through classes and ids. If I am correct, classes are for more than one thing, and ids are supposed to be used for only one item in a page?

Anyways, I am just wondering if it is better to apply styles directly in the html element or keep doing what I am doing by having all the styles in a separate css file.

Also if there are any big mistakes that a lot of new people do, please point these out as well so I can avoid them!

Thanks
 

Phreaddee

Super Moderator
Staff member
Do not do any styling in the html. Do it all in the css.

So far so good.

Avoid tables and absolute positioning...
 

ronaldroe

Super Moderator
Staff member
Phreadee pretty much said it. The only thing I'd add is learn the box model, well. Also, gain a good understanding of float (and clearing it) as well as how positioning works. Between those and WYSIWYG, I'd say they cover 80-90% of the questions that come up.
 
Top