473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

HTML Display Correctly, But Not Right

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>
Jul 20 '05 #1
5 1687
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
Jul 20 '05 #2
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! =-----
Jul 20 '05 #3

"Buck Turgidson" <jc***@hotmail.com> wrote in message
news:_u*********************@cyclops.nntpserver.co m...
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?

Jul 20 '05 #4
David Dorward <do*****@yahoo.com> wrote in
news:ce*******************@news.demon.co.uk:
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.
Jul 20 '05 #5
"Buck Turgidson" <jc***@hotmail.com> 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"?


You haven't explained why the page presents the calendars, but generally,
before trying to get the current markup right by fixing the errors,
I would suggest considering whether another approach might be better.
In principle at least, a table is preferable to <pre> for the purpose of
presenting tabular data, and a calendar is pretty much tabular data.

In particular, if you put calendars of two months side by side inside a
single <pre>, it becomes rather hard to understand when spoken by a
speech browser. It's better to make each month a table, then perhaps
consider displaying them side by side.

But what do you present the calendars for? Are some of the day numbers
links to something. For a calendar of events, for example, a different
approach is usually better (e.g., a simple list of dates in chronological
order, containing only dates with some event).

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
72
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
5
by: Armand Karlsen | last post by:
On this page of my website: http://www.zen62775.zen.co.uk/rigs.html the W3C html validator claims that there are some bytes it cannot interpret in line 49 of the html source as UTF-8. If I force...
11
by: Ron | last post by:
Hello, I'm having an aggravating time getting the "html" spewed by Word 2003 to display correctly in a webpage. The situation here is that the people creating the documents only know Word, and...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
82
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility...
5
by: acord | last post by:
Hi, I m getting annoying display problem when placing javascript tags in a html page. Should the javasscript tags placed at the beginning of a html page before anything start? or placed between...
1
by: smilecry | last post by:
I am trying to create a tree table (javascript code was adopted from online source) but the rowspan in td tag does not work well when I toggle the rows. Here is the sample code, notice the row "4"...
24
by: Adam | last post by:
Hi, Does anyone know of an online C-to-HTML converter to display code nicely formatted in a browser? Thanks a lot, Adam
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.