SlideShare a Scribd company logo
Web 101: Intro to HTML
Outline
• What is HTML?
• Webpage Structure
• What is an Element?
• Common HTML elements
• Commenting HTML
Learning Outcomes
• Basic knowledge of Web Design using HTML
• Create a simple web page using the
fundamental HTML Elements
• Display images on a web page
• Including external web pages
• Basic page layout techniques
What is HTML?
• A markup language for describing web
documents (web pages).
• Stands for Hyper Text Markup Language
• A markup language is a set of markup tags
• HTML documents are described by HTML tags
• Each HTML tag describes different document
content
HTML Example
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
HTML Tags
• Keywords (tag names) surrounded by angle
brackets:
– <tagname>content</tagname>
• Usually come in pairs like <p> and </p>
• The first tag in a pair is the start tag, the
second tag is the end tag
• The end tag is written like the start tag, but
with a slash before the tag name
Web Browsers
• Read HTML documents and display them
• The browser does not display the HTML tags
• Uses tags to determine how to display the
document
• Examples
– Chrome, IE, Firefox, Safari, Opera, Edge
HTML Page Structure
<!DOCTYPE> Declaration
• Helps the browser to display a web page
correctly.
• Different document types exist
• Browser must know both type and version.
• The doctype declaration is not case sensitive.
<!DOCTYPE html>
<!DOCTYPE HTML>
<!doctype html>
<!Doctype Html>
Common Declarations
• HTML5
– <!DOCTYPE html>
• HTML 4.01
– <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
• XHTML 1.0
– <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
HTML Versions
Version Year
HTML 1991
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1999
XHTML 2000
HTML 5 2014
What is CSS?
• Used with HTML to style the page.
• No CSS Today!
• Will be covered in the WEB 102 : Intro to CSS
Editors
• Basic Editors
– NotePad
– TextEdit
– Vim
• Power Editors
– Sublime Text
– Brackets
• Professional Editors
– Microsoft WebMatrix
– DreamWeaver
Brackets Demo
HTML Document
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Exercise 1 : Document
• Let’s start by defining the basic structure of your website.
• Create a new folder for your work called “web101”.
• Then inside this folder create a new file called
“index.html”.
• open and close a set of <html></html> tags
• Within this, create the head and body tags
• If you load this in your browser, do you see anything on the
page?
• Now inside your head tag create a <title> tag with I love
owls as your title.
• You should see that the tab bar has changed. If not, double
check your code.
Solution 1
<!DOCTYPE html>
<html>
<head>
<title>I love Owls</title>
</head>
<body>
</body>
</html>
HTML Heading
<h1>This is a heading1</h1>
<h2>This is a heading2</h2>
<h3>This is a heading3</h3>
<h4>This is a heading4</h4>
<h5>This is a heading5</h5>
<h6>This is a heading6</h6>
HTML Paragraph
• Putting content into a <p> tag will break your
text up into paragraphs.
• This helps make the content of your page
easier to read for the user.
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Exercise 2: Paragraphs
• Add a h1 heading tag, which includes the word
Owls, inside the body tag of your page.
• Add the following paragraph inside
your <body> tag, after the <h1>:
<p>
Most birds of prey sport eyes on the sides of their heads,
but the stereoscopic nature of the owl's forward-facing eyes
permits the greater
sense of depth perception necessary for low-light hunting.
</p>
HTML Links
<a href=http://www.meetup.com/learnsoftwaredevelopment>Us on Meetup</a>
• A link lets the user click through to another
webpage.
• The href attribute is used to indicate where you
want the user to go when the link is clicked
Exercise 3: Links
• Let’s add a link to the bottom of your
paragraph:
<a href="http://en.wikipedia.org/wiki/Owl">More information about
owls...</a>
HTML DIV
• A div tag lets you group elements together.
• Grouping elements is useful as we can later
style them together (e.g. giving them all the
same colour).
Exercise 4 : DIV
• Wrap your existing paragraph and link in a div
and add a new heading to it.
<div>
<h1>Owls</h1>
<p>Most birds of prey sport eyes on the sides of their heads, but the
stereoscopic nature of the owl's forward-facing eyes permits the greater
sense of depth perception necessary for low-light hunting.
<a href="http://en.wikipedia.org/wiki/Owl">More information about
owls...</a>
</p>
</div>
HTML List
• There are two types of lists that can included
on a webpage,
– ordered and unordered.
• An unordered list <ul> is defined with bullets
• An ordered list <ol> uses a numbered
sequence.
Exercise 5: Lists
• Let’s create a new <h2> then underneath list
the reasons we love owls:
<h2>Why do I like owls so much?</h2>
<ol>
<li>they are adorable</li>
<li>and lovely</li>
<li>and cuddly</li>
</ol>
HTML Images
• Images are primarily made up of three attributes
• the <img> tag
– src attribute lets the page know what image we want
to view
– alt attribute provides extra information if the image
cannot be seen on the webpage for any reason
• to see an image on the webpage we need to link
to the image
• this involves telling the webpage where it is and
what it is called.
Exercise 6: Images
• Before the main heading of the page, add a
logo image
• The src of the image points to the images
folder
• We have given it a relevant alt attribute
<img src="images/logo.png" alt=”Some logo ">
Exercise 7
• Let’s add some more images. This time, we’ll put
them in a list.
• Do this underneath the <h2>Why do I like owls so
much?</h2> heading.
<ul>
<li><img src="images/img1.jpg" alt="adorable"></li>
<li><img src="images/img2.jpg" alt="lovely"></li>
<li><img src="images/img3.jpg" alt="cuddly"></li>
</ul>
Formatting Text
• Text can be emphasised or made important.
• Use <strong> for emphasis,
• Use <em> for importance
Exercise 8: Formatting
• Let’s emphasise some of the content of your
paragraph
<p> Most birds of prey sport eyes on the
sides of their heads, but the stereoscopic
nature of the owl's forward-facing
<strong>eyes permits the greater sense of
depth perception</strong> necessary for
low-light hunting. </p>
HTML Commenting
• You can use a special kind of tag to add notes
to our page that the computer will ignore.
• Comments are particularly useful when
wanting to remind yourself, or other
programmers, how your code works.
<!-- Note to self: this is where the header goes -->
Exercise 9: Twitter Share Link
• Add a share on twitter link along with your
other sharing links
<a href="http://twitter.com/home?status=I love
HTML! via @hawkmanacademy">Share your love
HTML on twitter</a>
Questions
Resources
• HTML elements
– https://developer.mozilla.org/en/docs/Web/HTML/Element
• Special characters
– http://htmlandcssbook.com/extras/html-escape-codes
• The Bare Bones Guide to HTML
– http://werbach.com/barebones/barebones.html
• Web Design Frameworks
– Bootstrap - http://getbootstrap.com/
– Bootstrap Themes - http://wrapbootstrap.com/

More Related Content

PDF
Thinkful - Frontend Crash Course - Intro to HTML/CSS
PDF
Html css crash course may 11th, atlanta
PDF
Html:css crash course (4:5)
PPTX
Web 102 INtro to CSS
PPTX
Web1O1 - Intro to HTML/CSS
PDF
Code &amp; design your first website (3:16)
PDF
Code & Design your first website 4/18
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Html css crash course may 11th, atlanta
Html:css crash course (4:5)
Web 102 INtro to CSS
Web1O1 - Intro to HTML/CSS
Code &amp; design your first website (3:16)
Code & Design your first website 4/18

What's hot (20)

PDF
WordPress Theme Structure
PPTX
HTML 5 Fundamental
PPTX
Html lesson1 5
PPTX
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
PPTX
Introduction to Custom WordPress Themeing
PDF
Html for beginners
PPTX
PPTX
Basics of Front End Web Dev PowerPoint
PPTX
uptu web technology unit 2 Css
PPTX
HTML/CSS Workshop @ Searchcamp
PPTX
Web development basics
PPTX
HTML Semantic Tags
PDF
Theme Development: From an idea to getting approved to wordpress.org
PDF
How to Prepare a WordPress Theme for Public Release
PDF
A Custom Drupal Theme in 40 Minutes
PPTX
uptu web technology unit 2 Css
PPTX
Introduction to HTML and CSS
PPT
PPTX
Intro to HTML
KEY
Artdm171 Week4 Tags
WordPress Theme Structure
HTML 5 Fundamental
Html lesson1 5
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
Introduction to Custom WordPress Themeing
Html for beginners
Basics of Front End Web Dev PowerPoint
uptu web technology unit 2 Css
HTML/CSS Workshop @ Searchcamp
Web development basics
HTML Semantic Tags
Theme Development: From an idea to getting approved to wordpress.org
How to Prepare a WordPress Theme for Public Release
A Custom Drupal Theme in 40 Minutes
uptu web technology unit 2 Css
Introduction to HTML and CSS
Intro to HTML
Artdm171 Week4 Tags
Ad

Similar to Web 101 intro to html (20)

PPT
html1.ppt
PPT
html1.ppt
PPT
basic to advance course of html and css1.ppt
PPT
html5.ppt
PPT
html1.ppt
PPT
html1.ppt
PPTX
Ifi7174 lesson1
DOCX
Html basic
PPT
introduction to html and css html1.ppt
PPT
introduction to html and css html1.ppt
PDF
Converted-bffbudurururyryrydgsjdjsusussj
PPT
NEW HTML POINTS AND HTML BASICS WITH NEW TOPICS
PPT
html1 (2).ppt html are very simple markup language
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
PPTX
All About HTML Web Development and its fundamentals
PPT
Lecture 1 - Comm Lab: Web @ ITP
PPTX
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
PPTX
Lecture 2 - HTML Basics
PDF
Html beginner
PDF
Html beginners tutorial
html1.ppt
html1.ppt
basic to advance course of html and css1.ppt
html5.ppt
html1.ppt
html1.ppt
Ifi7174 lesson1
Html basic
introduction to html and css html1.ppt
introduction to html and css html1.ppt
Converted-bffbudurururyryrydgsjdjsusussj
NEW HTML POINTS AND HTML BASICS WITH NEW TOPICS
html1 (2).ppt html are very simple markup language
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
All About HTML Web Development and its fundamentals
Lecture 1 - Comm Lab: Web @ ITP
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 - HTML Basics
Html beginner
Html beginners tutorial
Ad

More from Hawkman Academy (11)

PPTX
Introduction to DevOps
PPTX
What is the secret to great Agile leadership?
PPTX
Agile Retrospectives
PPTX
C# 101: Intro to Programming with C#
PPTX
Java 101 intro to programming with java
PPTX
Intro to software development
PPTX
Software Testing Overview
PDF
Introduction to Agile
PPTX
Introduction to Agile & Scrum
PPTX
Agile Requirements Discovery
PPTX
Design 101 : Beyond ideation - Transforming Ideas to Software Requirements
Introduction to DevOps
What is the secret to great Agile leadership?
Agile Retrospectives
C# 101: Intro to Programming with C#
Java 101 intro to programming with java
Intro to software development
Software Testing Overview
Introduction to Agile
Introduction to Agile & Scrum
Agile Requirements Discovery
Design 101 : Beyond ideation - Transforming Ideas to Software Requirements

Recently uploaded (20)

PDF
www-codemechsolutions-com-whatwedo-cloud-application-migration-services.pdf
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPTX
ENCOR_Chapter_11 - ‌BGP implementation.pptx
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
Dantes Peak Lessons English About Dantes Peak Lessons English About
PPTX
SEO Trends in 2025 | B3AITS - Bow & 3 Arrows IT Solutions
PDF
Testing WebRTC applications at scale.pdf
PDF
Project English Paja Jara Alejandro.jpdf
PPTX
Introduction to Information and Communication Technology
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
EthicalHack{aksdladlsfsamnookfmnakoasjd}.pptx
PPTX
QR Codes Qr codecodecodecodecocodedecodecode
PDF
Behind the Smile Unmasking Ken Childs and the Quiet Trail of Deceit Left in H...
PPT
256065457-Anaesthesia-in-Liver-Disease-Patient.ppt
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PDF
Generative AI Foundations: AI Skills for the Future of Work
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PPTX
ENCOR_Chapter_10 - OSPFv3 Attribution.pptx
PDF
Paper PDF World Game (s) Great Redesign.pdf
www-codemechsolutions-com-whatwedo-cloud-application-migration-services.pdf
Slides PPTX World Game (s) Eco Economic Epochs.pptx
ENCOR_Chapter_11 - ‌BGP implementation.pptx
Job_Card_System_Styled_lorem_ipsum_.pptx
Dantes Peak Lessons English About Dantes Peak Lessons English About
SEO Trends in 2025 | B3AITS - Bow & 3 Arrows IT Solutions
Testing WebRTC applications at scale.pdf
Project English Paja Jara Alejandro.jpdf
Introduction to Information and Communication Technology
Slides PDF The World Game (s) Eco Economic Epochs.pdf
EthicalHack{aksdladlsfsamnookfmnakoasjd}.pptx
QR Codes Qr codecodecodecodecocodedecodecode
Behind the Smile Unmasking Ken Childs and the Quiet Trail of Deceit Left in H...
256065457-Anaesthesia-in-Liver-Disease-Patient.ppt
RPKI Status Update, presented by Makito Lay at IDNOG 10
Decoding a Decade: 10 Years of Applied CTI Discipline
Generative AI Foundations: AI Skills for the Future of Work
An introduction to the IFRS (ISSB) Stndards.pdf
ENCOR_Chapter_10 - OSPFv3 Attribution.pptx
Paper PDF World Game (s) Great Redesign.pdf

Web 101 intro to html

  • 1. Web 101: Intro to HTML
  • 2. Outline • What is HTML? • Webpage Structure • What is an Element? • Common HTML elements • Commenting HTML
  • 3. Learning Outcomes • Basic knowledge of Web Design using HTML • Create a simple web page using the fundamental HTML Elements • Display images on a web page • Including external web pages • Basic page layout techniques
  • 4. What is HTML? • A markup language for describing web documents (web pages). • Stands for Hyper Text Markup Language • A markup language is a set of markup tags • HTML documents are described by HTML tags • Each HTML tag describes different document content
  • 5. HTML Example <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
  • 6. HTML Tags • Keywords (tag names) surrounded by angle brackets: – <tagname>content</tagname> • Usually come in pairs like <p> and </p> • The first tag in a pair is the start tag, the second tag is the end tag • The end tag is written like the start tag, but with a slash before the tag name
  • 7. Web Browsers • Read HTML documents and display them • The browser does not display the HTML tags • Uses tags to determine how to display the document • Examples – Chrome, IE, Firefox, Safari, Opera, Edge
  • 9. <!DOCTYPE> Declaration • Helps the browser to display a web page correctly. • Different document types exist • Browser must know both type and version. • The doctype declaration is not case sensitive. <!DOCTYPE html> <!DOCTYPE HTML> <!doctype html> <!Doctype Html>
  • 10. Common Declarations • HTML5 – <!DOCTYPE html> • HTML 4.01 – <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> • XHTML 1.0 – <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd">
  • 11. HTML Versions Version Year HTML 1991 HTML 2.0 1995 HTML 3.2 1997 HTML 4.01 1999 XHTML 2000 HTML 5 2014
  • 12. What is CSS? • Used with HTML to style the page. • No CSS Today! • Will be covered in the WEB 102 : Intro to CSS
  • 13. Editors • Basic Editors – NotePad – TextEdit – Vim • Power Editors – Sublime Text – Brackets • Professional Editors – Microsoft WebMatrix – DreamWeaver
  • 15. HTML Document <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
  • 16. Exercise 1 : Document • Let’s start by defining the basic structure of your website. • Create a new folder for your work called “web101”. • Then inside this folder create a new file called “index.html”. • open and close a set of <html></html> tags • Within this, create the head and body tags • If you load this in your browser, do you see anything on the page? • Now inside your head tag create a <title> tag with I love owls as your title. • You should see that the tab bar has changed. If not, double check your code.
  • 17. Solution 1 <!DOCTYPE html> <html> <head> <title>I love Owls</title> </head> <body> </body> </html>
  • 18. HTML Heading <h1>This is a heading1</h1> <h2>This is a heading2</h2> <h3>This is a heading3</h3> <h4>This is a heading4</h4> <h5>This is a heading5</h5> <h6>This is a heading6</h6>
  • 19. HTML Paragraph • Putting content into a <p> tag will break your text up into paragraphs. • This helps make the content of your page easier to read for the user. <p>This is a paragraph.</p> <p>This is another paragraph.</p>
  • 20. Exercise 2: Paragraphs • Add a h1 heading tag, which includes the word Owls, inside the body tag of your page. • Add the following paragraph inside your <body> tag, after the <h1>: <p> Most birds of prey sport eyes on the sides of their heads, but the stereoscopic nature of the owl's forward-facing eyes permits the greater sense of depth perception necessary for low-light hunting. </p>
  • 21. HTML Links <a href=http://www.meetup.com/learnsoftwaredevelopment>Us on Meetup</a> • A link lets the user click through to another webpage. • The href attribute is used to indicate where you want the user to go when the link is clicked
  • 22. Exercise 3: Links • Let’s add a link to the bottom of your paragraph: <a href="http://en.wikipedia.org/wiki/Owl">More information about owls...</a>
  • 23. HTML DIV • A div tag lets you group elements together. • Grouping elements is useful as we can later style them together (e.g. giving them all the same colour).
  • 24. Exercise 4 : DIV • Wrap your existing paragraph and link in a div and add a new heading to it. <div> <h1>Owls</h1> <p>Most birds of prey sport eyes on the sides of their heads, but the stereoscopic nature of the owl's forward-facing eyes permits the greater sense of depth perception necessary for low-light hunting. <a href="http://en.wikipedia.org/wiki/Owl">More information about owls...</a> </p> </div>
  • 25. HTML List • There are two types of lists that can included on a webpage, – ordered and unordered. • An unordered list <ul> is defined with bullets • An ordered list <ol> uses a numbered sequence.
  • 26. Exercise 5: Lists • Let’s create a new <h2> then underneath list the reasons we love owls: <h2>Why do I like owls so much?</h2> <ol> <li>they are adorable</li> <li>and lovely</li> <li>and cuddly</li> </ol>
  • 27. HTML Images • Images are primarily made up of three attributes • the <img> tag – src attribute lets the page know what image we want to view – alt attribute provides extra information if the image cannot be seen on the webpage for any reason • to see an image on the webpage we need to link to the image • this involves telling the webpage where it is and what it is called.
  • 28. Exercise 6: Images • Before the main heading of the page, add a logo image • The src of the image points to the images folder • We have given it a relevant alt attribute <img src="images/logo.png" alt=”Some logo ">
  • 29. Exercise 7 • Let’s add some more images. This time, we’ll put them in a list. • Do this underneath the <h2>Why do I like owls so much?</h2> heading. <ul> <li><img src="images/img1.jpg" alt="adorable"></li> <li><img src="images/img2.jpg" alt="lovely"></li> <li><img src="images/img3.jpg" alt="cuddly"></li> </ul>
  • 30. Formatting Text • Text can be emphasised or made important. • Use <strong> for emphasis, • Use <em> for importance
  • 31. Exercise 8: Formatting • Let’s emphasise some of the content of your paragraph <p> Most birds of prey sport eyes on the sides of their heads, but the stereoscopic nature of the owl's forward-facing <strong>eyes permits the greater sense of depth perception</strong> necessary for low-light hunting. </p>
  • 32. HTML Commenting • You can use a special kind of tag to add notes to our page that the computer will ignore. • Comments are particularly useful when wanting to remind yourself, or other programmers, how your code works. <!-- Note to self: this is where the header goes -->
  • 33. Exercise 9: Twitter Share Link • Add a share on twitter link along with your other sharing links <a href="http://twitter.com/home?status=I love HTML! via @hawkmanacademy">Share your love HTML on twitter</a>
  • 35. Resources • HTML elements – https://developer.mozilla.org/en/docs/Web/HTML/Element • Special characters – http://htmlandcssbook.com/extras/html-escape-codes • The Bare Bones Guide to HTML – http://werbach.com/barebones/barebones.html • Web Design Frameworks – Bootstrap - http://getbootstrap.com/ – Bootstrap Themes - http://wrapbootstrap.com/

Editor's Notes

  • #6: The DOCTYPE declaration defines the document type to be HTML The text between <html> and </html> describes an HTML document The text between <head> and </head> provides information about the document The text between <title> and </title> provides a title for the document The text between <body> and </body> describes the visible page content The text between <h1> and </h1> describes a heading The text between <p> and </p> describes a paragraph Using this description, a web browser can display a document with a heading and a paragraph.
  • #10: <!DOCTYPE html> <!DOCTYPE HTML> <!doctype html> <!Doctype Html>
  • #27: If you wanted to make this an unordered list, what would you change? How could you check it worked? Try it, then change your list back to an ordered list.