OK, I am really getting frustrated because of this. You see, after I've put the links on my website's index.html page info a "definition list" and validated it the document, came out of processing with no less than 218 errors, while previously it was a valid XHTML. The errors I was getting were basically of two kinds; one for a "div" element and one for a "br" element. The error-text for a "div" element: The error-text for a "br" element: Therefore I've first changed the order of "br" elements, namely I changed it from "</dd><br /><br /><dt><div class" to "</dd><dt><br /><br /><div class", and after validating it again, the error-count was reduced to 90 errors, and then after fixing some other stuff too (I don't remember exactly what it was) to 62 errors. Anyway, as you can see, this change in order of "br" elements completely fixed the second error quoted above, so I've ended up with only 24 errors total as you can see here: W3C Validator - index-test.html. But the problem with "div" elements remained nomather what I tried. For instance, I tried with replacing the "<div class="align2">" div class with inline "<div style="text-align: left">" variant, and later with "<span style="text-align: left">" (which surprisingly didn't move the text to the left) and so on and on. Then I remembered that I have one document from W3C stored on my hard-disk (namely the W3C - Lists in HTML documents one), and in it've read one thing that might be the reason/cause for my troubles. The text from that W3C document: So although I apparently see/understand what the effect of this is, I am really not sure what "restricted to inline content" and "block-level content" mean in this case (and in general too), and above all, how should I deal with it??! thanks, tayiper
Block level is basically a tag that will take up the entire line - like <p>, <div> or a header tag. Inline are like <span>, <a>, <em> etc. It seems the <dd> tag defines the description of a term in a definition list and the <dt> tag is placed inside the <dd> tag to define the start of a term in a definition list.
Close, Corey. The dt is the term. It may contain only inline elements. The dd is the definition and may contain anything. The dd is a sibling to dt. It is up to the author to order things so they make sense. cheers, gary
Thanks both for your replies. Any idea on how could I then align those links to the left side?? /EDIT: Oh nevermind, I got an answer to that question in some other forum where I posted this same question. tayiper
Thanks Gary. I hardly mess with those but at least he got it working If the OP is using XHTML then it should be <br /> Code (markup):
... in particular in this Paul Jr's post on WebDeveloper.com forum (yeah, the answer was an easy/obvious one) if anyone is maybe interested. tayiper