[PLUG] External CSS vs in a <style> tag in the <head> section

Vincent L. Damewood vincent.leo.damewood at gmail.com
Wed Dec 31 18:24:16 UTC 2008


On Wed, Dec 31, 2008 at 10:09 AM, Richard C. Steffens
<rsteff at comcast.net> wrote:
>> 1: You're typing <img src="foo" alt="bar"> instead of <img src="foo"
>> alt="bar"/> This is okay in SGML-based HTML (Regular HTML), but
>> doesn't work in XML-based XHTML.
>>
>
> Aha! I knew about <br /> but didn't make the leap of understanding to
> realize that <img ... > needed to be <img ... />. Thanks!

This applies to any tag that doesn't have a corresponding closing tag.
In XML all elements have to be closed (that's why you always need a
</p> for each <p>). This piece of syntax creates a single tag that
both opens and closes the element. So, <foo/> is parsed the same way
as <foo></foo>.

>> Fix these issues and that should take care all but one of the errors.
>>
> More than one, actually. I neglected to include:
>
>    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

I figured that was just a warning, so I didn't count it.

> And I was using transitional technique in a strict setting with:
>
>    <script language="Javascript">
>
> For strict, you need:
>
>    <script type="text/javascript">
>
> The "language" part is not used in strict, and it must all be lower case.

And I figured you'd get that one without help. So, back to the
original issue. Is your stylesheet working properly?

Vincent Damewood



More information about the PLUG mailing list