Twitter follower   Facebook follower   YouTube follower
 
  
     

Please share posts you like!
 

Author Topic: HTML Validators  (Read 994 times)

Webhelpforums

  • Administrator
  • Hero Member
  • *****
  • Posts: 563
  • Karma: +6/-0
  • Shared between Microsys, WebHelpForums and helpers
    • View Profile
    • Webmaster and Website Help Forums
HTML Validators
« on: April 29, 2010, 06:02:50 PM »
While A1 Website Analyzer uses the W3C HTML and CSS validators when checking the HTML of all pages encountered during website scan, there exist alternatives for those who want it.


chrisadam7

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: HTML Validators
« Reply #1 on: August 13, 2010, 04:06:55 AM »
A common error (and the most common source of erroneous bug reports for the WDG HTML Validator) occurs when writing HTML tags within a SCRIPT element:

<script type="text/javascript">
<!--
  // This is an error!
  document.write("</P>");
// -->
</script>
As mentioned in the HTML 4 Recommendation's note about specifying non-HTML data in element content, end tags are recognized within SCRIPT elements, but other kinds of markup--such as start tags and comments--are not. This is an unintuitive quirk of SGML for elements defined to have CDATA content.

Authors should avoid using strings such as "</P>" in their embedded scripts. In JavaScript, authors may use a backslash to prevent the string from being parsed as markup:

<script type="text/javascript">
<!--
  document.write("<\/P>");
// -->
</script>
Note that in XHTML, authors must also take care when using start tags within a script element. For details, see the Script and Style elements section of the XHTML 1.0 Recommendation as well as the HTML compatibility guideline for embedded scripts.
Want to get-on Google's first page and loads of traffic to your website? Hire a SEO Specialist from Ocean Groups seo specialist

Webhelpforums

  • Administrator
  • Hero Member
  • *****
  • Posts: 563
  • Karma: +6/-0
  • Shared between Microsys, WebHelpForums and helpers
    • View Profile
    • Webmaster and Website Help Forums
Re: HTML Validators
« Reply #2 on: August 13, 2010, 04:41:21 PM »
Thanks you for adding your post to this thread Chris. Might help quite a few people. It is in fact true that sometimes HTML code inside Javascript can cause confusion for crawlers. e.g. if Javascript code has code like
Code: [Select]
document.write("</script>") crawler might decide that's the closure of script code contents tag.


By the way, I see some people adding a custom signature to their posts. Please add signature to user profile settings instead. I have moved yours into that. Feel free to edit it if you wish :)

BankruptcyRules

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
  • Fact Discussion
    • View Profile
Re: HTML Validators
« Reply #3 on: December 20, 2010, 06:03:54 AM »
Best HTML Validators

To evaluate HTML validators I looked for the following features:

    * Validate against a defined DTD or schema
    * Validate groups of files in a batch
    * Validate HTML both online and offline
    * Display warnings as well as errors
    * Validate HTML, but also CSS, JS, Access, links, spelling, orphans, browsers, and speed
    * Price

    One Reason to Use Valid HTML
Writing valid HTML often seems like a nuisance, but one reason is if your site is moved into a database, valid HTML or really valid XHTML can become very important. Many CMS programs require valid XHTML because they are based on XML and installed in databases.

Common Validation Problems and How to Fix Them
HTML validators can be very intimidating to the novice Web developer. But if you learn a few simple steps you can turn the W3C validator and others like it into a valuable tool for solving problems with your Web pages.

Hilda8Ward

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
  • I am a Fitness Trainer
    • View Profile
Re: HTML Validators
« Reply #4 on: February 23, 2011, 12:42:40 AM »
Validate groups of files in a batch
Validate HTML both online and offline
Display warnings as well as errors

seniorlivingca

  • Jr. Member
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: HTML Validators
« Reply #5 on: January 30, 2012, 04:18:37 AM »
Writing valid HTML often seems like a nuisance, but one reason is if your site is moved into a database, valid HTML or really valid XHTML can become very important. Many CMS programs require valid XHTML because they are based on XML and installed in databases.