I have document which is in html5 format. How can I validate if document is in right html5 format? I am not looking to test if text is rendered properly. e.g. bold/italic/table proportion, etc. I want to verify it is in right html5 format. Are there any test cases with which I can say particular document is in html5 format. What are the things/conventions to check to sign off particular document as html5 document. Are there any validation tests I can cover to run say via selenium. Any pointers are appreciated.
e.g. this is part of html5 code. How can I confirm 1. this is part of html5 2. validate it follows html5 conventions
<table class="table" id="table1">
<caption>
<span class="table--title-label">Table 1</span>
<span id="id1" class="title">Table Title</span>
</caption>
<colgroup>
<col>
</colgroup>
<thead class="thead">
<tr class="row" id="row_id">
.....
</td>
</tr>
</tbody>
</table>
Here is another block
<li class="link "><strong><a href="test.html">List1</a></strong><br><br>... </li>