Quick and easy HTML question

kamper

Diamond Member
Mar 18, 2003
5,513
0
0

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: screw3d
Don't always assume that it's presentation simply because it's a CSS attribute. Depending on the context, <del> could be the correct tag to use.

Straight from the horse's mouth
No! CSS is teh rUl3! You should also not use <h#> when you can put them in <span>s and write your own css!

(kidding, of course).
 

igowerf

Diamond Member
Jun 27, 2000
7,697
1
76
Originally posted by: kamper
Originally posted by: screw3d
Don't always assume that it's presentation simply because it's a CSS attribute. Depending on the context, <del> could be the correct tag to use.

Straight from the horse's mouth
No! CSS is teh rUl3! You should also not use <h#> when you can put them in <span>s and write your own css!

(kidding, of course).

The only tags you ever need are span and div!
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: igowerf
Originally posted by: kamper
Originally posted by: screw3d
Don't always assume that it's presentation simply because it's a CSS attribute. Depending on the context, <del> could be the correct tag to use.

Straight from the horse's mouth
No! CSS is teh rUl3! You should also not use <h#> when you can put them in <span>s and write your own css!

(kidding, of course).

The only tags you ever need are span and div!

You don't even need span, just use div with "display: inline"
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: igowerf
Originally posted by: kamper
Originally posted by: screw3d
Don't always assume that it's presentation simply because it's a CSS attribute. Depending on the context, <del> could be the correct tag to use.

Straight from the horse's mouth
No! CSS is teh rUl3! You should also not use <h#> when you can put them in <span>s and write your own css!

(kidding, of course).

The only tags you ever need are span and div!
Well, stuff like <html> <head> and <body> comes in handy from time to time. As well as some way to bring a stylesheet in.
 

Injury

Lifer
Jul 19, 2004
13,066
2
81
Originally posted by: GotGoose
No need to link an external style sheet, just use inline styles

div style=""

LOL... THEN YOUR WEBSITE WILL BE WELL OVER 100kb!!!!!

L4m3r!
 

igowerf

Diamond Member
Jun 27, 2000
7,697
1
76
Originally posted by: GotGoose
No need to link an external style sheet, just use inline styles

div style=""

I'm working on a client's site that someone else had built. It has hundreds of HTML pages and ALL of them are done using divs, inline styles, and absolute positioning. Literally, every element is placed using an absolutely positioned div tag. It's a nightmare, but regex's saved me from doing tons of really tedious work.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: GotGoose
No need to link an external style sheet, just use inline styles

div style=""
That completely defeats the purpose of seperating content from presentation. Plus you can't assign things by class.