Re: tidyExample, what's wrong ?

Najib TOUNSI:

> What is wrong with this example, which simply write my name:

> <html>
> <body>
> <I><FONT SIZE="5">Najib T</FONT></I><FONT SIZE="5">O</FONT><I><FONT SIZE="5">UNSI</FONT></I>
> </body>
> </html>

There is one HTML error (a lack of a title element), but nothing that
would give any actual problems in practical use.

> view

> The problem is after passing tidy -c, which give this

> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <html>
> <head>
> <meta name="generator" content="HTML Tidy, see www.w3.org">
> <title></title>
> <style type="text/css">
>  span.c2 {font-size: 150%}
>  i.c1 {font-size: 150%}
> </style>
> </head>
> <body>
> <i class="c1">Najib T</i><span class="c2">O</span><i class=
> "c1">UNSI</i>
> </body>
> </html>

> view, which is not what I expect.

What is the actual problem? When I view both pieces of code in 
MSIE 5.5 they display the same, which is to be expected. The
code Tidy gives you expresses the same thing in more complete and
better HTML.

The result in my browser is your name, in italics, except for
the "O" that is not italic - in a large font - and that is exactly 
what both ways of coding expresses.

#####################################################################
                         Bertilo Wennergren
                 <http://purl.oclc.org/net/bertilo>
                     <bertilow@hem.passagen.se>
#####################################################################

Received on Monday, 11 September 2000 16:13:24 UTC