[MPlayer-dev-eng] Re: [PATCH] Development (Was: Clean up

Daniel Egger degger at fhm.edu
Wed Feb 27 13:33:39 CET 2002


Am Die, 2002-02-26 um 20.23 schrieb Gabucino:

> > Nope, it's missing a DTD declaration,
> Heh?

Every HTML needs a DTD declaration to actually be HTML. It looks
like this (depending on the document type you intend to use):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
> > tags are wrongly nested and
> Huh?

There are rules which tags may appear within others and the have to
be closed in exactly reverse order.
<p> <b> Test </p> </b> 
would be invalid for instance.

Also it's a requirement that some tags have a special parent, taken from
faq.html for example:

<TABLE BORDER=0 WIDTH=100% ALIGN=left>

<TD COLSPAN=3><P><B><A NAME=5.1><FONT face="Verdana, Arial, Helvetica,
sans-seri
f" size=2>5.1 Compilation</A></B></P>
</TD><TR><TD COLSPAN=3>&nbsp;</TD><TR>

"<td>" Denotes a table cell and has to appear within a "<tr>" tag
like done below.

> > attributes are used in wrong tags
> Hah?

I'm lacking an example here because I'm offline, but the validator
showed me that you used some attributes in tags which are not
allowed to contain them.

> > and many attributes are not properly quoted. 
> Hrr?

<TABLE BORDER=0 WIDTH=100% ALIGN=left>

would read

<TABLE BORDER="0" WIDTH="100%" ALIGN="left">

if properly quoted.

> Eh?

check validator.w3c.org for some fun. :)

-- 
Servus,
       Daniel




More information about the MPlayer-dev-eng mailing list