New homepage design of d-p-l.org is now live. <eom>
Michel Fortin
michel.fortin at michelf.com
Thu Dec 15 12:36:10 PST 2011
On 2011-12-14 10:55:26 +0000, Robert Clipsham <robert at octarineparrot.com> said:
> On 14/12/2011 10:12, Andrei Alexandrescu wrote:
>> On 12/12/11 7:46 PM, Stewart Gordon wrote:
>>> On 06/12/2011 05:44, Andrei Alexandrescu wrote:
>>>> http://d-p-l.org
>>>>
>>>> Andrei
>>>
>>> Why does it have an HTML 4.01 doctype but then go on to use XHTML
>>> syntax???
>>>
>>> Stewart.
>>
>> I wouldn't know. What needs to be done?
>>
>> Andrei
>
> http://validator.w3.org/check?uri=http%3A%2F%2Fwww.d-programming-language.org%2F&charset=%28detect+automatically%29&doctype=Inline&group=0
(
>
> http://goo.gl/pxtQE - the same link, just in case the above one gets
> wrapped and doesn't work)
>
> Basically, xHTML uses <foobar />, html uses <foobar> or
> <foobar></foobar> depending on the tag.
>
> The rest of the issues are with non-standard tags, eg <nobr> and <font>
> I think.
HTML 5 says <foobar /> and <foobar> are equivalent and both valid for
elements that are not expected to have a closing tag. What happens in
practice, with any HTML version, is that browsers just ignore the "/".
Maybe using the HTML 5 doctype will make the validator happier
(although it might start to complain about other things):
<!DOCTYPE html>
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d-announce
mailing list