SlideShare une entreprise Scribd logo
1  sur  4
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.

Contenu connexe

Tendances

Tendances (20)

Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
 
HTML to FTP
HTML to FTPHTML to FTP
HTML to FTP
 
HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)
 
Basic html
Basic htmlBasic html
Basic html
 
Html_Day_One (W3Schools)
Html_Day_One (W3Schools)Html_Day_One (W3Schools)
Html_Day_One (W3Schools)
 
HTML email design and usability
HTML email design and usabilityHTML email design and usability
HTML email design and usability
 
HTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - IHTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - I
 
Presentation
PresentationPresentation
Presentation
 
Basics of HTML
Basics of HTMLBasics of HTML
Basics of HTML
 
Journey To The Front End World - Part1 - The Skeleton
Journey To The Front End World - Part1 - The SkeletonJourney To The Front End World - Part1 - The Skeleton
Journey To The Front End World - Part1 - The Skeleton
 
HTML Lesson 1
HTML Lesson 1HTML Lesson 1
HTML Lesson 1
 
Learning html. (Part- 1)
Learning html. (Part- 1)Learning html. (Part- 1)
Learning html. (Part- 1)
 
Untitled presentation (8) (1)
Untitled presentation (8) (1)Untitled presentation (8) (1)
Untitled presentation (8) (1)
 
Block2 Session2 Presentation
Block2 Session2 PresentationBlock2 Session2 Presentation
Block2 Session2 Presentation
 
Html link and list tags
Html link and list tagsHtml link and list tags
Html link and list tags
 
Code igniter
Code igniterCode igniter
Code igniter
 
Css Display Property
Css Display PropertyCss Display Property
Css Display Property
 
Css floats
Css floatsCss floats
Css floats
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
 

Similaire à Html5 standards

Web Design Bootcamp - Day1
Web Design Bootcamp - Day1Web Design Bootcamp - Day1
Web Design Bootcamp - Day1
Aslam Najeebdeen
 

Similaire à Html5 standards (20)

FED-HTML (2).pdf
FED-HTML (2).pdfFED-HTML (2).pdf
FED-HTML (2).pdf
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_media
 
Complete Website Development Guide by AMit P Kumar
Complete Website Development Guide by AMit P KumarComplete Website Development Guide by AMit P Kumar
Complete Website Development Guide by AMit P Kumar
 
Dsc Charusat Learning React Part 1
Dsc Charusat Learning React Part 1 Dsc Charusat Learning React Part 1
Dsc Charusat Learning React Part 1
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Html and html5 cheat sheets
Html and html5 cheat sheetsHtml and html5 cheat sheets
Html and html5 cheat sheets
 
Project 02 Creating and Editing a Web Page - Notes
Project 02 Creating and Editing a Web Page - NotesProject 02 Creating and Editing a Web Page - Notes
Project 02 Creating and Editing a Web Page - Notes
 
Hypertext_markup_language
Hypertext_markup_languageHypertext_markup_language
Hypertext_markup_language
 
Front end full stack development module 1pptx
Front end full stack development module 1pptxFront end full stack development module 1pptx
Front end full stack development module 1pptx
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
T430-01-Introduction to HTML.pptx
T430-01-Introduction to HTML.pptxT430-01-Introduction to HTML.pptx
T430-01-Introduction to HTML.pptx
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
 
Chapter 2.pdf
Chapter 2.pdfChapter 2.pdf
Chapter 2.pdf
 
Html basic
Html basicHtml basic
Html basic
 
HTML5 tags.ppt
HTML5 tags.pptHTML5 tags.ppt
HTML5 tags.ppt
 
Web Design Bootcamp - Day1
Web Design Bootcamp - Day1Web Design Bootcamp - Day1
Web Design Bootcamp - Day1
 
Html5 ppt
Html5 pptHtml5 ppt
Html5 ppt
 
HTML 5 Simple Tutorial Part 1
HTML 5 Simple Tutorial Part 1HTML 5 Simple Tutorial Part 1
HTML 5 Simple Tutorial Part 1
 

Plus de Bitsytask

Impac libor option arm 2nd matrix
Impac libor option arm 2nd matrixImpac libor option arm 2nd matrix
Impac libor option arm 2nd matrix
Bitsytask
 

Plus de Bitsytask (20)

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

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

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.