SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Andere mochten auch

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
 

Andere mochten auch (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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 

Kürzlich hochgeladen (20)

Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 

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