Jump to content

Recommended Posts

Posted

There are online sites available where you can put your URL, and the site will return you the number of HTML validation errors in your site. My question is that what actually are these errors and how to fix them?

Posted

As the name says, they are validation errors. Meaning code is not up to standard, so not valid. As to how to fix them depends on what the error is.

 

If you use Firefox and have installed the Web developer Add-on (it's a fantastic tool all around) under its Tool tab, it provides several validation options. Just go to whatever website, pick and click!!

Posted (edited)

Thanks for the reply, I normally use Chrome browser because of inspect element facility, but have also installed Firefox. Please if you don't mind telling me another thing. If I am right, <!DOCTYPE html> is used to declare the version of HTML, then why a normal(means basic) HTML code runs without showing any error, even if we don't ad <!DOCTYPE> tag in the html file?

Edited by Jmarton1
  • 3 months later...
  • 7 years later...
Posted

Common validation errors.

No Doctype at all

Forgetting to close an element

Missing / on self-closing elements

Forgetting to convert special characters

Unencoded characters in URLs

Block elements inside inline elements.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...