SlideShare uma empresa Scribd logo
1 de 26
Baixar para ler offline
HTML5
                             Getting started from Scratch




Monday, September 27, 2010
What is HTML?

                   • Easy to learn
                   • Requires no special hardware
                   • <p>Uses <em>tags</em> to tell the
                             browser how to display text and other
                             content</p>



Monday, September 27, 2010
What is HTML5?
                   • The latest version of HTML
                   • The latest version of CSS
                   • Native video, audio, form validation,
                             caching, geolocation,
                   • Allows you to build applications as well as
                             pages


Monday, September 27, 2010
This is HTML
       <h1 id="firstHeading" class="firstHeading">The Wizard of Oz (1939
       film)</h1>

       <!-- bodyContent -->
       ! <div id="bodyContent">
       ! <!-- tagline -->
       ! <div id="siteSub">From Wikipedia, the free encyclopedia</div>
       ! <!-- /tagline -->

       <p>Twelve-year-old orphan Dorothy Gale (<a href="/wiki/Judy_Garland"
       title="Judy Garland">Judy Garland</a>) lives in rural Kansas with her
       Aunt Em (<a href="/wiki/Clara_Blandick" title="Clara Blandick">Clara
       Blandick</a>), Uncle Henry (<a href="/wiki/Charles_Grapewin"
       title="Charles Grapewin">Charles Grapewin</a>), and three farm hands,
       Hickory (<a href="/wiki/Jack_Haley" title="Jack Haley">Jack Haley</
       a>), Hunk (<a href="/wiki/Ray_Bolger" title="Ray Bolger">Ray Bolger</
       a>), and Zeke (<a href="/wiki/Bert_Lahr" title="Bert Lahr">Bert Lahr</
       a>). </p>



Monday, September 27, 2010
This is HTML5
       <article>
       ! <header>
            <h1><a href="http://www.amazon.com/">The Wizard of Oz</a></h1>
          </header>
       ! <figure>
             <a href="http://www.amazon.com/"><img src="http://ecx.images-
       amazon.com/wiz.jpg" alt="The Wizard of Oz"></a>
          </figure>
       ! ! <details open="">
       ! ! <ul>
       ! ! <li><summary>When it was released during Hollywood's golden year of
       1939,The Wizard of Oz didn't start out as the perennial classic it has since
       become. The film did respectable business, but it wasn't until its debut on
       television that this family favorite saw its popularity soar. And while Oz's
       TV b…</summary></li>
       ! ! <li class="actors"><strong>Actors</strong>: Judy Garland, Frank
       Morgan, Ray Bolger, Bert Lahr, Jack Haley</li>    <li><strong>$19.96</
       strong> DVD Metro-Goldwyn-Mayer (MGM)</li>
          </ul>
       ! </details>
       </article>




Monday, September 27, 2010
This is CSS2




Monday, September 27, 2010
This is CSS3




Monday, September 27, 2010
Let’s get down to the
                              basics


Monday, September 27, 2010
Structure
                   • Give your content structure
                   • Choose the most semantic container
                   • Do you use a tupperware bowl to serve
                             gravy?
                   • Tags: figure, p, li, blockquote, cite, video,
                             article, footer, navigation, header, section



Monday, September 27, 2010
The holy trinity
                             HTML + CSS + JS

                   • HTML - content, structure
                   • CSS - design, feedback
                   • JS - interaction, movement, data transfer


Monday, September 27, 2010
The new studs
                   • Canvas - animation, charts, transformations
                   • SVG - like canvas but more data oriented
                   • Video, Audio - no plugins needed
                   • Geo-Location - where are you sitting?
                   • Web Workers, Web Sockets - data
                             manipulation


Monday, September 27, 2010
Before we code
             • relative url:
                    <a href=”next.html”>next</a>
             • absolute url:
                    <a href=”http://doglr.com>doglr</a>
             • meta tags: invisible information about the page for
                    search engines and the browser
             • tag: <p>, <li>, <footer>
             • attribute: class=”mod”, id=”main”, src=”...”
Monday, September 27, 2010
Before we code
                   • Accessibility: everyone can use your page
                   • S.E.O.: snake oil salesmen. Good content,
                             good markup, inbound links
                   • Validation: make sure your code is correct.
                             Valid code is much easier to style and
                             debug.
                   • foo, bar, baz: standard geek placeholders
Monday, September 27, 2010
HTML5 Tags
                                   Containers
               <header>, <footer>,<section>, <article>, <div>, <span>




Monday, September 27, 2010
<header> & <footer>
                   •         <header> usually             •   <footer> usually
                             contains the top                 contains the copyright,
                             navigation, branding, icon       secondary navigation,
                                                              contact information, and
                   •         <header> can also be             other details
                             used within individual
                             sections of a page




Monday, September 27, 2010
<section> & <article>
                   •         <section> contains         •   <article> is a self-
                             content that is related.       contained chunk of
                                                            information
                   •         <section> can be nested
                                                        •   an <article> could be
                   •         <section> may be the           grabbed and placed in
                                                            another page without
                             main section of a page
                             and the sub modules            losing context.

                                                        •   <article> use: blog post,
                                                            product detail, tweet




Monday, September 27, 2010
<div> & <span>
                   •         <div> is a container with   •   <span> is a container
                             no semantic value.              with no semantic
                                                             value
                   •         <div> can be nested
                                                         •   <span> is inline, it can
                   •         <div> can contain just          only contain text and
                             about anything                  other inline content

                   •         <div> is old HTML, use      •   use <span> when you
                             <section> or <article>          target text and don’t
                             where appropriate               want to add structure




Monday, September 27, 2010
HTML5 Tags
                                     Lists
                               <ul>, <ol>, <dl>




Monday, September 27, 2010
<ul> & <ol>
                   •         <ul> is the most           •   <ol> is an ordered list.
                             common
                                                        •   They are used for
                   •         unordered list, no             instructions, outlines,
                             hierarchy                      steps...

                   •         the bullets can be         •   the bullets can be
                             changed or removed.            numbers, letters, roman
                             The list can be vertical       numerals, or removed.
                             on horizontal
                                                        •   <ol><li>foo</li><ol>
                   •         <ul><li>foo</li><ul>



Monday, September 27, 2010
<dl>
           • <dl> is a definition list
           • contains terms and definitions
           • HTML5 allows more flexibility, ignore the old
                  HTML dl haters :-)
           • great for glossaries, product specifications,
                  personal information
           • <dl><dt>term</dt></dd>definition</dd></dl>
           • I loves my <dl>. I abuse my <dl>.
Monday, September 27, 2010
HTML5 Tags
                                       Common stuff
                             <p>, <a>, <strong>, <b>,<em>,<i>




Monday, September 27, 2010
<p>
                   • This is one of the most common tags.
                   • <p>This is a paragraph</p>
                   • You cannot nest <p> tags
                   • A <p> can go inside a list item, but don’t
                             put a list inside a <p>
                   • You can place an image inside a <p>
Monday, September 27, 2010
<a>
                   • The <a> generates a link
                   • While the <a> is normally inline, HTML5
                             allows us to wrap multiple elements in a
                             single link. <a href=”/”><dl><dt>Mac
                             Lipstick</dt><dd>Sassy Pink</dd><dd>
                             $5.00</dd></dl></a>
                   • Attributes: href, title, hreflang
                   • Avoid these attributes: target, name

Monday, September 27, 2010
<strong> & <b>
                   •         <strong> is semantic        •   <b> is simply
                                                             presentational
                   •         <strong> is for bolding
                                                         •   <b> tells us to bold
                   •         <strong> tells the              something, but the text
                                                             has no importance at all.
                             browser that this text is
                             more important.
                                                         •   Avoid <b>. Use CSS to
                   •         Search engines like             make something bold.
                                                             Use <strong> to add
                             <strong> text
                                                             strength.
                   •         Think of it as ALLCAPS


Monday, September 27, 2010
<em> & <i>
                   •         <em> adds emphasis            •   <i> is purely
                                                               presentational
                   •         It normally italicizes text
                                                           •   It normally italicizes text
                   •         It’s similar to <strong>
                             but not as powerful           •   It adds no semantic
                                                               value to the text
                   •         Think of a voice
                             changing but not getting      •   Use <em> instead
                             louder.




Monday, September 27, 2010
Homework
        • Use the sample files to begin writing pages.You can
               only learn HTML by practicing
        • Watch Douglas Crockford discuss coding history
               (episode 1).
        • Download and install Firefox, Safari, and Chrome
               (Google). Install the web developer toolbar and
               firebug for Firefox.
        • Dive into HTML5 (use Safari or Chrome) http://
               diveintohtml5.org/
Monday, September 27, 2010

Mais conteúdo relacionado

Semelhante a HTML5 - getting started

Html5 coredevsummit
Html5 coredevsummitHtml5 coredevsummit
Html5 coredevsummitJen Simmons
 
HTML5, just another presentation :)
HTML5, just another presentation :)HTML5, just another presentation :)
HTML5, just another presentation :)François Massart
 
Dr. Strangelove: or How I learned to love HTML, CSS, and Javascript
Dr. Strangelove: or How I learned to love HTML, CSS, and JavascriptDr. Strangelove: or How I learned to love HTML, CSS, and Javascript
Dr. Strangelove: or How I learned to love HTML, CSS, and JavascriptRobotDeathSquad
 
Trendsetting: Web Design and Beyond
Trendsetting: Web Design and BeyondTrendsetting: Web Design and Beyond
Trendsetting: Web Design and BeyondAndy Stratton
 
2022 HTML5: The future is now
2022 HTML5: The future is now2022 HTML5: The future is now
2022 HTML5: The future is nowGonzalo Cordero
 
HTML5 for ASP.NET Developers
HTML5 for ASP.NET DevelopersHTML5 for ASP.NET Developers
HTML5 for ASP.NET DevelopersJustin Lee
 
[Access U 2010] HTML5 & Accessibility
[Access U 2010] HTML5 & Accessibility[Access U 2010] HTML5 & Accessibility
[Access U 2010] HTML5 & AccessibilityChristopher Schmitt
 
Web components, so close!
Web components, so close!Web components, so close!
Web components, so close!Aleks Zinevych
 
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)Christopher Schmitt
 
How browser engines work?
How browser engines work?How browser engines work?
How browser engines work?haricot
 
Be nice to your designers
Be nice to your designersBe nice to your designers
Be nice to your designersPai-Cheng Tao
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflowPeter Kaizer
 
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet![edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!Christopher Schmitt
 
Mansoura University CSED & Nozom web development sprint
Mansoura University CSED & Nozom web development sprintMansoura University CSED & Nozom web development sprint
Mansoura University CSED & Nozom web development sprintAl Sayed Gamal
 
Darwin web standards
Darwin web standardsDarwin web standards
Darwin web standardsJustin Avery
 
MDN Development & Web Documentation
MDN Development & Web DocumentationMDN Development & Web Documentation
MDN Development & Web DocumentationJay Patel
 

Semelhante a HTML5 - getting started (20)

Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3
 
Html5 coredevsummit
Html5 coredevsummitHtml5 coredevsummit
Html5 coredevsummit
 
Html5 public
Html5 publicHtml5 public
Html5 public
 
HTML5, just another presentation :)
HTML5, just another presentation :)HTML5, just another presentation :)
HTML5, just another presentation :)
 
OOCSS
OOCSSOOCSS
OOCSS
 
Dr. Strangelove: or How I learned to love HTML, CSS, and Javascript
Dr. Strangelove: or How I learned to love HTML, CSS, and JavascriptDr. Strangelove: or How I learned to love HTML, CSS, and Javascript
Dr. Strangelove: or How I learned to love HTML, CSS, and Javascript
 
Trendsetting: Web Design and Beyond
Trendsetting: Web Design and BeyondTrendsetting: Web Design and Beyond
Trendsetting: Web Design and Beyond
 
2022 HTML5: The future is now
2022 HTML5: The future is now2022 HTML5: The future is now
2022 HTML5: The future is now
 
HTML5 for ASP.NET Developers
HTML5 for ASP.NET DevelopersHTML5 for ASP.NET Developers
HTML5 for ASP.NET Developers
 
[Access U 2010] HTML5 & Accessibility
[Access U 2010] HTML5 & Accessibility[Access U 2010] HTML5 & Accessibility
[Access U 2010] HTML5 & Accessibility
 
Web components, so close!
Web components, so close!Web components, so close!
Web components, so close!
 
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
 
How browser engines work?
How browser engines work?How browser engines work?
How browser engines work?
 
Be nice to your designers
Be nice to your designersBe nice to your designers
Be nice to your designers
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
 
On Web Browsers
On Web BrowsersOn Web Browsers
On Web Browsers
 
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet![edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
 
Mansoura University CSED & Nozom web development sprint
Mansoura University CSED & Nozom web development sprintMansoura University CSED & Nozom web development sprint
Mansoura University CSED & Nozom web development sprint
 
Darwin web standards
Darwin web standardsDarwin web standards
Darwin web standards
 
MDN Development & Web Documentation
MDN Development & Web DocumentationMDN Development & Web Documentation
MDN Development & Web Documentation
 

Mais de Ted Drake

Introduce Trauma-Informed Design to Your Organization - CSUN ATC 2024
Introduce Trauma-Informed Design to Your Organization - CSUN ATC 2024Introduce Trauma-Informed Design to Your Organization - CSUN ATC 2024
Introduce Trauma-Informed Design to Your Organization - CSUN ATC 2024Ted Drake
 
Transforming Accessibility one lunch at a tiime - CSUN 2023
Transforming Accessibility one lunch at a tiime - CSUN 2023Transforming Accessibility one lunch at a tiime - CSUN 2023
Transforming Accessibility one lunch at a tiime - CSUN 2023Ted Drake
 
Inclusive Design for cognitive disabilities, neurodiversity, and chronic illness
Inclusive Design for cognitive disabilities, neurodiversity, and chronic illnessInclusive Design for cognitive disabilities, neurodiversity, and chronic illness
Inclusive Design for cognitive disabilities, neurodiversity, and chronic illnessTed Drake
 
Inclusive design for Long Covid
 Inclusive design for Long Covid  Inclusive design for Long Covid
Inclusive design for Long Covid Ted Drake
 
Covid 19, brain fog, and inclusive design
Covid 19, brain fog, and inclusive designCovid 19, brain fog, and inclusive design
Covid 19, brain fog, and inclusive designTed Drake
 
Customer obsession and accessibility
Customer obsession and accessibilityCustomer obsession and accessibility
Customer obsession and accessibilityTed Drake
 
The Saga of Accessible Colors
The Saga of Accessible ColorsThe Saga of Accessible Colors
The Saga of Accessible ColorsTed Drake
 
Artificial Intelligence and Accessibility - GAAD 2020 - Hello A11y
Artificial Intelligence and Accessibility - GAAD 2020 - Hello A11yArtificial Intelligence and Accessibility - GAAD 2020 - Hello A11y
Artificial Intelligence and Accessibility - GAAD 2020 - Hello A11yTed Drake
 
Expand your outreach with an accessibility champions program
Expand your outreach with an accessibility champions program Expand your outreach with an accessibility champions program
Expand your outreach with an accessibility champions program Ted Drake
 
Intuit's Accessibility Champion Program - Coaching and Celebrating
Intuit's Accessibility Champion Program - Coaching and Celebrating Intuit's Accessibility Champion Program - Coaching and Celebrating
Intuit's Accessibility Champion Program - Coaching and Celebrating Ted Drake
 
Accessibility First Innovation
Accessibility First InnovationAccessibility First Innovation
Accessibility First InnovationTed Drake
 
Inclusive customer interviews make it your friday task
Inclusive customer interviews  make it your friday taskInclusive customer interviews  make it your friday task
Inclusive customer interviews make it your friday taskTed Drake
 
Coaching and Celebrating Accessibility Champions
Coaching and Celebrating Accessibility ChampionsCoaching and Celebrating Accessibility Champions
Coaching and Celebrating Accessibility ChampionsTed Drake
 
Accessibility statements and resource publishing best practices csun 2019
Accessibility statements and resource publishing best practices   csun 2019Accessibility statements and resource publishing best practices   csun 2019
Accessibility statements and resource publishing best practices csun 2019Ted Drake
 
Raising Accessibility Awareness at Intuit
Raising Accessibility Awareness at IntuitRaising Accessibility Awareness at Intuit
Raising Accessibility Awareness at IntuitTed Drake
 
Trickle Down Accessibility
Trickle Down AccessibilityTrickle Down Accessibility
Trickle Down AccessibilityTed Drake
 
Trickle-Down Accessibility - CSUN 2018
Trickle-Down Accessibility - CSUN 2018Trickle-Down Accessibility - CSUN 2018
Trickle-Down Accessibility - CSUN 2018Ted Drake
 
Accessibility metrics Accessibility Data Metrics and Reporting – Industry Bes...
Accessibility metrics Accessibility Data Metrics and Reporting – Industry Bes...Accessibility metrics Accessibility Data Metrics and Reporting – Industry Bes...
Accessibility metrics Accessibility Data Metrics and Reporting – Industry Bes...Ted Drake
 
Mystery Meat 2.0 – Making hidden mobile interactions accessible
Mystery Meat 2.0 – Making hidden mobile interactions accessibleMystery Meat 2.0 – Making hidden mobile interactions accessible
Mystery Meat 2.0 – Making hidden mobile interactions accessibleTed Drake
 
React Native Accessibility - San Diego React and React Native Meetup
React Native Accessibility - San Diego React and React Native MeetupReact Native Accessibility - San Diego React and React Native Meetup
React Native Accessibility - San Diego React and React Native MeetupTed Drake
 

Mais de Ted Drake (20)

Introduce Trauma-Informed Design to Your Organization - CSUN ATC 2024
Introduce Trauma-Informed Design to Your Organization - CSUN ATC 2024Introduce Trauma-Informed Design to Your Organization - CSUN ATC 2024
Introduce Trauma-Informed Design to Your Organization - CSUN ATC 2024
 
Transforming Accessibility one lunch at a tiime - CSUN 2023
Transforming Accessibility one lunch at a tiime - CSUN 2023Transforming Accessibility one lunch at a tiime - CSUN 2023
Transforming Accessibility one lunch at a tiime - CSUN 2023
 
Inclusive Design for cognitive disabilities, neurodiversity, and chronic illness
Inclusive Design for cognitive disabilities, neurodiversity, and chronic illnessInclusive Design for cognitive disabilities, neurodiversity, and chronic illness
Inclusive Design for cognitive disabilities, neurodiversity, and chronic illness
 
Inclusive design for Long Covid
 Inclusive design for Long Covid  Inclusive design for Long Covid
Inclusive design for Long Covid
 
Covid 19, brain fog, and inclusive design
Covid 19, brain fog, and inclusive designCovid 19, brain fog, and inclusive design
Covid 19, brain fog, and inclusive design
 
Customer obsession and accessibility
Customer obsession and accessibilityCustomer obsession and accessibility
Customer obsession and accessibility
 
The Saga of Accessible Colors
The Saga of Accessible ColorsThe Saga of Accessible Colors
The Saga of Accessible Colors
 
Artificial Intelligence and Accessibility - GAAD 2020 - Hello A11y
Artificial Intelligence and Accessibility - GAAD 2020 - Hello A11yArtificial Intelligence and Accessibility - GAAD 2020 - Hello A11y
Artificial Intelligence and Accessibility - GAAD 2020 - Hello A11y
 
Expand your outreach with an accessibility champions program
Expand your outreach with an accessibility champions program Expand your outreach with an accessibility champions program
Expand your outreach with an accessibility champions program
 
Intuit's Accessibility Champion Program - Coaching and Celebrating
Intuit's Accessibility Champion Program - Coaching and Celebrating Intuit's Accessibility Champion Program - Coaching and Celebrating
Intuit's Accessibility Champion Program - Coaching and Celebrating
 
Accessibility First Innovation
Accessibility First InnovationAccessibility First Innovation
Accessibility First Innovation
 
Inclusive customer interviews make it your friday task
Inclusive customer interviews  make it your friday taskInclusive customer interviews  make it your friday task
Inclusive customer interviews make it your friday task
 
Coaching and Celebrating Accessibility Champions
Coaching and Celebrating Accessibility ChampionsCoaching and Celebrating Accessibility Champions
Coaching and Celebrating Accessibility Champions
 
Accessibility statements and resource publishing best practices csun 2019
Accessibility statements and resource publishing best practices   csun 2019Accessibility statements and resource publishing best practices   csun 2019
Accessibility statements and resource publishing best practices csun 2019
 
Raising Accessibility Awareness at Intuit
Raising Accessibility Awareness at IntuitRaising Accessibility Awareness at Intuit
Raising Accessibility Awareness at Intuit
 
Trickle Down Accessibility
Trickle Down AccessibilityTrickle Down Accessibility
Trickle Down Accessibility
 
Trickle-Down Accessibility - CSUN 2018
Trickle-Down Accessibility - CSUN 2018Trickle-Down Accessibility - CSUN 2018
Trickle-Down Accessibility - CSUN 2018
 
Accessibility metrics Accessibility Data Metrics and Reporting – Industry Bes...
Accessibility metrics Accessibility Data Metrics and Reporting – Industry Bes...Accessibility metrics Accessibility Data Metrics and Reporting – Industry Bes...
Accessibility metrics Accessibility Data Metrics and Reporting – Industry Bes...
 
Mystery Meat 2.0 – Making hidden mobile interactions accessible
Mystery Meat 2.0 – Making hidden mobile interactions accessibleMystery Meat 2.0 – Making hidden mobile interactions accessible
Mystery Meat 2.0 – Making hidden mobile interactions accessible
 
React Native Accessibility - San Diego React and React Native Meetup
React Native Accessibility - San Diego React and React Native MeetupReact Native Accessibility - San Diego React and React Native Meetup
React Native Accessibility - San Diego React and React Native Meetup
 

Último

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 

Último (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 

HTML5 - getting started

  • 1. HTML5 Getting started from Scratch Monday, September 27, 2010
  • 2. What is HTML? • Easy to learn • Requires no special hardware • <p>Uses <em>tags</em> to tell the browser how to display text and other content</p> Monday, September 27, 2010
  • 3. What is HTML5? • The latest version of HTML • The latest version of CSS • Native video, audio, form validation, caching, geolocation, • Allows you to build applications as well as pages Monday, September 27, 2010
  • 4. This is HTML <h1 id="firstHeading" class="firstHeading">The Wizard of Oz (1939 film)</h1> <!-- bodyContent --> ! <div id="bodyContent"> ! <!-- tagline --> ! <div id="siteSub">From Wikipedia, the free encyclopedia</div> ! <!-- /tagline --> <p>Twelve-year-old orphan Dorothy Gale (<a href="/wiki/Judy_Garland" title="Judy Garland">Judy Garland</a>) lives in rural Kansas with her Aunt Em (<a href="/wiki/Clara_Blandick" title="Clara Blandick">Clara Blandick</a>), Uncle Henry (<a href="/wiki/Charles_Grapewin" title="Charles Grapewin">Charles Grapewin</a>), and three farm hands, Hickory (<a href="/wiki/Jack_Haley" title="Jack Haley">Jack Haley</ a>), Hunk (<a href="/wiki/Ray_Bolger" title="Ray Bolger">Ray Bolger</ a>), and Zeke (<a href="/wiki/Bert_Lahr" title="Bert Lahr">Bert Lahr</ a>). </p> Monday, September 27, 2010
  • 5. This is HTML5 <article> ! <header> <h1><a href="http://www.amazon.com/">The Wizard of Oz</a></h1> </header> ! <figure> <a href="http://www.amazon.com/"><img src="http://ecx.images- amazon.com/wiz.jpg" alt="The Wizard of Oz"></a> </figure> ! ! <details open=""> ! ! <ul> ! ! <li><summary>When it was released during Hollywood's golden year of 1939,The Wizard of Oz didn't start out as the perennial classic it has since become. The film did respectable business, but it wasn't until its debut on television that this family favorite saw its popularity soar. And while Oz's TV b…</summary></li> ! ! <li class="actors"><strong>Actors</strong>: Judy Garland, Frank Morgan, Ray Bolger, Bert Lahr, Jack Haley</li> <li><strong>$19.96</ strong> DVD Metro-Goldwyn-Mayer (MGM)</li> </ul> ! </details> </article> Monday, September 27, 2010
  • 6. This is CSS2 Monday, September 27, 2010
  • 7. This is CSS3 Monday, September 27, 2010
  • 8. Let’s get down to the basics Monday, September 27, 2010
  • 9. Structure • Give your content structure • Choose the most semantic container • Do you use a tupperware bowl to serve gravy? • Tags: figure, p, li, blockquote, cite, video, article, footer, navigation, header, section Monday, September 27, 2010
  • 10. The holy trinity HTML + CSS + JS • HTML - content, structure • CSS - design, feedback • JS - interaction, movement, data transfer Monday, September 27, 2010
  • 11. The new studs • Canvas - animation, charts, transformations • SVG - like canvas but more data oriented • Video, Audio - no plugins needed • Geo-Location - where are you sitting? • Web Workers, Web Sockets - data manipulation Monday, September 27, 2010
  • 12. Before we code • relative url: <a href=”next.html”>next</a> • absolute url: <a href=”http://doglr.com>doglr</a> • meta tags: invisible information about the page for search engines and the browser • tag: <p>, <li>, <footer> • attribute: class=”mod”, id=”main”, src=”...” Monday, September 27, 2010
  • 13. Before we code • Accessibility: everyone can use your page • S.E.O.: snake oil salesmen. Good content, good markup, inbound links • Validation: make sure your code is correct. Valid code is much easier to style and debug. • foo, bar, baz: standard geek placeholders Monday, September 27, 2010
  • 14. HTML5 Tags Containers <header>, <footer>,<section>, <article>, <div>, <span> Monday, September 27, 2010
  • 15. <header> & <footer> • <header> usually • <footer> usually contains the top contains the copyright, navigation, branding, icon secondary navigation, contact information, and • <header> can also be other details used within individual sections of a page Monday, September 27, 2010
  • 16. <section> & <article> • <section> contains • <article> is a self- content that is related. contained chunk of information • <section> can be nested • an <article> could be • <section> may be the grabbed and placed in another page without main section of a page and the sub modules losing context. • <article> use: blog post, product detail, tweet Monday, September 27, 2010
  • 17. <div> & <span> • <div> is a container with • <span> is a container no semantic value. with no semantic value • <div> can be nested • <span> is inline, it can • <div> can contain just only contain text and about anything other inline content • <div> is old HTML, use • use <span> when you <section> or <article> target text and don’t where appropriate want to add structure Monday, September 27, 2010
  • 18. HTML5 Tags Lists <ul>, <ol>, <dl> Monday, September 27, 2010
  • 19. <ul> & <ol> • <ul> is the most • <ol> is an ordered list. common • They are used for • unordered list, no instructions, outlines, hierarchy steps... • the bullets can be • the bullets can be changed or removed. numbers, letters, roman The list can be vertical numerals, or removed. on horizontal • <ol><li>foo</li><ol> • <ul><li>foo</li><ul> Monday, September 27, 2010
  • 20. <dl> • <dl> is a definition list • contains terms and definitions • HTML5 allows more flexibility, ignore the old HTML dl haters :-) • great for glossaries, product specifications, personal information • <dl><dt>term</dt></dd>definition</dd></dl> • I loves my <dl>. I abuse my <dl>. Monday, September 27, 2010
  • 21. HTML5 Tags Common stuff <p>, <a>, <strong>, <b>,<em>,<i> Monday, September 27, 2010
  • 22. <p> • This is one of the most common tags. • <p>This is a paragraph</p> • You cannot nest <p> tags • A <p> can go inside a list item, but don’t put a list inside a <p> • You can place an image inside a <p> Monday, September 27, 2010
  • 23. <a> • The <a> generates a link • While the <a> is normally inline, HTML5 allows us to wrap multiple elements in a single link. <a href=”/”><dl><dt>Mac Lipstick</dt><dd>Sassy Pink</dd><dd> $5.00</dd></dl></a> • Attributes: href, title, hreflang • Avoid these attributes: target, name Monday, September 27, 2010
  • 24. <strong> & <b> • <strong> is semantic • <b> is simply presentational • <strong> is for bolding • <b> tells us to bold • <strong> tells the something, but the text has no importance at all. browser that this text is more important. • Avoid <b>. Use CSS to • Search engines like make something bold. Use <strong> to add <strong> text strength. • Think of it as ALLCAPS Monday, September 27, 2010
  • 25. <em> & <i> • <em> adds emphasis • <i> is purely presentational • It normally italicizes text • It normally italicizes text • It’s similar to <strong> but not as powerful • It adds no semantic value to the text • Think of a voice changing but not getting • Use <em> instead louder. Monday, September 27, 2010
  • 26. Homework • Use the sample files to begin writing pages.You can only learn HTML by practicing • Watch Douglas Crockford discuss coding history (episode 1). • Download and install Firefox, Safari, and Chrome (Google). Install the web developer toolbar and firebug for Firefox. • Dive into HTML5 (use Safari or Chrome) http:// diveintohtml5.org/ Monday, September 27, 2010