SlideShare a Scribd company logo
HTML
HTML
HTML
Hyper
HTML
Hypertext
HTML
Hypertext

Markup
HTML
Hypertext

Markup

Language
Markup

This is text without markup.
Markup

This is text without markup.




<p>This is text <em>with</em> markup.</p>
Markup
It's just text!

 This is text without markup.




 <p>This is text <em>with</em> markup.</p>
HTML is XML
HTML is XML
eXtensible
HTML is XML
eXtensible

Markup
HTML is XML
eXtensible

Markup

Language
XML
      XML tags can be
        anything
HTML


   HTML uses a specific
      set of tags
Tags
<p>This paragraph has some <strong>bold
information</strong> in it.</p>




In the browser, this markup will look like:
This paragraph has some bold information in it.
Tags
<p>Lorem <strong><em>ipsum dolor</em></strong>
sit amet, consectetur elit.</p>




• Tags that open must close
• First one in, last one out
Nested tags
<div id="content">
  <p>This paragraph has some <strong>bold
  information</strong> in it.</p>
</div>




• Tags take a hierarchical, parent-child
  structure
The DOM
• Document Object Model
• Represents the nested structure of an
  HTML document
• Tree structure -- think family tree
                  body

      h1           ul          div
                                     p

                                         strong
The Skeletal System
Every page should have these tags:

• <html>
• <head>
• <title>
• <body>
A Simple Page
A Simple Page
<!DOCTYPE HTML>
A Simple Page
<!DOCTYPE HTML>
 <html>




</html>
A Simple Page
<!DOCTYPE HTML>
 <html>
   <head>


   </head>




</html>
A Simple Page
<!DOCTYPE HTML>
 <html>
   <head>
    <title>The name of my page</title>
   </head>




</html>
A Simple Page
<!DOCTYPE HTML>
 <html>
   <head>
    <title>The name of my page</title>
   </head>
   <body>


   </body>
</html>
A Simple Page
<!DOCTYPE HTML>
 <html>
   <head>
    <title>The name of my page</title>
   </head>
   <body>
    <p>Some information here.</p>
   </body>
</html>
In the Browser
Title



        Body
Doctype

• Tells the browser which version of HTML to
  use.
• In HTML 5, the doctype line is short:
  <!DOCTYPE HTML>
Head

• Provides information that isn't displayed in
  the body
• CSS and Javascript instructions are included
  here
Title


• Inside the <head> tag
• Titles the browser window
Body


• Everything to be displayed in the browser
• Most of the HTML goes here
Set-up

• Put the HTML into a text file using Text
  Wrangler, or the text editor of your
  choice.


• In Firefox, choose "File > Open File" and
  open your HTML page.
Exercise
Tags to Know
Paragraph


• <p>
• Creates a line break after closing tag
Line Breaks

• <br/>
• Closing slash inside tag because it doesn't
  enclose anything.
• Line breaks in the HTML text do not show
  up in the browser.
Bold and Italic


• <strong> and <em>
• The old way was to use <b> and <i>
Headings
<h1>,<h2>,<h3>, <h4>,<h5>,<h6>
Exercise
Create an outline in your HTML using headings and
paragraph tags.

Examples:
  •Table of Contents
  •Proposal
  •Presentation Notes
Links
   • <a>
   • The most important tag!


                                                     Link Text
      href                   URL
                                               What the link looks
Hyperlink Reference   Name of file to link to
                                               like in the browser
Links
   • <a>
   • The most important tag!
      <a href="page.html">Go to page</a>


                                                     Link Text
      href                   URL
                                               What the link looks
Hyperlink Reference   Name of file to link to
                                               like in the browser
Exercise
Create a new HTML page and link to it from your first
page.
Images
<img>




                                       Closing Slash
    src             URL
                                   Tag opens and closes
Image Source   Name of image file
                                      in the same tag
Images
<img>

          <img src="cats.jpg" />




                                         Closing Slash
    src               URL
                                     Tag opens and closes
Image Source     Name of image file
                                        in the same tag
Exercise
Add an image to your page.
Attributes
Extra information inside a tag, as in <a> and <img>
Attributes
Extra information inside a tag, as in <a> and <img>

   <a href="page.html">Go to page</a>
Attributes
Extra information inside a tag, as in <a> and <img>

   <a href="page.html">Go to page</a>


   <img src="cats.jpg" />
Attributes
Extra information inside a tag, as in <a> and <img>

   <a href="page.html">Go to page</a>


   <img src="cats.jpg" />


   <p class="highlight">My paragraph.</p>
Attributes
Extra information inside a tag, as in <a> and <img>

   <a href="page.html">Go to page</a>


   <img src="cats.jpg" />


   <p class="highlight">My paragraph.</p>


   <div id="navigation">My navigation</div>
Inline vs. Block
           Elements
• Block-level elements begin a new line in the
  flow of a page.
• Inline elements stay in the current flow of
  the page without breaking a line.

         Block               Inline

           <p>               <img>
          <h1>              <strong>
         <table>             <em>
          <div>              <span>
Lists

• <ol> : Ordered list, usually with numbers
• <ul> : Unordered list, with bullets
• <li> : List item -- each item in list
• <ul> or <ol> tags wrap a set of <li> tags
Unordered List
Ordered List
Exercise
Create a site navigation using the <ul> and <li> tags.

Don't forget the link (<a>) tags!
Tables

• <table> : open and close a table
• <tr> : table row
• <td> : table data, aka a cell
• <th> : table heading
Building Tables

<tr>   Jane   555-9871   San Francisco

       John   555-0862     San Jose

       Judy   555-9753   Mountain View
<td>
Building Tables
  <table>
  <tr>
     <td>Jane</td>
     <td>555-9871</td>
     <td>San Francisco</td>
  </tr>
  ...


</table>
Exercise
Create a table in HTML
The <div> tag

• Used to group elements semantically, by
  topic
• Useful for layout with CSS
• Will usually have an id or class attribute to
  identify it
Using <div>
         Divs identify
        sections of the
          document
The <span> tag
• Like div, helps organize code
• Inline element
• Used for smaller pieces of code than div
The <span> tag
• Like div, helps organize code
• Inline element
• Used for smaller pieces of code than div
<p>Some of <span class="highlight">this
text</span> is not like the other</p>
Exercise
Add sections to your HTML document using div tags
with id attributes

More Related Content

PPT
Introduction to HTML
Amit Tyagi
 
PPTX
Introduction to HTML
Meghan Frisco
 
PDF
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Ahsan Rahim
 
KEY
HTML/CSS Lecture 1
Lee Lundrigan
 
PDF
Introduction to HTML and CSS
Mario Hernandez
 
PPTX
HTML5
Ana AbdElzaher
 
PPTX
uptu web technology unit 2 Css
Abhishek Kesharwani
 
PPT
Html introduction
Nuhu Abdul Razak
 
Introduction to HTML
Amit Tyagi
 
Introduction to HTML
Meghan Frisco
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Ahsan Rahim
 
HTML/CSS Lecture 1
Lee Lundrigan
 
Introduction to HTML and CSS
Mario Hernandez
 
uptu web technology unit 2 Css
Abhishek Kesharwani
 
Html introduction
Nuhu Abdul Razak
 

What's hot (20)

PPTX
uptu web technology unit 2 Css
Abhishek Kesharwani
 
PDF
Intro to HTML and CSS basics
Eliran Eliassy
 
PDF
HTML/CSS Crash Course (april 4 2017)
Daniel Friedman
 
PDF
HTML and CSS crash course!
Ana Cidre
 
PDF
An Intro to HTML & CSS
Shay Howe
 
PPTX
uptu web technology unit 2 html
Abhishek Kesharwani
 
PPTX
Web Page Designing Using HTML
Ashmita Tuition Center
 
PPTX
Java script and html
Malik M. Ali Shahid
 
PPTX
Java script and html new
Malik M. Ali Shahid
 
PPTX
Html css java script basics All about you need
Dipen Parmar
 
PPT
Introduction to HTML
Abzetdin Adamov
 
PDF
HTML & CSS Masterclass
Bernardo Raposo
 
PPTX
Introduction to HTML5 and CSS3 (revised)
Joseph Lewis
 
PPTX
HTML Basics 1 workshop
John Allan
 
PDF
Lesson 1: Introduction to HTML
Olivia Moran
 
PPTX
Html basics
wakeel132
 
PDF
Web Design Course: CSS lecture 1
Gheyath M. Othman
 
PDF
HTML CSS Basics
Mai Moustafa
 
PPTX
About Best friends - HTML, CSS and JS
Naga Harish M
 
uptu web technology unit 2 Css
Abhishek Kesharwani
 
Intro to HTML and CSS basics
Eliran Eliassy
 
HTML/CSS Crash Course (april 4 2017)
Daniel Friedman
 
HTML and CSS crash course!
Ana Cidre
 
An Intro to HTML & CSS
Shay Howe
 
uptu web technology unit 2 html
Abhishek Kesharwani
 
Web Page Designing Using HTML
Ashmita Tuition Center
 
Java script and html
Malik M. Ali Shahid
 
Java script and html new
Malik M. Ali Shahid
 
Html css java script basics All about you need
Dipen Parmar
 
Introduction to HTML
Abzetdin Adamov
 
HTML & CSS Masterclass
Bernardo Raposo
 
Introduction to HTML5 and CSS3 (revised)
Joseph Lewis
 
HTML Basics 1 workshop
John Allan
 
Lesson 1: Introduction to HTML
Olivia Moran
 
Html basics
wakeel132
 
Web Design Course: CSS lecture 1
Gheyath M. Othman
 
HTML CSS Basics
Mai Moustafa
 
About Best friends - HTML, CSS and JS
Naga Harish M
 
Ad

Similar to Html intro (20)

PDF
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
rehansayyadgolden07
 
PDF
Class Intro / HTML Basics
Shawn Calvert
 
PPTX
1-24-24 INFO 3205.pptx
MattMarino13
 
PPTX
Lesson 3
hstryk
 
PPT
Html
SBalan Balan
 
PPTX
Html Workshop
vardanyan99
 
PPTX
BVK_PTT_HTML-Unit - III (1).pptx
panoosha2
 
PPTX
1-22-24 INFO 2106.pptx
MattMarino13
 
PPT
html
tumetr1
 
PPTX
website design mark-up with HTML 5 .pptx
geremilibrary
 
PPTX
Html 5
DanellaPatrick
 
PDF
Web Design Basics
Cindy Royal
 
PDF
Tm 1st quarter - 1st meeting
Esmeraldo Jr Guimbarda
 
PPTX
LS2.1_V1_HTML.pptx
LokeshS94
 
PPTX
Html Simple Tutorial
Janani Satheshkumar
 
PDF
Merging Result-merged.pdf
simodafire
 
PDF
Learn HTML and CSS_ Learn to build a website with HTML and CSS
simodafire
 
PPTX
Introduction to Html
Folasade Adedeji
 
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
rehansayyadgolden07
 
Class Intro / HTML Basics
Shawn Calvert
 
1-24-24 INFO 3205.pptx
MattMarino13
 
Lesson 3
hstryk
 
Html Workshop
vardanyan99
 
BVK_PTT_HTML-Unit - III (1).pptx
panoosha2
 
1-22-24 INFO 2106.pptx
MattMarino13
 
html
tumetr1
 
website design mark-up with HTML 5 .pptx
geremilibrary
 
Web Design Basics
Cindy Royal
 
Tm 1st quarter - 1st meeting
Esmeraldo Jr Guimbarda
 
LS2.1_V1_HTML.pptx
LokeshS94
 
Html Simple Tutorial
Janani Satheshkumar
 
Merging Result-merged.pdf
simodafire
 
Learn HTML and CSS_ Learn to build a website with HTML and CSS
simodafire
 
Introduction to Html
Folasade Adedeji
 
Ad

Recently uploaded (20)

PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
The Future of Artificial Intelligence (AI)
Mukul
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 

Html intro

Editor's Notes