SlideShare a Scribd company logo
1
2
Two ways to get started
3
The purpose of a web browser
(Chrome, Edge, Firefox, Safari) is to
read HTML documents and display
them correctly.
Web Browsers
A browser does not display the HTML
tags, but uses them to determine how
to display the document:
<html>
Tags
</html>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Two
Sections
 body
 head
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
‱ declaration defines that this document is an
HTML5 document
HTML Elements
 html
 title
 body
 h1
 p
 head
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
‱is the root element of an HTML page
‱Contains meta information about
the HTML page
‱Specifies a title for the HTML page
(shown in browser’s title bar/page’s
tab)
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
‱defines the document's body, and is
a container for all the visible
contents, such as headings,
paragraphs, images, hyperlinks,
tables, lists, etc.
‱defines a large heading
‱defines a paragraph
An HTML element is defined by a start tag,
some content, and an end tag:
What is an
HTML Element?
<tagname>Content</tagname>
Start Tag Element Content End Tag
<h1> My First Heading </h1>
<p> My First Paragraph </p>
<strong> To Bold sentence </strong>
<em> Emphasize/italic </em>
<u> underline </u>
<a href= “http://www.sample.com”> This is a link </a>
href = attribute specifies the URL of the page the link goes to.
a = defines hyperlink
Notepad Visual Studio
Code
HTML Page Structure
Note: The content inside the
<body> section (the white area
above) will be displayed in a
browser.
The content inside the <title>
element will be shown in the
browser's title bar or in the
page's tab.
HTML Headings
Start Tag Element Content End Tag
<h1> My First Heading </h1>
<h2> My First Heading </h2>
<h3> My First Heading </h3>
<h4> My First Heading </h4>
<h5> My First Heading </h5>
<h6> My First Heading </h6>
Empty
Elements
Self Closing Tags Define
<br/> line break
<img src /> HTML images
<hr /> Horizontal line
HTML images are defined with the <img> tag.
The source file (src), alternative text (alt), width,
and height are provided as attributes:
Self Closing Tags

More Related Content

PPTX
EBRE TABOR UNIVERSITY Gafat Institute of Technology Department of Information...
PDF
Web Development 1 (HTML & CSS)
DOCX
HTML Notes And Some Attributes
PPTX
DOCX
Web Designing.docx
PPT
html
PPTX
Html and Css Student Education hub point.pptx
PDF
Html full
EBRE TABOR UNIVERSITY Gafat Institute of Technology Department of Information...
Web Development 1 (HTML & CSS)
HTML Notes And Some Attributes
Web Designing.docx
html
Html and Css Student Education hub point.pptx
Html full

Similar to W6 - Intro to HTML.pdf (20)

PDF
HTML guide for beginners
PDF
Html notes
DOC
PDF
htmlnotes Which tells about all the basic
PDF
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
PDF
HTML Presentation
PPTX
INTRODUCTION FOR HTML
PPTX
HTML/HTML5
PPTX
html.pptx class notes to prepare html completly
PPTX
html (1) (1).pptx for all students to learn
PPTX
001-Hyper-Text-Markup-Language-Lesson.pptx
PPTX
Html (hypertext markup language)
PPTX
HTML5 Topic 1
DOCX
Htmlnotes 150323102005-conversion-gate01
PPTX
Html Workshop
PPTX
Basic Html Knowledge for students
PPTX
PPTX
Week-1_PPT_WEBAPPS-done.pptx
PPT
HTML Introduction
PDF
Basic Html Notes
HTML guide for beginners
Html notes
htmlnotes Which tells about all the basic
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
HTML Presentation
INTRODUCTION FOR HTML
HTML/HTML5
html.pptx class notes to prepare html completly
html (1) (1).pptx for all students to learn
001-Hyper-Text-Markup-Language-Lesson.pptx
Html (hypertext markup language)
HTML5 Topic 1
Htmlnotes 150323102005-conversion-gate01
Html Workshop
Basic Html Knowledge for students
Week-1_PPT_WEBAPPS-done.pptx
HTML Introduction
Basic Html Notes
Ad

Recently uploaded (20)

PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
System and Network Administration Chapter 2
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
history of c programming in notes for students .pptx
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Introduction to Artificial Intelligence
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
System and Network Administraation Chapter 3
PDF
Digital Strategies for Manufacturing Companies
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
Upgrade and Innovation Strategies for SAP ERP Customers
Adobe Illustrator 28.6 Crack My Vision of Vector Design
System and Network Administration Chapter 2
PTS Company Brochure 2025 (1).pdf.......
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
history of c programming in notes for students .pptx
Design an Analysis of Algorithms I-SECS-1021-03
Odoo POS Development Services by CandidRoot Solutions
Softaken Excel to vCard Converter Software.pdf
Introduction to Artificial Intelligence
2025 Textile ERP Trends: SAP, Odoo & Oracle
Understanding Forklifts - TECH EHS Solution
Operating system designcfffgfgggggggvggggggggg
ManageIQ - Sprint 268 Review - Slide Deck
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
System and Network Administraation Chapter 3
Digital Strategies for Manufacturing Companies
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Navsoft: AI-Powered Business Solutions & Custom Software Development
Ad

W6 - Intro to HTML.pdf

  • 1. 1
  • 2. 2
  • 3. Two ways to get started 3
  • 4. The purpose of a web browser (Chrome, Edge, Firefox, Safari) is to read HTML documents and display them correctly. Web Browsers A browser does not display the HTML tags, but uses them to determine how to display the document:
  • 6. <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> Two Sections  body  head
  • 7. <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> ‱ declaration defines that this document is an HTML5 document HTML Elements  html  title  body  h1  p  head
  • 8. <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> ‱is the root element of an HTML page ‱Contains meta information about the HTML page ‱Specifies a title for the HTML page (shown in browser’s title bar/page’s tab)
  • 9. <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> ‱defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. ‱defines a large heading ‱defines a paragraph
  • 10. An HTML element is defined by a start tag, some content, and an end tag: What is an HTML Element? <tagname>Content</tagname> Start Tag Element Content End Tag <h1> My First Heading </h1> <p> My First Paragraph </p> <strong> To Bold sentence </strong> <em> Emphasize/italic </em> <u> underline </u> <a href= “http://www.sample.com”> This is a link </a> href = attribute specifies the URL of the page the link goes to. a = defines hyperlink
  • 12. HTML Page Structure Note: The content inside the <body> section (the white area above) will be displayed in a browser. The content inside the <title> element will be shown in the browser's title bar or in the page's tab.
  • 13. HTML Headings Start Tag Element Content End Tag <h1> My First Heading </h1> <h2> My First Heading </h2> <h3> My First Heading </h3> <h4> My First Heading </h4> <h5> My First Heading </h5> <h6> My First Heading </h6>
  • 14. Empty Elements Self Closing Tags Define <br/> line break <img src /> HTML images <hr /> Horizontal line HTML images are defined with the <img> tag. The source file (src), alternative text (alt), width, and height are provided as attributes: Self Closing Tags