SlideShare una empresa de Scribd logo
1 de 16
HTML for food pizza, please
      XHTML, CSS e técnicas SEO
É quase idêntico ao HTML 4
 A principal diferença é que o XHTML é
  definido como XML
 tags sempre em minúsculas

  Como já fazemos:
  <span></span>, <script></script>

  Mas também com self-closing:
  <br />, <hr />, <meta />, <img />
3 doctypes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
   Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
   transitional.dtd">




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
Boas práticas
•   Manter semântica
•   <span> mania (span class=bold)
•   layout sem <table>, mas tabulares
•   <h1>,<h2>, <ul>...
•   Pra CSS, <link /> na <head>
•   <scripts> no fim, antes do </body>
•   <scripts> em CDNs
•   Poucas tags, menor DOM = SUCCESS
Jogo dos sete erros
<p><strong>Negrito</p></STRONG>
<ul>
 <li>Item
   <ol><li>Sub-item</ol>
</ul>
<strong><em>Alô Informant</em></strong>
  <TABLE width=100></table>
  <div><script></script></div>
<input disabled />
Jogo dos sete erros
<p><strong>Negrito</strong></p>
<ul>
 <li>Item
   <ol><li>Sub-item</li></ol>
</li></ul>
<strong><em>Alô Informant</em></strong>
  <table width="100"></table>
  <div><script></script></div>
<input disabled="disabled" />
CSS
•   Inline e/ou externo?
•   Separar em vários arquivos?
•   Minify (UI Performance, Ant)
•   Tableless ou divless (!)
    <table width="780" border="0" cellspacing="0" cellpadding="0">
     <tr bgcolor="#FF7F00">
      <td rowspan="2" width="138" align="center" valign="middle"><img
    src="http://web.archive.org/web/20011009083132im_/http://www.terra.com.br/capa/logoterra.gif" width="110"
    height="32" border="0" alt="Terra Networks"></td>
      <td width="320" align="RIGHT" valign="MIDDLE">
       <table border="0" cellspacing="0" cellpadding="0">
        <tr><td width="97" height="17" align="RIGHT">
    ...
CSS no id ou na class?
•   Tanto faz
•   E que tal nas tags?
       div.box { float:left; }
    <div class="box">...<div class="box">...
    div.boxes div { float:left; }
    <div>...<div>...<div>...
Boas práticas
•   tag#elementId
•   X.elementClass
•   Simplificação (background, font, border)
•   CSS reset
    html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small,
    strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form,
    label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas,
    details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby,
    section, summary, time, mark, audio, video {
                margin: 0;
                padding: 0;
                border: 0;
                font-size: 100%;
                font: inherit;
                vertical-align: baseline;
    }
    /* HTML5 display-role reset for older browsers */
    article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
                display: block;
    }
    body {
                line-height: 1;
    }
HTML versus CSS
•   <strong> ou font-weight:bold
•   <em> ou font-style:italic
•   ...
CSS 3
•   Graceful degradation

CSS3 Generator:
• Box shadow
• Text shadow
• Border radius...

FontSquirrel:
• Gerador de fontes customizadas
SEO
•   Importância das tags
•   <meta> tags
•   Robots.txt
      User-agent: *
      Allow: /
      Disallow: /admin/
      Sitemap: http://www.informant.com.br/sitemap.xml



•   Webmaster Tools
•   Analytics
Sitemaps
•   Padrão em http://www.sitemaps.org

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <url>
      <loc>http://www.example.com/</loc>
      <lastmod>2005-01-01</lastmod>
      <changefreq>monthly</changefreq>
      <priority>0.8</priority>
   </url>
</urlset>
Estudando a interface
div.header   > div                             ul




                         div.console   div.welcome

                                                       div.getstarted



                                       div.container




             div                                             div
                                            div
                                       div.features




div.footer
                                            ul
Talk is cheap...

Más contenido relacionado

La actualidad más candente

Haml
HamlHaml
Haml
gwmm
 

La actualidad más candente (20)

HTML Frameset & Inline Frame
HTML Frameset & Inline FrameHTML Frameset & Inline Frame
HTML Frameset & Inline Frame
 
Bootstrap Framework
Bootstrap Framework Bootstrap Framework
Bootstrap Framework
 
Html frames
Html framesHtml frames
Html frames
 
Introduction to Twitter Bootstrap 3.0.3
Introduction to Twitter Bootstrap 3.0.3Introduction to Twitter Bootstrap 3.0.3
Introduction to Twitter Bootstrap 3.0.3
 
LESS
LESSLESS
LESS
 
Build tons of multi-device JavaScript applications - Part 1 : Boilerplate, de...
Build tons of multi-device JavaScript applications - Part 1 : Boilerplate, de...Build tons of multi-device JavaScript applications - Part 1 : Boilerplate, de...
Build tons of multi-device JavaScript applications - Part 1 : Boilerplate, de...
 
02html Frames
02html Frames02html Frames
02html Frames
 
Html frames
Html framesHtml frames
Html frames
 
Ddpz2613 topic6 frame
Ddpz2613 topic6 frameDdpz2613 topic6 frame
Ddpz2613 topic6 frame
 
Landing Pages 101
Landing Pages 101Landing Pages 101
Landing Pages 101
 
Html frames
Html framesHtml frames
Html frames
 
Html Frames
Html FramesHtml Frames
Html Frames
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
 
Bootstrap
BootstrapBootstrap
Bootstrap
 
Decoupling Your HTML, CSS & JavaScript
Decoupling Your HTML, CSS & JavaScriptDecoupling Your HTML, CSS & JavaScript
Decoupling Your HTML, CSS & JavaScript
 
Css frameworks
Css frameworksCss frameworks
Css frameworks
 
LESS CSS Pre-processor
LESS CSS Pre-processorLESS CSS Pre-processor
LESS CSS Pre-processor
 
Web Standards and Accessibility
Web Standards and AccessibilityWeb Standards and Accessibility
Web Standards and Accessibility
 
faster frontend development with textmate
faster frontend development with textmatefaster frontend development with textmate
faster frontend development with textmate
 
Haml
HamlHaml
Haml
 

Similar a Html forfood

Front End Good Practices
Front End Good PracticesFront End Good Practices
Front End Good Practices
Hernan Mammana
 
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Deepak Sharma
 

Similar a Html forfood (20)

Ease into HTML5 and CSS3
Ease into HTML5 and CSS3Ease into HTML5 and CSS3
Ease into HTML5 and CSS3
 
Front End Good Practices
Front End Good PracticesFront End Good Practices
Front End Good Practices
 
Introduccion a HTML5
Introduccion a HTML5Introduccion a HTML5
Introduccion a HTML5
 
html5
html5html5
html5
 
Course Tech 2013, Sasha Vodnik, A Crash Course in HTML5
Course Tech 2013, Sasha Vodnik, A Crash Course in HTML5Course Tech 2013, Sasha Vodnik, A Crash Course in HTML5
Course Tech 2013, Sasha Vodnik, A Crash Course in HTML5
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Modern Web Development
Modern Web DevelopmentModern Web Development
Modern Web Development
 
HTML5, just another presentation :)
HTML5, just another presentation :)HTML5, just another presentation :)
HTML5, just another presentation :)
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
Diazo: Bridging Designers and Programmers
Diazo: Bridging Designers and ProgrammersDiazo: Bridging Designers and Programmers
Diazo: Bridging Designers and Programmers
 
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
 
Css best practices style guide and tips
Css best practices style guide and tipsCss best practices style guide and tips
Css best practices style guide and tips
 
Front-End Frameworks: a quick overview
Front-End Frameworks: a quick overviewFront-End Frameworks: a quick overview
Front-End Frameworks: a quick overview
 
Html5 more than just html5 v final
Html5  more than just html5 v finalHtml5  more than just html5 v final
Html5 more than just html5 v final
 
Html&Browser
Html&BrowserHtml&Browser
Html&Browser
 
MTDDC Tokyo 2011
MTDDC Tokyo 2011MTDDC Tokyo 2011
MTDDC Tokyo 2011
 
Super stylesheets download_en
Super stylesheets download_enSuper stylesheets download_en
Super stylesheets download_en
 

Último

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Último (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

Html forfood

  • 1. HTML for food pizza, please XHTML, CSS e técnicas SEO
  • 2. É quase idêntico ao HTML 4  A principal diferença é que o XHTML é definido como XML  tags sempre em minúsculas Como já fazemos: <span></span>, <script></script> Mas também com self-closing: <br />, <hr />, <meta />, <img />
  • 3. 3 doctypes <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
  • 4. Boas práticas • Manter semântica • <span> mania (span class=bold) • layout sem <table>, mas tabulares • <h1>,<h2>, <ul>... • Pra CSS, <link /> na <head> • <scripts> no fim, antes do </body> • <scripts> em CDNs • Poucas tags, menor DOM = SUCCESS
  • 5. Jogo dos sete erros <p><strong>Negrito</p></STRONG> <ul> <li>Item <ol><li>Sub-item</ol> </ul> <strong><em>Alô Informant</em></strong> <TABLE width=100></table> <div><script></script></div> <input disabled />
  • 6. Jogo dos sete erros <p><strong>Negrito</strong></p> <ul> <li>Item <ol><li>Sub-item</li></ol> </li></ul> <strong><em>Alô Informant</em></strong> <table width="100"></table> <div><script></script></div> <input disabled="disabled" />
  • 7. CSS • Inline e/ou externo? • Separar em vários arquivos? • Minify (UI Performance, Ant) • Tableless ou divless (!) <table width="780" border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="#FF7F00"> <td rowspan="2" width="138" align="center" valign="middle"><img src="http://web.archive.org/web/20011009083132im_/http://www.terra.com.br/capa/logoterra.gif" width="110" height="32" border="0" alt="Terra Networks"></td> <td width="320" align="RIGHT" valign="MIDDLE"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="97" height="17" align="RIGHT"> ...
  • 8. CSS no id ou na class? • Tanto faz • E que tal nas tags? div.box { float:left; } <div class="box">...<div class="box">... div.boxes div { float:left; } <div>...<div>...<div>...
  • 9. Boas práticas • tag#elementId • X.elementClass • Simplificação (background, font, border) • CSS reset html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; }
  • 10. HTML versus CSS • <strong> ou font-weight:bold • <em> ou font-style:italic • ...
  • 11. CSS 3 • Graceful degradation CSS3 Generator: • Box shadow • Text shadow • Border radius... FontSquirrel: • Gerador de fontes customizadas
  • 12. SEO • Importância das tags • <meta> tags • Robots.txt User-agent: * Allow: / Disallow: /admin/ Sitemap: http://www.informant.com.br/sitemap.xml • Webmaster Tools • Analytics
  • 13. Sitemaps • Padrão em http://www.sitemaps.org <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://www.example.com/</loc> <lastmod>2005-01-01</lastmod> <changefreq>monthly</changefreq> <priority>0.8</priority> </url> </urlset>
  • 15. div.header > div ul div.console div.welcome div.getstarted div.container div div div div.features div.footer ul