SlideShare a Scribd company logo
1 of 19
Download to read offline
HTML 101


                       8
                     It’s not rocket scie
                                         nce.
  A very basic intro to
understanding HTML code
Understanding HTML
      Simplified. There’s way more to HTML than this.




• Heading
 • Title
• Body
 • [Structured] Content
Step by Step
                  Let’s see how to code the following example in 8 steps.




               HTML can be easy!
        This is what content looks like in HTML
        (when you are viewing it in a browser).

                                  So Eric says...
 8




border not included
Step by Step: 1

                {        HTML can be easy! This is what content looks like in HTML (when
                         you are viewing it in a browser). So Eric says...
8




HTML code
       browser preview
         8




                {        HTML can be easy! This is what content looks like in HTML (when
                         you are viewing it in a browser). So Eric says...
Step by Step: 2
                           n’...
           any tag you ‘ope             ...must be ‘close
                                                         d’




                                               8
{
    8
    <p>HTML can be easy!</p>
    <p> This is what content looks like in HTML (when you are viewing it
    in a browser). </p>
    <p>So Eric says... </p>




                                   we now have par



{
                                                  agraphs
                                   8
    HTML can be easy!

    This is what content looks like in HTML (when you are viewing it in a
    browser).

    So Eric says...
Step by Step: 3

{
    <h1>HTML can be easy!</h1>
    <p> This is what content looks like in HTML (when you are viewing it
    in a browser). </p>
    <p>So Eric says... </p>



                                            larger, bold font




{                                        8
    HTML can be easy!
    This is what content looks like in HTML (when you are viewing it in a
    browser).

    So Eric says...
Step by Step: 4

{
    <h1>HTML can be easy!</h1>
    <p> This is what content looks like in HTML <br />(when you are
    viewing it in a browser). </p>




                                                8
    <p>So Eric says... </p>                                          g’
                                                ag is ‘seglf-fcolosin ages)
                                          this t g> ta s r im
                                       (so are <im




{
    HTML can be easy!                              we have a hard
                                                     within our parliange break


                                                 8
                                                                        raph
    This is what content looks like in HTML
    (when you are viewing it in a browser).

    So Eric says...
Step by Step: 5

{
    <h1>HTML can be easy!</h1>
    <p> This is what content looks like in <strong>HTML</strong> <br />
    <em>(when you are viewing it in a browser)</em>. </p>
    <p>So Eric says... </p>




{
    HTML can be easy!                              bold text




                                                   8
    This is what content looks like in HTML
    (when you are viewing it in a browser).
                                 8   italicized text
    So Eric says...
Step by Step: 6

{
    <h1 align=”center”>HTML can be easy!</h1>
    <p> This is what content looks like in <strong>HTML</strong> <br />
    <em>(when you are viewing it in a browser)</em>. </p>
    <p align=”center”>So Eric says... </p>



                                                   centered text




{                                                   8
      HTML can be easy!
    This is what content looks like in HTML
    (when you are viewing it in a browser).

                 So Eric says...
                              8    centered text
Step by Step: 7

{
    <h1 align=”center”>HTML can be easy!</h1>
    <p> This is what content looks like in <strong>HTML</strong> <br />
    <em>(when you are viewing it in a browser)</em>. </p>
    <p align=”center”><img src=”eric-the-great-01.jpg” alt=”Eric as an
    icon.” width=”125” height=”125” /> So Eric says... </p>




{
       HTML can be easy!
    This is what content looks like in HTML
    (when you are viewing it in a browser).

                  So Eric says...
         8
Image displayed
Step by Step: 8
    <html>
    <head>
       <title>HTML 101: Step-by-Step</title>




{
    </head>
    <body>
       <h1 align=”center”>HTML can be easy!</h1>
       <p> This is what content looks like in <strong>HTML</strong> <br />
       <em>(when you are viewing it in a browser)</em>. </p>
       <p align=”center”><img src=”eric-the-great-01.jpg” alt=”Eric as an icon.”
       width=”125” height=”125” />So Eric says... </p>
    </body>
    </html>                                   8     anything outside t
                                                    is not displayed he <body> tags
                                                                     in the broswer



{
       HTML can be easy!
    This is what content looks like in HTML
    (when you are viewing it in a browser).

                   So Eric says...
Classes & ID’s
    They serve as ways to describe content in our HTML document.

                                              these are HTML
                                                               102 concepts...




                                                       8
•   ID’s are unique

    •   Each element can have only one ID

    •   Each page can have only one element with that ID

•   Classes are not unique

    •   You can use the same class on multiple elements

    •   You can use multiple classes on the same element
Classes & ID’s: Example
    They serve as ways to describe content in our HTML document.



<ul id=”navigation”>
   <li class=”menu item1”><a href=”index.html” title=”Our Homepage” class=”active”>Home</a></li>
   <li class=”menu item2”><a href=”about.html” title=”About the OOC”>About Us</a></li>
   <li class=”menu item3”><a href=”contact.html” title=”Contact our company”>Contact Us</a></li>
</ul>


<ul>
   <li><a href=”index.html”>Home</a></li>
   <li><a href=”about.html”>About Us</a></li>
   <li><a href=”contact.html”>Contact Us</a></li>
</ul>


                  8      both these exam
                         the same visual ples have nearly
                          can do a whole result, but you
   • Home
   • About Us                the ‘starred’loex more with
                                            t
                                              ample...
   • Contact Us
Validating Your Work
                            Double-checking that you’re on the right track.



 •                  World Wide Web Consortium (W3C)
                    http://www.w3.org/

                    Validator Tool: http://validator.w3.org/

                      •   Smashing Magazine
                                                                   8
Awesome Resources




                                                                         good for checkin
                          http://www.smashingmagazine.com/                                g   your work

                      •   Chris Coyier/CSS-Tricks                  8   good for learning more
                          http://css-tricks.com/

                      •   Cheatsheets
                          http://j.mp/8szjMJ

                      •   Eric’s Twitter Favorites
                          http://twitter.com/EricRasch/favorites
Beautiful Code
Thanks, Chris Coyier: http://bit.ly/ciimDi
That’s it?
          Nope. That was just the beginning.

                                         ‘next steps’ and

• CSS
                                            extend basic Hways to




                                       8
                                                          TML


• SEO (Search Engine Optimization)
• Frameworks
• Databases
• Other Languages
Other Languages
These can piggyback on, and bring a lot of power to, HTML.


XML
JavaScript (AJAX, jQuery, MooTools, etc.)
PHP
JSP
.NET (ASP.NET,VB.NET, etc.)
ASP
Tools of the Trade
Dreamweaver
($399 | Mac/PC | http://www.adobe.com/dreamweaver/)


Coda
($99 | Mac | http://www.panic.com/coda/)


Textmate
($56 | Mac with a PC equivalent | http://macromates.com/)


Komodo Edit
(FREE | Mac/PC | http://www.activestate.com/komodo_edit/)

Other ‘Open Source’ Tools (Mac/PC)
Frontpage (PC)
Notepad (PC)
Thank you.
        Feel free to connect with me.
http://ericrasch.com/                         http://med.uth.tmc.edu/comm/

                                    at work   8
                        8 everywhere else

More Related Content

What's hot

HTML CSS Best Practices
HTML CSS Best PracticesHTML CSS Best Practices
HTML CSS Best Practices
hoctudau
 

What's hot (20)

An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScriptAn Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
 
A Primer on HTML 5 - By Nick Armstrong
A Primer on HTML 5 - By Nick ArmstrongA Primer on HTML 5 - By Nick Armstrong
A Primer on HTML 5 - By Nick Armstrong
 
05 RD PoSD Tutorial_xhtml_to_html5_2016
05 RD PoSD Tutorial_xhtml_to_html5_201605 RD PoSD Tutorial_xhtml_to_html5_2016
05 RD PoSD Tutorial_xhtml_to_html5_2016
 
HTML & CSS Workshop Notes
HTML & CSS Workshop NotesHTML & CSS Workshop Notes
HTML & CSS Workshop Notes
 
Css, xhtml, javascript
Css, xhtml, javascriptCss, xhtml, javascript
Css, xhtml, javascript
 
How the Web Works Using HTML
How the Web Works Using HTMLHow the Web Works Using HTML
How the Web Works Using HTML
 
HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2
 
HTML5 CSS3 Basics
HTML5 CSS3 Basics HTML5 CSS3 Basics
HTML5 CSS3 Basics
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
HTML CSS Best Practices
HTML CSS Best PracticesHTML CSS Best Practices
HTML CSS Best Practices
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
 
GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1
 
How to Make HTML and CSS Files
How to Make HTML and CSS FilesHow to Make HTML and CSS Files
How to Make HTML and CSS Files
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
 
Introduction to WEB HTML, CSS
Introduction to WEB HTML, CSSIntroduction to WEB HTML, CSS
Introduction to WEB HTML, CSS
 
HTML & XHTML Basics
HTML & XHTML BasicsHTML & XHTML Basics
HTML & XHTML Basics
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
Chapter14
Chapter14Chapter14
Chapter14
 
HTML 5 Step By Step - Ebook
HTML 5 Step By Step - EbookHTML 5 Step By Step - Ebook
HTML 5 Step By Step - Ebook
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
 

Similar to HTML 101

web development.pdf
web development.pdfweb development.pdf
web development.pdf
BagHarki
 
Sitepoint.com a basic-html5_template
Sitepoint.com a basic-html5_templateSitepoint.com a basic-html5_template
Sitepoint.com a basic-html5_template
Daniel Downs
 

Similar to HTML 101 (20)

Let me design
Let me designLet me design
Let me design
 
Html (hypertext markup language)
Html (hypertext markup language)Html (hypertext markup language)
Html (hypertext markup language)
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
HTML course.ppt
HTML course.pptHTML course.ppt
HTML course.ppt
 
Using HTML5 sensibly
Using HTML5 sensiblyUsing HTML5 sensibly
Using HTML5 sensibly
 
Sitepoint.com a basic-html5_template
Sitepoint.com a basic-html5_templateSitepoint.com a basic-html5_template
Sitepoint.com a basic-html5_template
 
Web development basics
Web development basicsWeb development basics
Web development basics
 
Lecture 4 - Adding XTHML for the Web
Lecture  4 - Adding XTHML for the WebLecture  4 - Adding XTHML for the Web
Lecture 4 - Adding XTHML for the Web
 
Htmlcss1
Htmlcss1Htmlcss1
Htmlcss1
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5
 
Light introduction to HTML
Light introduction to HTMLLight introduction to HTML
Light introduction to HTML
 
html
htmlhtml
html
 
Html Tutorial
Html Tutorial Html Tutorial
Html Tutorial
 
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdf
 
HTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTMLHTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTML
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
Grade 7_HTML.pptx
Grade 7_HTML.pptxGrade 7_HTML.pptx
Grade 7_HTML.pptx
 
Importance of HTML
Importance of HTMLImportance of HTML
Importance of HTML
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

HTML 101

  • 1. HTML 101 8 It’s not rocket scie nce. A very basic intro to understanding HTML code
  • 2. Understanding HTML Simplified. There’s way more to HTML than this. • Heading • Title • Body • [Structured] Content
  • 3. Step by Step Let’s see how to code the following example in 8 steps. HTML can be easy! This is what content looks like in HTML (when you are viewing it in a browser). So Eric says... 8 border not included
  • 4. Step by Step: 1 { HTML can be easy! This is what content looks like in HTML (when you are viewing it in a browser). So Eric says... 8 HTML code browser preview 8 { HTML can be easy! This is what content looks like in HTML (when you are viewing it in a browser). So Eric says...
  • 5. Step by Step: 2 n’... any tag you ‘ope ...must be ‘close d’ 8 { 8 <p>HTML can be easy!</p> <p> This is what content looks like in HTML (when you are viewing it in a browser). </p> <p>So Eric says... </p> we now have par { agraphs 8 HTML can be easy! This is what content looks like in HTML (when you are viewing it in a browser). So Eric says...
  • 6. Step by Step: 3 { <h1>HTML can be easy!</h1> <p> This is what content looks like in HTML (when you are viewing it in a browser). </p> <p>So Eric says... </p> larger, bold font { 8 HTML can be easy! This is what content looks like in HTML (when you are viewing it in a browser). So Eric says...
  • 7. Step by Step: 4 { <h1>HTML can be easy!</h1> <p> This is what content looks like in HTML <br />(when you are viewing it in a browser). </p> 8 <p>So Eric says... </p> g’ ag is ‘seglf-fcolosin ages) this t g> ta s r im (so are <im { HTML can be easy! we have a hard within our parliange break 8 raph This is what content looks like in HTML (when you are viewing it in a browser). So Eric says...
  • 8. Step by Step: 5 { <h1>HTML can be easy!</h1> <p> This is what content looks like in <strong>HTML</strong> <br /> <em>(when you are viewing it in a browser)</em>. </p> <p>So Eric says... </p> { HTML can be easy! bold text 8 This is what content looks like in HTML (when you are viewing it in a browser). 8 italicized text So Eric says...
  • 9. Step by Step: 6 { <h1 align=”center”>HTML can be easy!</h1> <p> This is what content looks like in <strong>HTML</strong> <br /> <em>(when you are viewing it in a browser)</em>. </p> <p align=”center”>So Eric says... </p> centered text { 8 HTML can be easy! This is what content looks like in HTML (when you are viewing it in a browser). So Eric says... 8 centered text
  • 10. Step by Step: 7 { <h1 align=”center”>HTML can be easy!</h1> <p> This is what content looks like in <strong>HTML</strong> <br /> <em>(when you are viewing it in a browser)</em>. </p> <p align=”center”><img src=”eric-the-great-01.jpg” alt=”Eric as an icon.” width=”125” height=”125” /> So Eric says... </p> { HTML can be easy! This is what content looks like in HTML (when you are viewing it in a browser). So Eric says... 8 Image displayed
  • 11. Step by Step: 8 <html> <head> <title>HTML 101: Step-by-Step</title> { </head> <body> <h1 align=”center”>HTML can be easy!</h1> <p> This is what content looks like in <strong>HTML</strong> <br /> <em>(when you are viewing it in a browser)</em>. </p> <p align=”center”><img src=”eric-the-great-01.jpg” alt=”Eric as an icon.” width=”125” height=”125” />So Eric says... </p> </body> </html> 8 anything outside t is not displayed he <body> tags in the broswer { HTML can be easy! This is what content looks like in HTML (when you are viewing it in a browser). So Eric says...
  • 12. Classes & ID’s They serve as ways to describe content in our HTML document. these are HTML 102 concepts... 8 • ID’s are unique • Each element can have only one ID • Each page can have only one element with that ID • Classes are not unique • You can use the same class on multiple elements • You can use multiple classes on the same element
  • 13. Classes & ID’s: Example They serve as ways to describe content in our HTML document. <ul id=”navigation”> <li class=”menu item1”><a href=”index.html” title=”Our Homepage” class=”active”>Home</a></li> <li class=”menu item2”><a href=”about.html” title=”About the OOC”>About Us</a></li> <li class=”menu item3”><a href=”contact.html” title=”Contact our company”>Contact Us</a></li> </ul> <ul> <li><a href=”index.html”>Home</a></li> <li><a href=”about.html”>About Us</a></li> <li><a href=”contact.html”>Contact Us</a></li> </ul> 8 both these exam the same visual ples have nearly can do a whole result, but you • Home • About Us the ‘starred’loex more with t ample... • Contact Us
  • 14. Validating Your Work Double-checking that you’re on the right track. • World Wide Web Consortium (W3C) http://www.w3.org/ Validator Tool: http://validator.w3.org/ • Smashing Magazine 8 Awesome Resources good for checkin http://www.smashingmagazine.com/ g your work • Chris Coyier/CSS-Tricks 8 good for learning more http://css-tricks.com/ • Cheatsheets http://j.mp/8szjMJ • Eric’s Twitter Favorites http://twitter.com/EricRasch/favorites
  • 15. Beautiful Code Thanks, Chris Coyier: http://bit.ly/ciimDi
  • 16. That’s it? Nope. That was just the beginning. ‘next steps’ and • CSS extend basic Hways to 8 TML • SEO (Search Engine Optimization) • Frameworks • Databases • Other Languages
  • 17. Other Languages These can piggyback on, and bring a lot of power to, HTML. XML JavaScript (AJAX, jQuery, MooTools, etc.) PHP JSP .NET (ASP.NET,VB.NET, etc.) ASP
  • 18. Tools of the Trade Dreamweaver ($399 | Mac/PC | http://www.adobe.com/dreamweaver/) Coda ($99 | Mac | http://www.panic.com/coda/) Textmate ($56 | Mac with a PC equivalent | http://macromates.com/) Komodo Edit (FREE | Mac/PC | http://www.activestate.com/komodo_edit/) Other ‘Open Source’ Tools (Mac/PC) Frontpage (PC) Notepad (PC)
  • 19. Thank you. Feel free to connect with me. http://ericrasch.com/ http://med.uth.tmc.edu/comm/ at work 8 8 everywhere else