A simple markup standard for HTML5
Here is a simple HTML5 coding standard:
- Always add a lang attribute on html element, e.g.: <html lang=”en-US”>
- No self close empty tags anymore, e.g.: wirte <br> instead of <br />
- No style attribute for rel links for css or in the <script> tags, e.g.:
Just <link media=”all” href=”_css/style.css” rel=”stylesheet”>
or <script src=”_js/calendar.js”></script> - Make all tags in lowercase
- Use double quotes for attribute value
- Jusrt write the attribute indicate instead of the value and the attribute for boolean attributes, e.g.:
<section hidden>xxx</section> instead of <section hidden=”hidden”>xxx</section>
What do you think?
Thank you for reading this post. You can now Leave A Comment (0)
Post Info
This entry was posted on 2011-06-05 12:45 PM and is filed under Technology tagged with:HTML5You can follow any responses to this entry through the Comments Feed. You can Leave A Comment , or A Trackback .
Previous Post: Checking out Concretr5 »
Next Post: For those who think English is not important »
Latest Posts:
- For those who think English is not important
- A simple markup standard for HTML5
- Checking out Concretr5
- Nicknames for types of your TMs
- Building team spirit
- INNOCENT – By Taylor Swift
- The meaning of history
- What is the best system to set up and run a web site?
- I want every Chinese read George Orwell 1984!
- I think we should trying to get to know more each other’s history.








