Democrazy
09-16-2011, 03:18 PM
Does it really matter wether or not I use DIV or SPAN? I am getting exactly the same outcome using both of them and pages are validating the same.
|
||||
Would love advice from ULTRA HTML expertsDemocrazy 09-16-2011, 03:18 PM Does it really matter wether or not I use DIV or SPAN? I am getting exactly the same outcome using both of them and pages are validating the same. alykins 09-16-2011, 03:41 PM div is a block level element "container" and span is an inline element "container" ... what context are you using it in? alykins 09-16-2011, 03:42 PM see here (http://www.w3.org/wiki/Generic_containers_-_the_div_and_span_elements) for reference Democrazy 09-16-2011, 04:11 PM Positioning text and a replacement for single tables. Figured I can just use <DIV></DIV> instead of <TABLE><TR><TD></TD></TR></TABLE> The result is identical, hence my question. teedoff 09-16-2011, 04:17 PM Positioning text and a replacement for single tables. Figured I can just use <DIV></DIV> instead of <TABLE><TR><TD></TD></TR></TABLE> The result is identical, hence my question. You should ALWAYS be using <div> instead of <table> unless you need to display columnar data. Tables for page layouts are outdated and discouraged. Democrazy 09-16-2011, 04:54 PM Excellent! Thanks! teedoff 09-16-2011, 05:00 PM You can read more about why tables for layouts are bad (http://www.hotdesign.com/seybold/). |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum