W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

Re: tidyExample, what's wrong ?

From: Bertilo Wennergren <bertilow@hem.passagen.se>
Date: Mon, 11 Sep 2000 22:13:24 +0200
Message-ID: <001601c01c2c$fa9ce960$462959d5@se>
To: <tounsi@emi.ac.ma>, <html-tidy@w3.org>
Cc: <dsr@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT