SlideShare a Scribd company logo
1 of 45
markup
Take your
                                         to




    Some rights reserved   February 2, 2011   Webuquerque
Freelance Web Designer
http://emilylewisdesign.com



Webuquerque Co-Founder & Co-Manager
http://webuquerque.com



Author, Microformats Made Simple
http://microformatsmadesimple.com


Email:   emily@emilylewisdesign.com
Blog:    http://ablognotlimited.com
Twitter: @emilylewis
HTML is awesome
• Foundation of today’s web
• Can make a perfectly great web site
  with nothing else
• Valid   http://validator.w3.org/


• Comparatively easy to learn &
  implement
But it’s often
overlooked
HTML Can be awesomer
• Semantics for machine readability
• Accessible for all users
• Development efficiencies
• Syndication
• SEO and findability
• User experience enhancements
To reach this level of awesome, you have to go


   One Louder
Plain Old Semantic Markup


   POSH
POSH Is
• Markup that has meaning
• Markup that describes the content
  itself, not the presentation
• Elements used for their intended
  purpose
POSH BenefiTs
• Web standards
• Portability for devices
• Common standard for teams
• Easier troubleshooting & maintenance
• More accessible
• Leaner markup = lighter weight pages
POSH Tips
• Use <h1>-<h6> for headings & to define
  content outline
• Use <table> for tabular data, not layout
• List elements (<ol>, <ul>, <dl>) for lists
• Drop presentational elements (<u>,
  <big>, <center>) in favor of CSS

• Semantic class and id naming
Not POSH
    <table>
    
 <tr>
    
 
 <td><a    href="/">Home</a></td>
         <td><a   href="/products/">Products</a></td>
         <td><a   href="/services/">Services</a></td>
         <td><a   href="/about/">About</a></td>
    
 </tr>
    </table>

Also not POSH
    <div>
      <p><a href="/">Home</a></p>
      <p><a href="/products/">Products</a></p>
      <p><a href="/services/">Services</a></p>
      <p><a href="/about/">About</a></p>
    </div>
POSH FTW
<ul id="nav">

 <li><a href="/">Home</a></li>
   <li><a href="/products/">Products</a></li>
   <li><a href="/services/">Services</a></li>
   <li><a href="/about/">About</a></li>
</ul>
The “Future” Is Now


HTML5
HTML5 Is More Than Markup
• Rich media (<canvas>, <audio>, <video>)
• Interactive <form> enhancements
• APIs for application development
HTML5 Is
• Backwards and forward compatible
• New semantic elements
• Obsolete presentational elements
• Flexible and simplified syntax
               But is it for you?
DOCTYPE FLExible SynTaX
Before
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
   Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/
   xhtml1-strict.dtd">

Now
   <!DOCTYPE html>
Style FLExible SynTaX
• All coding styles are valid
 • Uppercase tag names
 • Optional quotes for attributes
 • Optional values for attributes
 • Optional closed empty elements
Links & Block Content
Before
   <h1><a href="/">Emily Lewis Design</a></h2>
   <h2><a href="/">Beauty Isn’t Skin Deep</a></h2>
   <a href="/"><img src="logo.png" alt="Emily Lewis
   Design" /></a>

Now
   <a href="/">
     <h1>Emily Lewis Design</h1>
     <h2>Beauty Isn’t Skin Deep</h2>
     <img src="logo.png" alt="Emily Lewis Design" />
   </a>
Semantic Structure
• <section>
• <header>
• <footer>
• <nav>
• <aside>
• <article>
Site Layout
HTML5 Structure
Making the Move
Before
<div id="header">
   <h1><a href="/">The Law Office of Jimbob Smith</a></h1> 
   <a href="/"><img src="logo.png" alt="Jimbob Legal"/></a>
</div>

<ul>
  <li><a href="/News/">News</a></li>
  <li><a href="/Services/">Services</a></li>
  <li><a href="/Resources/">Resources</a></li>
  <li><a href="/About/">About</a></li>
</ul>
Making the Move
After
<header>
  <a href="/">
    <h1>The Law Office of Jimbob Smith</h1>
    <img src="logo.png" alt="Jimbob Legal" />
  </a>
</header>

<nav>
  <ul>
    <li><a href="/News/">News</a></li>
    <li><a href="/Services/">Services</a></li>
    <li><a href="/Resources/">Resources</a></li>
    <li><a href="/About/">About</a></li>
  </ul>
</nav>
HTML5 Tips
• Use as much or as little as you want
• Be aware of browser limitations
 • display: block
 • document.createElement
• Remember it is a Working Draft (“living
  standard”)
• Experiment and educate
More Meaning With


Microformats
Microformats Are
• HTML design patterns for describing
  common content like:
 • People, organizations and places
 • Events
 • Hyperlinks
 • Blog posts
 • Reviews
Microformats BENEFITS
• Semantics
• User experience enhancements
• More meaningful search results &
  better findability
• Encourages consistency and standards
• Minimal development effort
• No need for software or special
  technologies
hCard              COnTAcT Info
Before
   <dl>
     <dt>Emily Lewis</dt>
     <dd>
      <ul>
        <li><a href="http://www.ablognotlimited.com">
   A Blog Not Limited</a></li>
         <li>Albuquerque, <abbr title="New Mexico">NM</
   abbr> 87106</li>
        <li><a href="mailto:emily@ablognotlimited.com">
   emily@ablognotlimited.com</a></li>
      </ul>
     </dd>
   </dl>
hCard               COnTAcT Info
After
   <dl class="vcard">
     <dt class="fn">Emily Lewis</dt>
     <dd>
      <ul>
        <li><a href="http://www.ablognotlimited.com"
   class="url">A Blog Not Limited</a></li>
         <li class="adr"><span
   class="locality">Albuquerque
   </span>, <abbr title="New Mexico" class="region">NM</
   abbr> <span class="postal-code">87106</span></li>
        <li><a href="mailto:emily@ablognotlimited.com"
   class="email">emily@ablognotlimited.com</a></li>
      </ul>
     </dd>
   </dl>
hCard DIY Demos
• Downloadable business card
 • H2VX Contacts Conversion Service
 • Operator add-on for Firefox
 • Tails Export Add-on for Firefox
 • Michromeformats extension for
   Chrome
 • SafariMicroformats plug-in for Safari
HTML5 Likes Machine Readability Too


 Microdata
Microdata COnTAcT Info
Before
   <dl>
      <dt><a href="http://ablognotlimited.com">Emily
   Lewis</a></dt>
      <dd>Web Designer</dd>
      <dd>Albuquerque, <abbr title="New Mexico"
   class="region">NM</abbr>87106</dd>
   </dl>
Microdata COnTAcT Info
After
   <dl itemscope itemtype="http://data-vocabulary.org/
   Person">
      <dt itemprop="name"><a href="http://
   ablognotlimited.com" itemprop="url">Emily Lewis</a></
   dt>
      <dd itemprop="title">Web Designer</dd>
      <dd itemprop="address" itemscope itemtype="http://
   data-vocabulary.org/Address"><span
   itemprop="locality">Albuquerque</span>, <abbr
   title="New Mexico" itemprop="region">NM</abbr> <span
   itemprop="postal-code">87106</span></dd>
   </dl>
Microdata TO use or NoTt
• Yes, I’m biased
• Not as many parsers available
• It is a bit more complex than
  microformats
• You don’t have to choose
Two Stones, One Bird
<dl class="vcard" itemscope itemtype="http://data-
vocabulary.org/Person">
   <dt class="fn" itemprop="name"><a href="http://
ablognotlimited.com" itemprop="url">Emily Lewis</a></
dt>
   <dd class="title" itemprop="title">Web Designer</
dd>
   <dd class="adr" itemprop="address" itemscope
itemtype="http://data-vocabulary.org/Address"><span
class="locality" itemprop="locality">Albuquerque</
span>, <abbr title="New Mexico" class="region"
itemprop="region">NM</abbr> <span class="postal-code"
itemprop="postal-code">87106</span></dd>
</dl>
ARIA Roles
ARIA Is
• Set of guidelines from WAI for
  accessible, rich internet applications
• Includes Document Landmark Roles to
  indicate document structure and aid
  navigation
Landmark Roles
• role="banner"
• role="navigation"    not needed on <nav>


• role="main"
• role="search"
• role="article"
• role="complementary"      not needed on <aside>


• role="contentinfo"    not needed on <footer>
Adding Roles
XHTML
<div id="header" role="banner">
   <h1><a href="/">The Law Office of Jimbob Smith</a></h1> 
   <a href="/"><img src="logo.png" alt="Jimbob Legal"/></a>
</div>

<ul role="navigation">
  <li><a href="/News/">News</a></li>
  <li><a href="/Services/">Services</a></li>
  <li><a href="/Resources/">Resources</a></li>
  <li><a href="/About/">About</a></li>
</ul>
Adding Roles
HTML5
<header role="banner">
  <a href="/">
    <h1>The Law Office of Jimbob Smith</h1>
    <img src="logo.png" alt="Jimbob Legal" />
  </a>
</header>

<nav>
  <ul>
    <li><a href="/News/">News</a></li>
    <li><a href="/Services/">Services</a></li>
    <li><a href="/Resources/">Resources</a></li>
    <li><a href="/About/">About</a></li>
  </ul>
</nav>
Going to eleven
• Use what works for you, your projects and
  your clients (not “all or nothing”)
• Experiment, test and decide for yourself
• Stay up-to-date on changes
Resources and self pimpage
• Meaningful Markup: POSH and Beyond
• The Beauty of Semantic Markup series
• Getting Semantic With Microformats
  series
• Web Accessibility & WAI-ARIA Primer
• Microformats, HTML5 and Microdata
• Using HTML5’s Semantic Tags Today
Questions?
Thanks!
         P.S. I’d love your feedback!
http://speakerrate.com/talks/5471-take-your-markup-to-eleven

More Related Content

Viewers also liked

Microformats or: How I Learned to Write POSH and Love the Semantic Web
Microformats or: How I Learned to Write POSH and Love the Semantic WebMicroformats or: How I Learned to Write POSH and Love the Semantic Web
Microformats or: How I Learned to Write POSH and Love the Semantic WebEmily Lewis
 
Building the Webuquerque Community
Building the Webuquerque CommunityBuilding the Webuquerque Community
Building the Webuquerque CommunityEmily Lewis
 
SmartOrganization
SmartOrganizationSmartOrganization
SmartOrganizationpgorjup
 
Vamosa Corporate Presentation V5 Juy21 1
Vamosa Corporate Presentation V5 Juy21 1Vamosa Corporate Presentation V5 Juy21 1
Vamosa Corporate Presentation V5 Juy21 1Flexiant
 
Letchworth Controls. Nonprofit Fraud Prevention
Letchworth Controls. Nonprofit Fraud PreventionLetchworth Controls. Nonprofit Fraud Prevention
Letchworth Controls. Nonprofit Fraud PreventionSwaman1
 
Campus Communications Flyer 09[1]
Campus Communications Flyer 09[1]Campus Communications Flyer 09[1]
Campus Communications Flyer 09[1]karenmathis
 
jQuery, A Designer's Perspective
jQuery, A Designer's PerspectivejQuery, A Designer's Perspective
jQuery, A Designer's PerspectiveEmily Lewis
 
Take Your Markup to 11
Take Your Markup to 11Take Your Markup to 11
Take Your Markup to 11Emily Lewis
 
10 Advanced CSS Techniques (You Wish You Knew More About)
10 Advanced CSS Techniques (You Wish You Knew More About)10 Advanced CSS Techniques (You Wish You Knew More About)
10 Advanced CSS Techniques (You Wish You Knew More About)Emily Lewis
 
AgileInnovation
AgileInnovationAgileInnovation
AgileInnovationpgorjup
 

Viewers also liked (14)

MWMCA Farewell Articlw - 082415
MWMCA Farewell Articlw - 082415MWMCA Farewell Articlw - 082415
MWMCA Farewell Articlw - 082415
 
Microformats or: How I Learned to Write POSH and Love the Semantic Web
Microformats or: How I Learned to Write POSH and Love the Semantic WebMicroformats or: How I Learned to Write POSH and Love the Semantic Web
Microformats or: How I Learned to Write POSH and Love the Semantic Web
 
Ufa Ppt 1
Ufa Ppt 1Ufa Ppt 1
Ufa Ppt 1
 
Building the Webuquerque Community
Building the Webuquerque CommunityBuilding the Webuquerque Community
Building the Webuquerque Community
 
SmartOrganization
SmartOrganizationSmartOrganization
SmartOrganization
 
Vamosa Corporate Presentation V5 Juy21 1
Vamosa Corporate Presentation V5 Juy21 1Vamosa Corporate Presentation V5 Juy21 1
Vamosa Corporate Presentation V5 Juy21 1
 
Letchworth Controls. Nonprofit Fraud Prevention
Letchworth Controls. Nonprofit Fraud PreventionLetchworth Controls. Nonprofit Fraud Prevention
Letchworth Controls. Nonprofit Fraud Prevention
 
Campus Communications Flyer 09[1]
Campus Communications Flyer 09[1]Campus Communications Flyer 09[1]
Campus Communications Flyer 09[1]
 
jQuery, A Designer's Perspective
jQuery, A Designer's PerspectivejQuery, A Designer's Perspective
jQuery, A Designer's Perspective
 
Take Your Markup to 11
Take Your Markup to 11Take Your Markup to 11
Take Your Markup to 11
 
Ufa Ppt 1
Ufa Ppt 1Ufa Ppt 1
Ufa Ppt 1
 
European Schoolnet #Tabletscourse MOOC
European Schoolnet #Tabletscourse MOOCEuropean Schoolnet #Tabletscourse MOOC
European Schoolnet #Tabletscourse MOOC
 
10 Advanced CSS Techniques (You Wish You Knew More About)
10 Advanced CSS Techniques (You Wish You Knew More About)10 Advanced CSS Techniques (You Wish You Knew More About)
10 Advanced CSS Techniques (You Wish You Knew More About)
 
AgileInnovation
AgileInnovationAgileInnovation
AgileInnovation
 

More from Emily Lewis

Create Your Own Starter Files
Create Your Own Starter FilesCreate Your Own Starter Files
Create Your Own Starter FilesEmily Lewis
 
The Hiring Process
The Hiring ProcessThe Hiring Process
The Hiring ProcessEmily Lewis
 
Take Your Markup to Eleven
Take Your Markup to ElevenTake Your Markup to Eleven
Take Your Markup to ElevenEmily Lewis
 
Designer-Friendly EE
Designer-Friendly EEDesigner-Friendly EE
Designer-Friendly EEEmily Lewis
 
Multiple Site Management with ExpressionEngine
Multiple Site Management with ExpressionEngineMultiple Site Management with ExpressionEngine
Multiple Site Management with ExpressionEngineEmily Lewis
 
WordPress & Other Content Management Systems
WordPress & Other Content Management SystemsWordPress & Other Content Management Systems
WordPress & Other Content Management SystemsEmily Lewis
 
Practical Microformats - Voices That Matter
Practical Microformats - Voices That MatterPractical Microformats - Voices That Matter
Practical Microformats - Voices That MatterEmily Lewis
 
[Workshop Summits] Microformats Workshop
[Workshop Summits] Microformats Workshop[Workshop Summits] Microformats Workshop
[Workshop Summits] Microformats WorkshopEmily Lewis
 
Microformats: Web Semantics & More
Microformats: Web Semantics & MoreMicroformats: Web Semantics & More
Microformats: Web Semantics & MoreEmily Lewis
 
Podcasting & Vodcasting 101
Podcasting & Vodcasting 101Podcasting & Vodcasting 101
Podcasting & Vodcasting 101Emily Lewis
 

More from Emily Lewis (10)

Create Your Own Starter Files
Create Your Own Starter FilesCreate Your Own Starter Files
Create Your Own Starter Files
 
The Hiring Process
The Hiring ProcessThe Hiring Process
The Hiring Process
 
Take Your Markup to Eleven
Take Your Markup to ElevenTake Your Markup to Eleven
Take Your Markup to Eleven
 
Designer-Friendly EE
Designer-Friendly EEDesigner-Friendly EE
Designer-Friendly EE
 
Multiple Site Management with ExpressionEngine
Multiple Site Management with ExpressionEngineMultiple Site Management with ExpressionEngine
Multiple Site Management with ExpressionEngine
 
WordPress & Other Content Management Systems
WordPress & Other Content Management SystemsWordPress & Other Content Management Systems
WordPress & Other Content Management Systems
 
Practical Microformats - Voices That Matter
Practical Microformats - Voices That MatterPractical Microformats - Voices That Matter
Practical Microformats - Voices That Matter
 
[Workshop Summits] Microformats Workshop
[Workshop Summits] Microformats Workshop[Workshop Summits] Microformats Workshop
[Workshop Summits] Microformats Workshop
 
Microformats: Web Semantics & More
Microformats: Web Semantics & MoreMicroformats: Web Semantics & More
Microformats: Web Semantics & More
 
Podcasting & Vodcasting 101
Podcasting & Vodcasting 101Podcasting & Vodcasting 101
Podcasting & Vodcasting 101
 

Recently uploaded

New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 

Recently uploaded (20)

New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 

Take Your Markup to Eleven

  • 1. markup Take your to Some rights reserved February 2, 2011 Webuquerque
  • 2. Freelance Web Designer http://emilylewisdesign.com Webuquerque Co-Founder & Co-Manager http://webuquerque.com Author, Microformats Made Simple http://microformatsmadesimple.com Email: emily@emilylewisdesign.com Blog: http://ablognotlimited.com Twitter: @emilylewis
  • 3. HTML is awesome • Foundation of today’s web • Can make a perfectly great web site with nothing else • Valid http://validator.w3.org/ • Comparatively easy to learn & implement
  • 5. HTML Can be awesomer • Semantics for machine readability • Accessible for all users • Development efficiencies • Syndication • SEO and findability • User experience enhancements
  • 6. To reach this level of awesome, you have to go One Louder
  • 7.
  • 8. Plain Old Semantic Markup POSH
  • 9. POSH Is • Markup that has meaning • Markup that describes the content itself, not the presentation • Elements used for their intended purpose
  • 10. POSH BenefiTs • Web standards • Portability for devices • Common standard for teams • Easier troubleshooting & maintenance • More accessible • Leaner markup = lighter weight pages
  • 11. POSH Tips • Use <h1>-<h6> for headings & to define content outline • Use <table> for tabular data, not layout • List elements (<ol>, <ul>, <dl>) for lists • Drop presentational elements (<u>, <big>, <center>) in favor of CSS • Semantic class and id naming
  • 12. Not POSH <table> <tr> <td><a href="/">Home</a></td> <td><a href="/products/">Products</a></td> <td><a href="/services/">Services</a></td> <td><a href="/about/">About</a></td> </tr> </table> Also not POSH <div> <p><a href="/">Home</a></p> <p><a href="/products/">Products</a></p> <p><a href="/services/">Services</a></p> <p><a href="/about/">About</a></p> </div>
  • 13. POSH FTW <ul id="nav"> <li><a href="/">Home</a></li> <li><a href="/products/">Products</a></li> <li><a href="/services/">Services</a></li> <li><a href="/about/">About</a></li> </ul>
  • 14. The “Future” Is Now HTML5
  • 15. HTML5 Is More Than Markup • Rich media (<canvas>, <audio>, <video>) • Interactive <form> enhancements • APIs for application development
  • 16. HTML5 Is • Backwards and forward compatible • New semantic elements • Obsolete presentational elements • Flexible and simplified syntax But is it for you?
  • 17. DOCTYPE FLExible SynTaX Before <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/ xhtml1-strict.dtd"> Now <!DOCTYPE html>
  • 18. Style FLExible SynTaX • All coding styles are valid • Uppercase tag names • Optional quotes for attributes • Optional values for attributes • Optional closed empty elements
  • 19. Links & Block Content Before <h1><a href="/">Emily Lewis Design</a></h2> <h2><a href="/">Beauty Isn’t Skin Deep</a></h2> <a href="/"><img src="logo.png" alt="Emily Lewis Design" /></a> Now <a href="/"> <h1>Emily Lewis Design</h1> <h2>Beauty Isn’t Skin Deep</h2> <img src="logo.png" alt="Emily Lewis Design" /> </a>
  • 20. Semantic Structure • <section> • <header> • <footer> • <nav> • <aside> • <article>
  • 23. Making the Move Before <div id="header">    <h1><a href="/">The Law Office of Jimbob Smith</a></h1>     <a href="/"><img src="logo.png" alt="Jimbob Legal"/></a> </div> <ul> <li><a href="/News/">News</a></li> <li><a href="/Services/">Services</a></li> <li><a href="/Resources/">Resources</a></li> <li><a href="/About/">About</a></li> </ul>
  • 24. Making the Move After <header> <a href="/"> <h1>The Law Office of Jimbob Smith</h1> <img src="logo.png" alt="Jimbob Legal" /> </a> </header> <nav> <ul> <li><a href="/News/">News</a></li> <li><a href="/Services/">Services</a></li> <li><a href="/Resources/">Resources</a></li> <li><a href="/About/">About</a></li> </ul> </nav>
  • 25. HTML5 Tips • Use as much or as little as you want • Be aware of browser limitations • display: block • document.createElement • Remember it is a Working Draft (“living standard”) • Experiment and educate
  • 27. Microformats Are • HTML design patterns for describing common content like: • People, organizations and places • Events • Hyperlinks • Blog posts • Reviews
  • 28. Microformats BENEFITS • Semantics • User experience enhancements • More meaningful search results & better findability • Encourages consistency and standards • Minimal development effort • No need for software or special technologies
  • 29. hCard COnTAcT Info Before <dl> <dt>Emily Lewis</dt>   <dd>    <ul>      <li><a href="http://www.ablognotlimited.com"> A Blog Not Limited</a></li>       <li>Albuquerque, <abbr title="New Mexico">NM</ abbr> 87106</li>      <li><a href="mailto:emily@ablognotlimited.com"> emily@ablognotlimited.com</a></li>    </ul> </dd> </dl>
  • 30. hCard COnTAcT Info After <dl class="vcard"> <dt class="fn">Emily Lewis</dt>   <dd>    <ul>      <li><a href="http://www.ablognotlimited.com" class="url">A Blog Not Limited</a></li>       <li class="adr"><span class="locality">Albuquerque </span>, <abbr title="New Mexico" class="region">NM</ abbr> <span class="postal-code">87106</span></li>      <li><a href="mailto:emily@ablognotlimited.com" class="email">emily@ablognotlimited.com</a></li>    </ul> </dd> </dl>
  • 31. hCard DIY Demos • Downloadable business card • H2VX Contacts Conversion Service • Operator add-on for Firefox • Tails Export Add-on for Firefox • Michromeformats extension for Chrome • SafariMicroformats plug-in for Safari
  • 32. HTML5 Likes Machine Readability Too Microdata
  • 33. Microdata COnTAcT Info Before <dl>    <dt><a href="http://ablognotlimited.com">Emily Lewis</a></dt>    <dd>Web Designer</dd>    <dd>Albuquerque, <abbr title="New Mexico" class="region">NM</abbr>87106</dd> </dl>
  • 34. Microdata COnTAcT Info After <dl itemscope itemtype="http://data-vocabulary.org/ Person">    <dt itemprop="name"><a href="http:// ablognotlimited.com" itemprop="url">Emily Lewis</a></ dt>    <dd itemprop="title">Web Designer</dd>    <dd itemprop="address" itemscope itemtype="http:// data-vocabulary.org/Address"><span itemprop="locality">Albuquerque</span>, <abbr title="New Mexico" itemprop="region">NM</abbr> <span itemprop="postal-code">87106</span></dd> </dl>
  • 35. Microdata TO use or NoTt • Yes, I’m biased • Not as many parsers available • It is a bit more complex than microformats • You don’t have to choose
  • 36. Two Stones, One Bird <dl class="vcard" itemscope itemtype="http://data- vocabulary.org/Person">    <dt class="fn" itemprop="name"><a href="http:// ablognotlimited.com" itemprop="url">Emily Lewis</a></ dt>    <dd class="title" itemprop="title">Web Designer</ dd>    <dd class="adr" itemprop="address" itemscope itemtype="http://data-vocabulary.org/Address"><span class="locality" itemprop="locality">Albuquerque</ span>, <abbr title="New Mexico" class="region" itemprop="region">NM</abbr> <span class="postal-code" itemprop="postal-code">87106</span></dd> </dl>
  • 38. ARIA Is • Set of guidelines from WAI for accessible, rich internet applications • Includes Document Landmark Roles to indicate document structure and aid navigation
  • 39. Landmark Roles • role="banner" • role="navigation" not needed on <nav> • role="main" • role="search" • role="article" • role="complementary" not needed on <aside> • role="contentinfo" not needed on <footer>
  • 40. Adding Roles XHTML <div id="header" role="banner">    <h1><a href="/">The Law Office of Jimbob Smith</a></h1>     <a href="/"><img src="logo.png" alt="Jimbob Legal"/></a> </div> <ul role="navigation"> <li><a href="/News/">News</a></li> <li><a href="/Services/">Services</a></li> <li><a href="/Resources/">Resources</a></li> <li><a href="/About/">About</a></li> </ul>
  • 41. Adding Roles HTML5 <header role="banner"> <a href="/"> <h1>The Law Office of Jimbob Smith</h1> <img src="logo.png" alt="Jimbob Legal" /> </a> </header> <nav> <ul> <li><a href="/News/">News</a></li> <li><a href="/Services/">Services</a></li> <li><a href="/Resources/">Resources</a></li> <li><a href="/About/">About</a></li> </ul> </nav>
  • 42. Going to eleven • Use what works for you, your projects and your clients (not “all or nothing”) • Experiment, test and decide for yourself • Stay up-to-date on changes
  • 43. Resources and self pimpage • Meaningful Markup: POSH and Beyond • The Beauty of Semantic Markup series • Getting Semantic With Microformats series • Web Accessibility & WAI-ARIA Primer • Microformats, HTML5 and Microdata • Using HTML5’s Semantic Tags Today
  • 45. Thanks! P.S. I’d love your feedback! http://speakerrate.com/talks/5471-take-your-markup-to-eleven