473,549 Members | 2,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Validate your markup early and often.

drhowarddrfine
7,435 Recognized Expert Expert
Many people think of validation as a mark of valor so they can put on their web page the little W3C logo proclaiming they have achieved some poetic, high moral platform. In truth, validation is error checking. Validation means your markup contains the proper syntax that browsers will understand and should render properly.

Some people think that just because their code displays properly in their browser there is no need to validate or correct any validation errors. Nothing could be further from the truth. Browsers are required to do the best they can with invalid code. There are even some recommendations on what a browser should do in certain error conditions but these recommendations do not cover all situations.

It is difficult enough to debug error-free, valid markup without having to try and debug error filled, invalid markup.

You cannot expect a browser to respond the same way to an error from version to version and you cannot expect one browser maker to respond the same as a different browser maker. Relying on errors to be consistent is an error itself. In addition, XHTML and XML are less forgiving of errors than HTML is.

Therefore, at intervals in your coding process, you should visit the W3C HTML Validator and don't forget the W3C CSS Validator. There you can upload your files, supply a URL, or directly enter your markup to be checked for validity.

Remember, too, that having valid code does not mean your page will work. You can have elements placed out of order and illogically and still have valid code.
Feb 9 '07 #1
0 8217

Sign in to post your reply or Sign up for a free account.

Similar topics

6
3140
by: Sander Voerman | last post by:
Hi, I am going to make a forum using PHP. However, I have a very simple question to begin with. Is it at all possible to create input fields where users can type their messages using italic, bold, blockquotes, and the like? So far I have never witnessed it, my webmail client, for instance, only allows me to write plain text in the "new...
3
2426
by: Dirk Rudolf | last post by:
I like to announce you the product X2U, avaible under http://www.lumrix.net/x2. X2U is an acronym for "XML to user". Existing XML editors still ignore the fact that users don't want to read XML markup. Our view is: Not users have to align to XML, but XML has to align to users. X2U allows users tp fill out simple web forms, which are...
8
3094
by: Dean Speir | last post by:
Hi... I've been referred to this Newsgroup by the W3C Markup Validator FAQ. I've been happily using this Validator <http://validator.w3.org> for the past 18 months with great success, but suddenly I cannot get it to "read" my HTML documents by the "Validate by File Upload" method. It keeps giving me the following message: Sorry, I am...
47
3195
by: Andy Dingley | last post by:
Assume an English language page, linking to a foreign history resource that's only available in a foreign language. Any suggestions on appropriate "best practice" markup, particularly regarding the scope of a lang attribute applied to a <a> element ? <p>Francisco de Miranda's <a href="http://www.simon-bolivar.org/bolivar/miranda_oci.html"...
7
3431
by: Lachlan Hunt | last post by:
Hi, I have recently downloaded and experemented with IBM HPR 3.0, and Opera 8 with text-to-speech, and have come to realise some fairly annoying issues regarding punctuation marks. I've found, that when a punctuation mark occurs directly after an element, both HPR and Opera 8 will read the punctuation mark. For example, the following:...
52
4541
by: Andy Dingley | last post by:
I'm using this at present: <p title="Publication date" ></p> Works fine on screen, but Fangs/Jaws just reads it as "left bracket twenty-eight slash zero slash two thousand five fifteen colon zero right bracket" Really it needs something more to indicate that it _is_ a date. The brackets would be better done with CSS, :before and...
5
2619
by: Jeff Evans | last post by:
I have a custom composite control which has a validator for a textbox. The validator and textbox are declared in the class and created in the CreateChildControls() method Here is the code for the textbox, in CreateChildControls() searchBox = new TextBox(); searchBox.ID = "searchBox"; searchBox.EnableViewState = false; It is then added...
12
1558
by: Torsten Bronger | last post by:
Hallöchen! Some LaTeX users in Aachen thought about a general-use markup language this spring. I wrote some code and a rough project description, however, we could need some help. If you are interested, visit the provisional project page at http://latex-bronger.sourceforge.net/gummi/ Tschö,
2
6344
by: embz | last post by:
this post concerns three pages. 1. this page: http://www.katherine-designs.com/sendemail.php i get the following errors: a lot of it seems to deal with the PHP code i inserted to the page. as my PHP skills are close to nil, i'm wary about fiddling with it myself. =\ 2. now this page: http://www.katherine-designs.com/contact.php
0
7518
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...
0
7446
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...
1
7469
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...
0
7808
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6040
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...
1
5368
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...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1935
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
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.