Skip to content

Commit b1399bb

Browse files
authored
Add HTML validation best practice (thoughtbot#588)
Running your HTML through a validator can uncover all sorts of issues and helps you ensure that your markup is accessible and in-line with Web standards.
1 parent eacc108 commit b1399bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

html/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# HTML
22

3+
- Use the [W3C's Markup Validation Service][html-validator] to validate HTML
34
- Prefer double quotes for attributes.
45
- Use lowercase text for elements and attributes
56
- Use double quotes to wrap element attributes
@@ -27,5 +28,6 @@
2728
- Ensure heading elements are used to section content, and heading levels are
2829
not skipped
2930

31+
[html-validator]: https://validator.w3.org/
3032
[normal elements]: https://html.spec.whatwg.org/multipage/syntax.html#normal-elements
3133
[parent elements contain no more than 60 child elements]: https://developers.google.com/web/tools/lighthouse/audits/dom-size

0 commit comments

Comments
 (0)