SlideShare a Scribd company logo
HTML Standards
Third party scripts
● Any jquery websites with largely jquery content must have state+bookmarking with
correctly functioning forward and back buttons
○ Use ajaxy http://balupton.github.com/jquery-ajaxy/demo/
● For HTML5 backwards compatibility on IE we use HTML5 Shiv
○ <!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
Attributes
● Images always have an alt attribute (attribute, not tag)
○ <img src=”” alt=”description of the image”>
○ Alt attributes describe the image
○ “The generic rule for the content of the alt attribute is: use text that fulfills the
same function as the image.”
● Links always have a title attribute describing their destination
○ <a href=”” title=”description of the destination content”>anchor text</a>
○ Title attribute describes the destination content in less than 160 characters
○ Describe the destination or nature of the link
● Where necessary and useful, <input> elements should contain the Web speech API
attribute to enable voice recognition on most browsers. (chrome)
○ <input name=”search” id=”search” type=”text” x-webkit-speech>
● All form elements must have labels with the proper for attribute set
○ <label for=”name”>Name:</label>
<input type=”text” id=”name”>
● All form input/select/textarea elements must have the tabindex attribute beginning with 1
○ <input class="trial-storeurl" id="trial-storeurl-1" name="trial-storeurl" type="text"
placeholder="Store Name" tabindex="1">
● Fieldsets must have the form attribute to identify what form they belong to.
○ <fieldset form="trial-signup-form">
Document Structure
● Title Tag, Meta Description, h1 must be relevant to each other and the pages content.
● Long-form copy should have anchors at each heading whether they are linked to or not
with matching “back” functionality to the #top anchor.
● Use logical document structure. Heading tags have a parent - child relationship.
○ <h1>
■ <h2>sub-topic of h1
● <h3>sub-topic of h2
■ <h2>sub-topic of h1
● <h3>sub-topic of h2
● <h3>sub-topic of h2
● <h3>sub-topic of h2
Elements
● We use HTML5
○ We use HTML5 Application caching
■ http://www.webreference.com/authoring/languages/html/HTML5-
Application-Caching/index.html
○ Here is a specific list of elements we know and use
■ <header>
■ <button>
■ <nav>
■ <mark>
■ <article>
■ <section>
■ <footer>
■ <hgroup>
■ <figure>
● <figcaption>
■ <video>
■ <details>
● <summary>
■ <datalist>
■ <output>
■ <dfn>
■ Here are all the new elements in html5 http://www.w3.org/TR/html5-
diff/#new-elements
● Other specific tags we use
○ We use the <abbr> abbreviation tag
■ <abbr title=”United States of America”>USA</abbr>
■ The title attribute explains the abbreviation in all its glory. Always set the
title attribute.
○ We use the <address> tag
■ <address>7227 N 16th St<br/>Phoenix, AZ 85020</address>
■ Address tag is for contact information, we limit this to address, email
address, phone
○ We use the <blockquote> tag
■ <blockquote cite=”source url”>Content that has been copy+pasted from
another source</blockquote>
■ Always set the cite attribute
○ We use the <q> tag for short quotations
■ Stop <q>writing crap html</q>, the development team begged
○ We use <fieldset> to group related form objects and <legend> to define a caption
for the fieldset.
○ We use the <p> tag for text content. Paragraphs
○ We use the <hr> tag for horizontal rule when content is specifically changing
topic
○ We use the <small> tag for fine print
General
● When converting PSD->html/css
○ Use HTML5+CSS to create graphic effects whenever possible, use HTML and
CSS at all costs to avoid using an image file.
● Always use photoshop Save for web & devices, without exception, to minimize file size.
● Crop images as tight as possible. No white-space in images, use css padding/margin for
spacing.
● Images that are part of content should never be set as a background image and should
always use an image tag.
● Images that are part of the template, not content, should be set using css backgrounds.
● Interactive items should always use tags that lend to interaction. Input, a, button
typically.
● We try to avoid “div-itus”, using obscene amounts of divs when they are not needed or
the existing tags could be used as the needed container instead.
● Write efficient good code that is superior. Quality > Production Speed.
● Page Speed and SEO should always be held in high regard when coding any HTML
document.

More Related Content

DOCX
Onpage optimization standards january 2012
PDF
Web Development 2 (HTML & CSS)
PDF
[Basic HTML/CSS] 0. introduction
PDF
Intro to HTML (Kid's Class at TIY)
PPTX
Intro to HTML and CSS
PPTX
Basic html structure
PDF
Web Development 1 (HTML & CSS)
PPT
Streamlining Website Development in Dreamweaver
Onpage optimization standards january 2012
Web Development 2 (HTML & CSS)
[Basic HTML/CSS] 0. introduction
Intro to HTML (Kid's Class at TIY)
Intro to HTML and CSS
Basic html structure
Web Development 1 (HTML & CSS)
Streamlining Website Development in Dreamweaver

What's hot (20)

PPTX
Learning HTML
PPTX
HTML Text formatting tags
PPTX
HTML to FTP
PPTX
HTML_Day_Two(W3Schools)
PDF
PPTX
Html_Day_One (W3Schools)
PPT
HTML email design and usability
PDF
HTML(5) and CSS(3) for beginners - I
PPTX
Presentation
PPTX
Basics of HTML
PPTX
Journey To The Front End World - Part1 - The Skeleton
PPTX
HTML Lesson 1
PPTX
Learning html. (Part- 1)
PPTX
Untitled presentation (8) (1)
PPT
Block2 Session2 Presentation
PPTX
Html link and list tags
PPTX
Code igniter
PPTX
Css Display Property
PPTX
Css floats
PPTX
HTML, CSS and Java Scripts Basics
Learning HTML
HTML Text formatting tags
HTML to FTP
HTML_Day_Two(W3Schools)
Html_Day_One (W3Schools)
HTML email design and usability
HTML(5) and CSS(3) for beginners - I
Presentation
Basics of HTML
Journey To The Front End World - Part1 - The Skeleton
HTML Lesson 1
Learning html. (Part- 1)
Untitled presentation (8) (1)
Block2 Session2 Presentation
Html link and list tags
Code igniter
Css Display Property
Css floats
HTML, CSS and Java Scripts Basics
Ad

Similar to Html5 standards (20)

PPTX
Best Option to learn start here HTML.pptx
PDF
FED-HTML (2).pdf
PPTX
MTA html5 text_graphics_media
PPTX
Frontend Devlopment internship batch 2024.pptx
PPTX
Frontend Devlopment internship batch 2024-2.pptx
PDF
Complete Website Development Guide by AMit P Kumar
PPTX
Dsc Charusat Learning React Part 1
PPTX
Unit 2 Internet and web technology CSS report
PPTX
Html Workshop
PDF
Html and html5 cheat sheets
PPTX
Project 02 Creating and Editing a Web Page - Notes
PPTX
Html and Css Student Education hub point.pptx
PDF
Hypertext_markup_language
PPTX
Web Development PPT from Chd University.
PPTX
Front end full stack development module 1pptx
PPTX
HTML (Web) basics for a beginner
PPTX
html document। .pptx
PPTX
T430-01-Introduction to HTML.pptx
PPTX
HTMLHTML HTML ghdgsahdaHTML HTML ghdgsahda.pptx
PPTX
Introduction to Web Development.pptx
Best Option to learn start here HTML.pptx
FED-HTML (2).pdf
MTA html5 text_graphics_media
Frontend Devlopment internship batch 2024.pptx
Frontend Devlopment internship batch 2024-2.pptx
Complete Website Development Guide by AMit P Kumar
Dsc Charusat Learning React Part 1
Unit 2 Internet and web technology CSS report
Html Workshop
Html and html5 cheat sheets
Project 02 Creating and Editing a Web Page - Notes
Html and Css Student Education hub point.pptx
Hypertext_markup_language
Web Development PPT from Chd University.
Front end full stack development module 1pptx
HTML (Web) basics for a beginner
html document। .pptx
T430-01-Introduction to HTML.pptx
HTMLHTML HTML ghdgsahdaHTML HTML ghdgsahda.pptx
Introduction to Web Development.pptx
Ad

More from Bitsytask (20)

PDF
Lehman Brothers ALT-A Mortgage Docs, December 18, 2006
PDF
BNC Subprime Mortgage Ratesheet 7-2006
PDF
Impac libor option arm 2nd matrix
PDF
New Century Subprime Mortgage Matrix (Stated Doc / 80%, 550 FICO, 50% DTI) 7-...
PDF
Countrywide Option Arm Loans (Negative Amortization) July 26 2006
PDF
Lehman Brothers ALT-A mortgage outline August 18 2006
PDF
Credit Suisse sellers guide (secondary market) August 2006
PDF
GMAC Mortgage Underwriting Guidelines 9-11-2006
PDF
Operation Ajax Declassified PDF 7 of 9
PDF
Operation Ajax Declassified PDF 6 of 9
PDF
Operation Ajax Declassified PDF 5 of 9
PDF
Operation Ajax Declassified PDF 5 of 9
PDF
Operation Ajax Declassified PDF 3 of 9
PDF
Operation Ajax Declassified PDF 2 of 9
PDF
Operation Ajax Declassified PDF 1 of 9
PDF
Operation Ajax Declassified PDF Appendix E
PDF
Operation Ajax Declassified PDF Appendix D
PDF
Operation Ajax Declassified PDF Appendix B
PDF
Operation Ajax Declassified PDF 9 of 9
PDF
the crypto republic
Lehman Brothers ALT-A Mortgage Docs, December 18, 2006
BNC Subprime Mortgage Ratesheet 7-2006
Impac libor option arm 2nd matrix
New Century Subprime Mortgage Matrix (Stated Doc / 80%, 550 FICO, 50% DTI) 7-...
Countrywide Option Arm Loans (Negative Amortization) July 26 2006
Lehman Brothers ALT-A mortgage outline August 18 2006
Credit Suisse sellers guide (secondary market) August 2006
GMAC Mortgage Underwriting Guidelines 9-11-2006
Operation Ajax Declassified PDF 7 of 9
Operation Ajax Declassified PDF 6 of 9
Operation Ajax Declassified PDF 5 of 9
Operation Ajax Declassified PDF 5 of 9
Operation Ajax Declassified PDF 3 of 9
Operation Ajax Declassified PDF 2 of 9
Operation Ajax Declassified PDF 1 of 9
Operation Ajax Declassified PDF Appendix E
Operation Ajax Declassified PDF Appendix D
Operation Ajax Declassified PDF Appendix B
Operation Ajax Declassified PDF 9 of 9
the crypto republic

Recently uploaded (20)

PDF
Getting Started with Data Integration: FME Form 101
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Electronic commerce courselecture one. Pdf
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Machine Learning_overview_presentation.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Approach and Philosophy of On baking technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Spectroscopy.pptx food analysis technology
Getting Started with Data Integration: FME Form 101
Diabetes mellitus diagnosis method based random forest with bat algorithm
“AI and Expert System Decision Support & Business Intelligence Systems”
Programs and apps: productivity, graphics, security and other tools
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Electronic commerce courselecture one. Pdf
SOPHOS-XG Firewall Administrator PPT.pptx
Empathic Computing: Creating Shared Understanding
Advanced methodologies resolving dimensionality complications for autism neur...
A comparative analysis of optical character recognition models for extracting...
Big Data Technologies - Introduction.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Unlocking AI with Model Context Protocol (MCP)
Machine Learning_overview_presentation.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Approach and Philosophy of On baking technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Spectroscopy.pptx food analysis technology

Html5 standards

  • 1. HTML Standards Third party scripts ● Any jquery websites with largely jquery content must have state+bookmarking with correctly functioning forward and back buttons ○ Use ajaxy http://balupton.github.com/jquery-ajaxy/demo/ ● For HTML5 backwards compatibility on IE we use HTML5 Shiv ○ <!--[if IE]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> Attributes ● Images always have an alt attribute (attribute, not tag) ○ <img src=”” alt=”description of the image”> ○ Alt attributes describe the image ○ “The generic rule for the content of the alt attribute is: use text that fulfills the same function as the image.” ● Links always have a title attribute describing their destination ○ <a href=”” title=”description of the destination content”>anchor text</a> ○ Title attribute describes the destination content in less than 160 characters ○ Describe the destination or nature of the link ● Where necessary and useful, <input> elements should contain the Web speech API attribute to enable voice recognition on most browsers. (chrome) ○ <input name=”search” id=”search” type=”text” x-webkit-speech> ● All form elements must have labels with the proper for attribute set ○ <label for=”name”>Name:</label> <input type=”text” id=”name”> ● All form input/select/textarea elements must have the tabindex attribute beginning with 1 ○ <input class="trial-storeurl" id="trial-storeurl-1" name="trial-storeurl" type="text" placeholder="Store Name" tabindex="1"> ● Fieldsets must have the form attribute to identify what form they belong to.
  • 2. ○ <fieldset form="trial-signup-form"> Document Structure ● Title Tag, Meta Description, h1 must be relevant to each other and the pages content. ● Long-form copy should have anchors at each heading whether they are linked to or not with matching “back” functionality to the #top anchor. ● Use logical document structure. Heading tags have a parent - child relationship. ○ <h1> ■ <h2>sub-topic of h1 ● <h3>sub-topic of h2 ■ <h2>sub-topic of h1 ● <h3>sub-topic of h2 ● <h3>sub-topic of h2 ● <h3>sub-topic of h2 Elements ● We use HTML5 ○ We use HTML5 Application caching ■ http://www.webreference.com/authoring/languages/html/HTML5- Application-Caching/index.html ○ Here is a specific list of elements we know and use ■ <header> ■ <button> ■ <nav> ■ <mark> ■ <article> ■ <section> ■ <footer> ■ <hgroup> ■ <figure> ● <figcaption> ■ <video> ■ <details> ● <summary> ■ <datalist> ■ <output> ■ <dfn>
  • 3. ■ Here are all the new elements in html5 http://www.w3.org/TR/html5- diff/#new-elements ● Other specific tags we use ○ We use the <abbr> abbreviation tag ■ <abbr title=”United States of America”>USA</abbr> ■ The title attribute explains the abbreviation in all its glory. Always set the title attribute. ○ We use the <address> tag ■ <address>7227 N 16th St<br/>Phoenix, AZ 85020</address> ■ Address tag is for contact information, we limit this to address, email address, phone ○ We use the <blockquote> tag ■ <blockquote cite=”source url”>Content that has been copy+pasted from another source</blockquote> ■ Always set the cite attribute ○ We use the <q> tag for short quotations ■ Stop <q>writing crap html</q>, the development team begged ○ We use <fieldset> to group related form objects and <legend> to define a caption for the fieldset. ○ We use the <p> tag for text content. Paragraphs ○ We use the <hr> tag for horizontal rule when content is specifically changing topic ○ We use the <small> tag for fine print General ● When converting PSD->html/css ○ Use HTML5+CSS to create graphic effects whenever possible, use HTML and CSS at all costs to avoid using an image file. ● Always use photoshop Save for web & devices, without exception, to minimize file size. ● Crop images as tight as possible. No white-space in images, use css padding/margin for spacing.
  • 4. ● Images that are part of content should never be set as a background image and should always use an image tag. ● Images that are part of the template, not content, should be set using css backgrounds. ● Interactive items should always use tags that lend to interaction. Input, a, button typically. ● We try to avoid “div-itus”, using obscene amounts of divs when they are not needed or the existing tags could be used as the needed container instead. ● Write efficient good code that is superior. Quality > Production Speed. ● Page Speed and SEO should always be held in high regard when coding any HTML document.