473,657 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

html validation - html code help

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>
....

Feb 3 '06 #1
8 1778
go******@worldp ost.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.

Feb 3 '06 #2
go******@worldp ost.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
Feb 3 '06 #3
go******@worldp ost.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>
...

Feb 3 '06 #4
go******@worldp ost.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

Feb 3 '06 #5
On Fri, 3 Feb 2006, Chris Beall brought out into the light of day
that:
go******@worldp ost.com wrote:
1. What is the reward, the reason to strive for a validating page?


I'd say the "reward" in this context is that you'd stand a chance of
getting useful help from this group.

Without it, you can count yourself lucky if someone bothers to tell
you that it doesn't validate. Many of the serious contributors would
just note that you haven't bothered to do your own homework before
posting, and would quietly drop you into their killfile, leaving you
at the mercy of the "try this" merchants who are only too happy to
offer wild conjectures without having to support those conjectures in
any way.

Of course, mere validation is no guarantee of a good web site, any
more than valid English syntax would be a guarantee of great
literature. It just happens to be one component of web design that
you can - and are expected to - check programmaticall y for yourself,
*before* appealing for help from the group.

good luck (you'll need it).

Feb 3 '06 #6

.....
check programmaticall y for yourself,
*before* appealing for help from the group.

good luck (you'll need it).


I thought you a bit emphatic until I realized to my horror I had indeed
"invented" my own tag that was doing absolutly nothing.

Now I definitely think you were being charitable with me - so I thank you...

FWIW The page validates now...


Feb 4 '06 #7
On 3 Feb 2006 09:50:49 -0800, go******@worldp ost.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?


The essence is that validation makes it easier (and so cheaper) to get a
page working correctly across browsers. "Enterprise " corporations often
have plenty of money to waste - or at least behave as if they do.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Feb 4 '06 #8

Some good reasons to validate (and check links):

If you want your site listed on search engines (who doesn't?) then make sure
that you have correct HTML. Many engines cannot properly catalog or index a
site that has serious HTML errors. This can greatly reduce the amount of
traffic your web site receives from search engines.

Properly written HTML will render better, render on more browsers, and
render faster than HTML with errors.

Properly written HTML is more likely to be "future-proof" (backward
compatible with future standards and future web browsers).

Broken links can quickly drive visitors away. How many times have you been
annoyed when you found a broken link?

Problems such as "ugly" pages caused by poor HTML constantly drive visitors
away from web sites. Do you want your web site to be one that customers will
leave because of poor quality?

If you think that your HTML is good the way it is and that you don't need to
check it (as many people think), then use a validator to check your HTML to
prove that you're right. Chances are that you will be surprised and that
your HTML will need to be fixed.

Browsers are becoming more standards compliant, and it is becoming
increasingly necessary and important to write valid and standards compliant
HTML.

A WYSIWYG editor is no excuse for not producing good HTML. If a WYSIWYG
editor does not produce good HTML, then it should not be used or its output
should be fixed manually. Newer WYSIWYG editors are better but many still
have problems writing correct HTML.

Having a site that uses dynamic pages is also no excuse for bad HTML. CSE
HTML Validator lets you easily check the HTML output of your dynamic pages.
If your dynamic pages are outputting HTML that is full of errors, then you
need to fix them.

Writing error-free HTML is the best way to help ensure that pages render
optimally in as many browsers as possible. This includes older browsers and
browsers that are yet to be developed.

Write it right the first time and write it once.

--
Albert Wiersch
http://www.htmlvalidator.com/
<go******@world post.com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
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?

Feb 4 '06 #9

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

Similar topics

195
8523
by: Torbjørn Pettersen | last post by:
As you might have noticed I'm trying to clean up my web site's HTML code. The way I do it is simply more or less redoing to complete site, testing it on a web server I have set up on my local network. I have downloaded, and installed CSE HTML Validator Pro, but I don't get the same results with that as I do with the online validator on W3.org. And I can't upload files to W3.org either, due to all the ASP code I use.
15
1735
by: Pasta Bolognese | last post by:
Open VS.2003. Click on a control on an aspx page in the HTML view. Does it tell me the pixel position on the page? Nooooooooooo.................
2
2190
by: Nick Gilbert | last post by:
Hi I have a number of pages where it is valid for the user to enter HTML. On these pages, I have turned off RequestValidation ("ValidateRequest = false" in the page directive) so that the HttpRequestValidationException that gets thrown if HTML is included in the Form, doesn't get thrown. This is fine. However, on some of those pages, there are fields where I don't want
9
9197
by: Alan Silver | last post by:
Hello, I am writing a web form where the user is allowed to enter HTML into one of the textboxes. This of course generates the "potentially dangerous" server error. Now I know I can switch off the validation for the page by using the validateRequest page directive, but this switches it off for *all* controls on the page. I have loads and loads of them, but only want to allow HTML in this one control. I really don't want to have to...
12
2251
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation errors show up in your error-list, you can disable this functionality by selecting the Tools->Options menu item in VS or Visual Web Developer. Select the TextEditor->Html->Validation tree option in the left-hand side of the
1
1329
by: SpiderSwamy | last post by:
Hi all, I want to pass the value of a field from 1.asp to 2.asp like SSO ID: 123456 this field is there in 1.asp and 2.asp do the form validation and SSO ID: field is there in the 2.html I don't want to fill the SSO ID field of 2.html it should get populated by itself. ( that is the value entered in 1.asp should appear in
2
1614
by: wipit | last post by:
I need to process a HTML form in python. I'm using urllib2 and HTMLParser to handle the html. There are several steps I need to take to get to the specific page on the relevant site the first of which is to log in with a username/password. The html code that processes the login consists of 2 edit boxes (for User ID and Password) and a Submit button which uses ASP.net client side validation as follows (formatted for clarity): <tr> <td...
26
25603
by: webrod | last post by:
Hi, I have some php pages with a lot of HTML code. I am looking for a HTML validator tool (like TIDY). TIDY is not good enough with PHP tags (it removes a lot of php code). Do you have any idea? Thanks you very much
8
2341
by: =?Utf-8?B?U2hhd24gUmFtaXJleg==?= | last post by:
I am coming at the world from the standpoint of a veteran ASP Classic developer. I am not clear on the advantages of using the ASP.NET control over standard HTML control. With the ASP.NET controls the rendered names are changed and I appear to be limited in what javascript events I can fire. I also can not seem to figure out how to setup a onsubmit() event. With standard HTML I can setup any javascript event I want and the names...
0
8411
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8323
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8838
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7351
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2740
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.