Click here to get back home

HTML Display Correctly, But Not Right

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
HTML Display Correctly, But Not Right Buck Turgidson 08-02-2004
Get Chitika Premium
Posted by Buck Turgidson on August 2, 2004, 4:24 pm
Please log in for more thread options
The following HTML displays how I want it to, in both MSIE and Mozilla,
howerver, an online validator gives me all sorts of error messages. Can
someone suggest a way to make it more "kosher"?

It is generated from a Unix script that I wrote


<HTML>
<FONT SIZE = 10>
<PRE>
<STRONG>
August 2004
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

</STRONG>
</PRE>
</FONT>
<FONT SIZE=6>
<PRE>
</STRONG>
July 2004 September 2004
Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat
1 2 3 1 2 3 4
4 5 6 7 8 9 10 5 6 7 8 9 10 11
11 12 13 14 15 16 17 12 13 14 15 16 17 18
18 19 20 21 22 23 24 19 20 21 22 23 24 25
25 26 27 28 29 30 31 26 27 28 29 30

</PRE>
</HTML>




Posted by Harlan Messinger on August 2, 2004, 4:50 pm
Please log in for more thread options

> The following HTML displays how I want it to, in both MSIE and Mozilla,
> howerver, an online validator gives me all sorts of error messages. Can
> someone suggest a way to make it more "kosher"?

By fixing the errors reported by the validator, no?



Posted by David Dorward on August 2, 2004, 9:34 pm
Please log in for more thread options
Buck Turgidson wrote:

> The following HTML displays how I want it to, in both MSIE and Mozilla,
> howerver, an online validator gives me all sorts of error messages. Can
> someone suggest a way to make it more "kosher"?
>
> <HTML>

A title is required.

> <FONT SIZE = 10>

The font element is obsolete, can't contain block elements (like <pre>) and
only goes up to 7 anyway. Use CSS instead.

http://htmlhelp.com/reference/css/

> <PRE>


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Posted by Sam Hughes on August 2, 2004, 8:52 pm
Please log in for more thread options

> Buck Turgidson wrote:
>
>> The following HTML displays how I want it to, in both MSIE and
>> Mozilla, howerver, an online validator gives me all sorts of error
>> messages. Can someone suggest a way to make it more "kosher"?
>>
>> <HTML>
>
> A title is required.
>
>> <FONT SIZE = 10>
>
> The font element is obsolete, can't contain block elements (like
> <pre>) and only goes up to 7 anyway. Use CSS instead.
>
> http://htmlhelp.com/reference/css/

Buck, you also should put a DOCTYPE at the beginning of your document.
Help on choosing a DOCTYPE:
<http://www.htmlhelp.com/tools/validator/doctype.html>.

The W3C validator at <http://validator.w3.org/> really enjoys flipping
out over all the errors like an unmuted car alarm. You might want to use
the WDG validator at <http://www.htmlhelp.com/tools/validator/>, which
catches the same errors, but is friendlier about them.



--
Accessible web designs go easily unnoticed;
the others are remembered and avoided forever.


Posted by Matt on August 2, 2004, 9:40 pm
Please log in for more thread options
Buck Turgidson wrote:

> The following HTML displays how I want it to, in both MSIE and Mozilla,
> howerver, an online validator gives me all sorts of error messages. Can
> someone suggest a way to make it more "kosher"?
>
> It is generated from a Unix script that I wrote

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<title>Some title for the document</title>
<style type="text/css">pre { font-weight: bolder; }</style>
</head>
<body>
<pre>
August 2004
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
</pre><pre>
July 2004
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
</pre><pre>
September 2004
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
</pre>
</body>
</html>

Add some CSS to position the PRE elements as you wish (margins, position
etc). Before, it didn't read linerarly (as if read left to right).

HTH

--
Matt


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----


Similar ThreadsPosted
Parsing linefeeds correctly December 1, 2004, 7:53 pm
Table TD width not rendering correctly March 1, 2005, 1:50 am
BG image not appearing correctly in Firefox September 16, 2007, 1:37 pm
WebPages with cyrillic chars are not displayed correctly January 9, 2006, 12:12 pm
DIV element buttons - how do you set rollover effects correctly? August 2, 2006, 9:56 am
Mozila Firefox: iframe keep relocate its position when set display block/hiden of another html component? October 11, 2004, 3:57 pm
7-bar display October 30, 2006, 3:22 am
IE TextArea Display Bug January 12, 2005, 10:16 am
How to display a box in "em" units? April 1, 2006, 12:54 pm
IE7 doesn't display background.. May 23, 2007, 10:55 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap