Click here to get back home

html validation - html code help

 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 validation - html code help goldtech 02-03-2006
Get Chitika Premium
Posted by goldtech on February 3, 2006, 12:50 pm
Please log in for more thread options


Newbie esp about html validation - seems like something to strive for.
Yet many pages even "enterprise" corporate type pages do not validate,
yet seem to display well on most browsers. Two questions:

1. What is the reward, the reason to strive for a validating page?

2. Given the code snippet below which does not validate - how can
accomplish the same "look" with code that does validate? Please without
CSS, just html. Thanks
...
<LT>Objective:</LT>
<UL>
<LI>foobar</LI>
<LI>foobar</LI>
<LI>foobar</LI>
</UL>

<LT>Technical Skills: </LT>
<UL>
<LI>foobar</LI>
<LI>foobar</LI>
<LI>foobar</LI>
<LI>foobar</LI>
<LI>foobar</LI>
<LI>foobar</LI>
...
<LI>foobar</LI>
<LI>foobar</LI>
<LI>foobar</LI>
<LI>foobar</LI>
</ul>
...


Posted by David Dorward on February 3, 2006, 1:20 pm
Please log in for more thread options


goldtech@worldpost.com wrote:

> 1. What is the reward, the reason to strive for a validating page?

You get more problems when you have bugs in your code AND bugs in browsers
then when you only have bugs in browsers to contend with.

It also makes it a lot easier to track down many problems which cause
rendering issues in browsers.

> 2. Given the code snippet below which does not validate - how can
> accomplish the same "look" with code that does validate? Please without
> CSS, just html.

Why are you resistant to CSS? It is the correct tool for suggesting
presentation for webpages.

> <LT>Objective:</LT>

I've no idea what an LT element is supposed to do.

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

Posted by mbstevens on February 3, 2006, 1:24 pm
Please log in for more thread options


goldtech@worldpost.com wrote:
> Newbie esp about html validation - seems like something to strive for.
> Yet many pages even "enterprise" corporate type pages do not validate,
> yet seem to display well on most browsers. Two questions:
>
> 1. What is the reward, the reason to strive for a validating page?

It will let you know wen you use tags that don't actually exist
for your doctype.

>
> 2. Given the code snippet below which does not validate - how can
> accomplish the same "look" with code that does validate? Please without
> CSS, just html. Thanks
> ...
> <LT>Objective:</LT>

> <LT>Technical Skills: </LT>


<LT> ??? Lithuania Online is the closest Google brought me.


Posted by Harlan Messinger on February 3, 2006, 1:51 pm
Please log in for more thread options


goldtech@worldpost.com wrote:
> Newbie esp about html validation - seems like something to strive for.
> Yet many pages even "enterprise" corporate type pages do not validate,
> yet seem to display well on most browsers. Two questions:
>
> 1. What is the reward, the reason to strive for a validating page?
>
> 2. Given the code snippet below which does not validate - how can
> accomplish the same "look" with code that does validate? Please without
> CSS, just html. Thanks

The only thing invalid about your code is you made up your own <LT> tag.
(The validator certainly told you this--didn't you read its report?)
Replace it with a valid HTML tag. Don't worry about losing whatever it
is that you think the <LT> tag is contributing the the look of the page,
because it's contributing nothing. Since the browser doesn't know what
it is, it doesn't provide any special look for it.

> ...
> <LT>Objective:</LT>
> <UL>
> <LI>foobar</LI>
> <LI>foobar</LI>
> <LI>foobar</LI>
> </UL>
>
> <LT>Technical Skills: </LT>
> <UL>
> <LI>foobar</LI>
> <LI>foobar</LI>
> <LI>foobar</LI>
> <LI>foobar</LI>
> <LI>foobar</LI>
> <LI>foobar</LI>
> ...
> <LI>foobar</LI>
> <LI>foobar</LI>
> <LI>foobar</LI>
> <LI>foobar</LI>
> </ul>
> ...
>

Posted by Chris Beall on February 3, 2006, 2:00 pm
Please log in for more thread options


goldtech@worldpost.com wrote:

> Newbie esp about html validation - seems like something to strive for.
> Yet many pages even "enterprise" corporate type pages do not validate,
> yet seem to display well on most browsers. Two questions:
>
> 1. What is the reward, the reason to strive for a validating page?


goldtech,

See http://pages.prodigy.net/chris_beall/TC/Validation.html. As an
acknowledged newbie, you might also be interested in the other
information you'll find by following the 'Index' link on that page.

Chris Beall


Similar ThreadsPosted
Share common HTML code among different HTML files? May 14, 2005, 11:05 pm
HTML validation November 4, 2004, 12:41 am
HTML validation March 17, 2008, 11:45 am
changes in HTML code are ignored by the browser (IE6) October 7, 2004, 11:56 am
Self-modifying HTML code? August 17, 2006, 11:53 am
Showing html code in a web page April 3, 2005, 5:56 pm
html email displays as code June 27, 2007, 4:19 pm
Re: Make HTML code show up on the web April 15, 2008, 8:06 am
New bulk HTML validation service available June 4, 2006, 10:23 am
how to set browser window attributes in this HTML code? March 21, 2005, 9:12 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap