SlideShare a Scribd company logo
Basics of
HTML
Lesson 1
Building Your First Web Page
Before we begin our journey to learn how to build
websites with HTML and CSS, it is important to
understand the differences between the two
languages, the syntax of each language, and some
common terminology.
What Are HTML & CSS?
ď‚› HTML, HyperText Markup Language, gives content
structure and meaning by defining that content as,
for example, headings, paragraphs, or images.
ď‚› CSS, or Cascading Style Sheets, is a presentation
language created to style the appearance of
content—using, for example, fonts or colors.
ď‚› As a rule, HTML will always represent content, and
CSS will always represent the appearance of that
content.
ď‚› With this understanding of the difference between
HTML and CSS, let’s dive into HTML in more detail.
Example Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello World</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is a web page.</p>
</body>
</html>
Understanding Common HTML Terms
ď‚› Elements
ď‚› Elements are designators that define the structure
and content of objects within a page. Some of the
more frequently used elements include multiple
levels of headings and paragraphs, the list goes
on to include the <a>, <div>, <span>, <strong>,
and <em>elements, and many more.
ď‚› Elements are identified by the use of less-than and
greater-than angle brackets, < >, surrounding the
element name.
Tags and Attributes
ď‚› An opening tag marks the beginning of an element. It consists of a
less-than sign followed by an element’s name, and then ends with
a greater-than sign; for example,<div>.
ď‚› A closing tag marks the end of an element. It consists of a less-than
sign followed by a forward slash and the element’s name, and
then ends with a greater-than sign; for example, </div>.
ď‚› The content that falls between the opening and closing tags is the
content of that element.
ď‚› Attributes are properties used to provide additional information
about an element.
 Attributes are defined within the opening tag, after an element’s
name. Generally attributes include a name and a value. The
format for these attributes consists of the attribute name followed
by an equals sign and then a quoted attribute value. For example,
an <a> element including an href attribute would look like the
following:
<a href=“http://www.google.com”> Google </a>
Format
Setting Up the HTML Document Structure
ď‚› HTML documents are plain text documents saved with an .html file
extension rather than a .txt file extension. To begin writing HTML,
you first need a plain text editor that you are comfortable using.
ď‚› All HTML documents have a required structure that includes the
following declaration and elements: <!DOCTYPE
html>, <html>, <head>, and <body>.
ď‚› Inside the <html> element, the <head> element identifies the top
of the document, including any metadata (accompanying
information about the page). The content inside
the <head> element is not displayed on the web page itself.
Instead, it may include the document title (which is displayed on
the title bar in the browser window), links to any external files, or
any other beneficial metadata.
ď‚› All of the visible content within the web page will fall within
the <body> element.
Lesson 5 HTML 5  for NewbiesBasic Hello world.ppt
QUIZ
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello World</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is a web page.</p>
</body>
</html>
Classification of items: Write F if Formatting
tags, H for heading tags, S structural tags, and
SC to a separator/container tags.
1. <div> SC
2. <h1> H
3. <head> H
4. <strong> F
5. <p> S
6. <html> H
7. <hr> SC
8. <enter> S
9. <h3> H
10. <em> F

More Related Content

PPTX
2 INTRO TO HTML.pptx
PPTX
HTML and CSS Basics
PPTX
Web1O1 - Intro to HTML/CSS
PPTX
Empowerment Technologies Lecture 10 (Philippines SHS)
PDF
HTML - part 1
PPTX
Introduction to web design discussing which languages is used for website des...
PDF
Html tutorials-infotech aus
PPTX
2 INTRO TO HTML.pptx
HTML and CSS Basics
Web1O1 - Intro to HTML/CSS
Empowerment Technologies Lecture 10 (Philippines SHS)
HTML - part 1
Introduction to web design discussing which languages is used for website des...
Html tutorials-infotech aus

Similar to Lesson 5 HTML 5 for NewbiesBasic Hello world.ppt (20)

PDF
Html & Html5 from scratch
PDF
Class Intro / HTML Basics
PPTX
Html
PPTX
HTML/HTML5
PPSX
Html introduction
PPTX
WEB TECHNOLOGY SLIDE 2 coe35mgfdggdh.pptx
PPTX
Web Development Basics: HOW TO in HTML
 
PPTX
Learning html. (Part- 1)
PPTX
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
PPTX
PPTX
PDF
Tm 1st quarter - 1st meeting
PPTX
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
PPTX
Introduction to HTML.pptx
PPTX
Basic Html Knowledge for students
PPT
Introduction to HTML
PPTX
HTML - R.D.sivakumar
PPTX
WEB TECHNOLOGY in recent years 122334445
PPTX
PPTX
Computer fundamentals-internet p2
Html & Html5 from scratch
Class Intro / HTML Basics
Html
HTML/HTML5
Html introduction
WEB TECHNOLOGY SLIDE 2 coe35mgfdggdh.pptx
Web Development Basics: HOW TO in HTML
 
Learning html. (Part- 1)
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
Tm 1st quarter - 1st meeting
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
Introduction to HTML.pptx
Basic Html Knowledge for students
Introduction to HTML
HTML - R.D.sivakumar
WEB TECHNOLOGY in recent years 122334445
Computer fundamentals-internet p2
Ad

More from CherryLim21 (20)

PPTX
Lesson 4 HTML-Tags-A-Foundation-for-Web-Development.pptx
PPTX
Legal, Ethical and Societal Issues in MIL.pptx
PPTX
TYPES-OF-MEDIA Media information literacy-.pptx
PPTX
LESSON 3.ANG PAGBABAGO SA SILANGAN AT TIMOG- SILANGANG ASYA.pptx
PPTX
EAAP
PPTX
LESSON 2- EXPLAIN THE PROCESS ON HOW TO SPOT A TREND.pptx
PPTX
introductiontoict-170103050804.pptx
PPTX
Aralin panlipunan 8 1st Q.pptx
PPTX
L1 Introduction to Information and Communication Technology.pptx
PPTX
Network addresses.pptx
PPTX
vb.pptx
PPTX
konsepto-ng-asya-aralin-1-grade-7-220902125705-c05da4f0 (1).pptx
PPTX
Lesson 4.1 PRESENTATION SOFTWARE.pptx
PPTX
CURRENT AND FUTURE TRENDS OF MEDIA AND INFORMATION.pptx
PPTX
Lesson 1. Online Technology and Other Trends in ICT.pptx
PPTX
Reading Critic.pptx
PPTX
Presentation.pptx
PPTX
MIL Intro- 1.pptx
PPT
LESSON-2-GETTING-STARTED-MICROSOFT-EXCEL.ppt
PPTX
Lesson 1. Computer ethics and safety.pptx
Lesson 4 HTML-Tags-A-Foundation-for-Web-Development.pptx
Legal, Ethical and Societal Issues in MIL.pptx
TYPES-OF-MEDIA Media information literacy-.pptx
LESSON 3.ANG PAGBABAGO SA SILANGAN AT TIMOG- SILANGANG ASYA.pptx
EAAP
LESSON 2- EXPLAIN THE PROCESS ON HOW TO SPOT A TREND.pptx
introductiontoict-170103050804.pptx
Aralin panlipunan 8 1st Q.pptx
L1 Introduction to Information and Communication Technology.pptx
Network addresses.pptx
vb.pptx
konsepto-ng-asya-aralin-1-grade-7-220902125705-c05da4f0 (1).pptx
Lesson 4.1 PRESENTATION SOFTWARE.pptx
CURRENT AND FUTURE TRENDS OF MEDIA AND INFORMATION.pptx
Lesson 1. Online Technology and Other Trends in ICT.pptx
Reading Critic.pptx
Presentation.pptx
MIL Intro- 1.pptx
LESSON-2-GETTING-STARTED-MICROSOFT-EXCEL.ppt
Lesson 1. Computer ethics and safety.pptx
Ad

Recently uploaded (20)

PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Encapsulation theory and applications.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
KodekX | Application Modernization Development
 
DOCX
The AUB Centre for AI in Media Proposal.docx
 
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
 
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Review of recent advances in non-invasive hemoglobin estimation
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Encapsulation theory and applications.pdf
cuic standard and advanced reporting.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Advanced methodologies resolving dimensionality complications for autism neur...
Network Security Unit 5.pdf for BCA BBA.
Understanding_Digital_Forensics_Presentation.pptx
sap open course for s4hana steps from ECC to s4
KodekX | Application Modernization Development
 
The AUB Centre for AI in Media Proposal.docx
 
The Rise and Fall of 3GPP – Time for a Sabbatical?
 
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
“AI and Expert System Decision Support & Business Intelligence Systems”
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Digital-Transformation-Roadmap-for-Companies.pptx

Lesson 5 HTML 5 for NewbiesBasic Hello world.ppt

  • 2. Lesson 1 Building Your First Web Page Before we begin our journey to learn how to build websites with HTML and CSS, it is important to understand the differences between the two languages, the syntax of each language, and some common terminology.
  • 3. What Are HTML & CSS? ď‚› HTML, HyperText Markup Language, gives content structure and meaning by defining that content as, for example, headings, paragraphs, or images. ď‚› CSS, or Cascading Style Sheets, is a presentation language created to style the appearance of content—using, for example, fonts or colors. ď‚› As a rule, HTML will always represent content, and CSS will always represent the appearance of that content. ď‚› With this understanding of the difference between HTML and CSS, let’s dive into HTML in more detail.
  • 4. Example Code <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Hello World</title> </head> <body> <h1>Hello World</h1> <p>This is a web page.</p> </body> </html>
  • 5. Understanding Common HTML Terms ď‚› Elements ď‚› Elements are designators that define the structure and content of objects within a page. Some of the more frequently used elements include multiple levels of headings and paragraphs, the list goes on to include the <a>, <div>, <span>, <strong>, and <em>elements, and many more. ď‚› Elements are identified by the use of less-than and greater-than angle brackets, < >, surrounding the element name.
  • 6. Tags and Attributes ď‚› An opening tag marks the beginning of an element. It consists of a less-than sign followed by an element’s name, and then ends with a greater-than sign; for example,<div>. ď‚› A closing tag marks the end of an element. It consists of a less-than sign followed by a forward slash and the element’s name, and then ends with a greater-than sign; for example, </div>. ď‚› The content that falls between the opening and closing tags is the content of that element. ď‚› Attributes are properties used to provide additional information about an element. ď‚› Attributes are defined within the opening tag, after an element’s name. Generally attributes include a name and a value. The format for these attributes consists of the attribute name followed by an equals sign and then a quoted attribute value. For example, an <a> element including an href attribute would look like the following: <a href=“http://www.google.com”> Google </a>
  • 8. Setting Up the HTML Document Structure ď‚› HTML documents are plain text documents saved with an .html file extension rather than a .txt file extension. To begin writing HTML, you first need a plain text editor that you are comfortable using. ď‚› All HTML documents have a required structure that includes the following declaration and elements: <!DOCTYPE html>, <html>, <head>, and <body>. ď‚› Inside the <html> element, the <head> element identifies the top of the document, including any metadata (accompanying information about the page). The content inside the <head> element is not displayed on the web page itself. Instead, it may include the document title (which is displayed on the title bar in the browser window), links to any external files, or any other beneficial metadata. ď‚› All of the visible content within the web page will fall within the <body> element.
  • 10. QUIZ <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Hello World</title> </head> <body> <h1>Hello World</h1> <p>This is a web page.</p> </body> </html>
  • 11. Classification of items: Write F if Formatting tags, H for heading tags, S structural tags, and SC to a separator/container tags. 1. <div> SC 2. <h1> H 3. <head> H 4. <strong> F 5. <p> S 6. <html> H 7. <hr> SC 8. <enter> S 9. <h3> H 10. <em> F