---
title: "Validating HTML/HTML 5"  
description: "Validating html document meant checking the preferred document syntax and standard, what is follows."  
author: "Sumit Kesarwani"  
published: 2013-08-22  
updated: 2019-09-07  
canonical: https://www.mindstick.com/articles/1373/validating-html-html-5  
category: "web development"  
tags: ["web development"]  
reading_time: 2 minutes  

---

# Validating HTML/HTML 5

##### Introduction

Validating html [document](https://www.mindstick.com/articles/328642/what-to-consider-while-choosing-a-software-documentation-tool) meant checking the preferred document syntax and [standard](https://www.mindstick.com/articles/23223/naming-convention-or-coding-standard), what is follows. There is [html5](https://www.mindstick.com/articles/1535/offline-add-edit-delete-data-in-html5-indexeddb) online [validation](https://www.mindstick.com/articles/43/validation-controls-in-asp-dot-net) is available which take html/html5 document and verify whether this document follow the standards of html5 or not. And generate errors and suggestion to reform the html document.

##### The sources available are:

1. http://validator.w3.org/

2. http://validator.whatwg.org/

To [validate](https://www.mindstick.com/forum/1490/what-is-better-solution-for-validate-form-textboxs-value) html document follow the following steps:

Step1: create your html document as given below; note this is demo html file. However you can select/[choose](https://yourviews.mindstick.com/view/87863/why-you-should-not-choose-wordpress-for-making-a-website) you heavy/[large file](https://www.mindstick.com/forum/161604/how-can-you-measure-the-time-it-takes-to-read-or-write-a-large-file) to validate as need as you could use.

```
<html>
  <head>
    <title> demo html page</title>
  </head>
  <body>
    <h1> this is demo Html page intended to validate</h1>
  </body>
</html>
```

Step2: Open the [browser](https://www.mindstick.com/articles/323165/top-10-fastest-internet-browsers-in-the-world) and open the URL given above. ( http://validator.w3.org/)

\
![Validating HTML/HTML 5](https://www.mindstick.com/mindstickarticle/90a0a34a-88bf-4c30-a266-c721829bcdc0/images/13a5f3d7-1dd5-40b0-af80-4163016ba9d9.png)\

Now you have three options to refer the html document what you want to validate using the above html5 valuator.

1. Validate by URI: give the URI (URL) of your document to be validate.

2. Validate by File Upload: in this method you can upload your file (html document) to be validated.

3. Validate by Direct Input: in this method you can copy/paste or write document directly into this valuator.

Step3: Now after choosing any of the methods for inputting you html document for processing. Click on “Check “button as mention in screen shoot.

![Validating HTML/HTML 5](https://www.mindstick.com/mindstickarticle/90a0a34a-88bf-4c30-a266-c721829bcdc0/images/742eea05-1ef2-4ff7-9e60-28662f6b76c2.png)\

As seen in above figure you can select various “check boxes from more option panel”. It depends on how you want to validate.

Step4: Now click on the Check button. You will display list of errors if any and warnings, suggestion etc.

##### The output generated by this validation is in subsequent figures as:

**\**![Validating HTML/HTML 5](https://www.mindstick.com/mindstickarticle/90a0a34a-88bf-4c30-a266-c721829bcdc0/images/d9423a8d-d8bf-4967-aac1-b62d55e5f1b7.png)

![Validating HTML/HTML 5](https://www.mindstick.com/mindstickarticle/90a0a34a-88bf-4c30-a266-c721829bcdc0/images/2d5166d4-df16-4e83-8c0a-a300ef66a92e.png)

![Validating HTML/HTML 5](https://www.mindstick.com/mindstickarticle/90a0a34a-88bf-4c30-a266-c721829bcdc0/images/4f52dee2-00fa-473e-bf95-170291f5b282.png)

![Validating HTML/HTML 5](https://www.mindstick.com/mindstickarticle/90a0a34a-88bf-4c30-a266-c721829bcdc0/images/d1fd3009-aa84-402e-adb2-a263949a2d4f.png)

I hope this [article](https://yourviews.mindstick.com/view/81489/kashmir-now-after-an-year-of-abrogation-of-article-370) had been resolved the [problem](https://yourviews.mindstick.com/view/81709/why-china-has-problem-with-norway-in-noble-prize-awarding) related to HTML document validation at standard level.

##### Thanks you.

---

Original Source: https://www.mindstick.com/articles/1373/validating-html-html-5

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
