SlideShare a Scribd company logo
Introduction to
HTML
Visit this blog for more information:
otaleem.blogspot.com
Topics
 HTML
 What is HTML
 Parts of an HTML Document
 HTML Tags
Hyper Text Markup
Language
 The language that is used to develop web
pages is called Hyper Text Markup Language
(HTML).
 HTML is the language interpreted by the
Browser.
 Web pages are also called HTML document.
 HTML is a set of special code that can be
embedded in text to add formatting and
linking information.
 HTML is specified as Tags in an HTML
document.
HTML
 Used to create a Web page
 Made up of tags that specify the structure of
the document (this section is a heading, this
section is a paragraph, etc..)
 An extract from a sample HTML document:
<html>
<head>
<title> Web page</title>
</head>
<body>
<h1>This is my first Web page</h1>
HTML Tags
 Tags are instructions that are embedded
directly into text of the document .
 An HTML tag is a signal to a Browser that it
should do something.
 By convention all HTML tags begin with
an open angle bracket (<) and end with
a close angle bracket (>).
HTML tags can be of two types
 Paired Tags
 Singular Tags
Paired Tags
 A tag is said to be a pair tag if it along
with a companion tag .For example the
<B> tag is a paired tag .
 The <B> tag with its companion tag </B>
causes the text contained between them
to be Bold.
 The effect of the paired tag is applied
only to the text they contain.
 In paired tags , the first tag (<B>) is called
opening tag and the second tag (</B>) is
called closing tag.
Singular Tags
 The second type of the tag is the Singular
or Stand-alone tag.
 A stand-alone tag does not have a
companion tag.
 For example <BR> tag will insert a line
break . This tag does not require
companion tag.
HTML Tags
 Most HTML tags work in pairs. There is an opening
and a closing tag. For example:
<p>Some content here.</p>
 The <p>…</p> tag displays a paragraph
 <p> opens the paragraph (opening tag)
 </p> closes the paragraph (closing tag)
 “Some content here.” will be displayed on the
page
Self-closing/Singular Tags
 Some HTML tags are self closing. For example:
<br>
 The <br> tag will display a line break.
Required Tags
 All HTML documents should have html, head and body tags.
 <html>…</html> -- Surrounds the contents of the entire page
 <head>…</head> -- Lists the identification information on the
page, such as the title
 <title>…</title> -- Gives the name of the page that appears
in the top of the browser window
 <body>…</body> -- Frames the content of the page to be
displayed in the browser
Basic HTML Template
<html>
<head>
<title>CMSC104 HTML Template</title>
</head>
<body>
This is just a basic HTML template to be used in
CMSC104.
</body>
</html>
Example file: template.html
Basic HTML Template
Screenshot
Attributes
 The body tag takes the following attributes.
 BGCOLOR
 BACKGROUND
 TEXT ( To change the body text color)
TITLES AND FOOTERS
 Title:
A web page could have a title
that describes what the page is
about . <Title> tag is used for this
purpose. Text written b/w <Title>
</Title> shows up in the title bar
of browser window.
Some Common HTML Tags
and Their Meanings
 <p>…</p> -- Creates a paragraph
 <br /> -- Adds a line break
 <hr /> -- Separates sections with a horizontal
rule
 <h1>…</h1> -- Displays a heading (h1-h6)
 <!--…--> -- Inserts a comment
 <ol>…</ol> -- Creates an ordered list
 <ul>…</ul> -- Creates an unordered list
 <img /> -- Inserts an image into the document
 <a>…</a> -- Inserts a link into the document
Paragraph Example
<p>
The exam next week will consist of T/F,
multiple choice, short answer and pseudocode
questions. You cannot use a calculator.
</p>
<p>
After the exam, we will learn JavaScript.
</p>
Paragraph Example
Screenshot
Line Break Example
<p>
Roses are Red. <br />
Violets are Blue. <br />
You should study for Exam 1. <br />
It will be good for you!
</p>
Line Break Example
Screenshot
Horizontal Rule Example
<p>
The exam next week will consist of T/F,
multiple choice, short answer and
pseudocode questions. You cannot use a
calculator.
</p>
<hr />
<p>
After the exam, we will learn JavaScript.
It should be fun!!
</p>
Horizontal Rule Example
Screenshot
Heading Example
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
Heading Example
Screenshot
Comment Example
<!-- This is just some sample
html to illustrate the use of
a comment -->
<p>
Here is my paragraph.
</p>
<!-- Here is another comment -->
Heading Example
Screenshot
HTML – Lists
Why lists are important:
• They are widely used on links pages
• They help in the organization of data
• They are quick and easy to create
Order Lists (Numbering)
 An order list start with the tags <OL> and ends
with </OL>.
 Each list item starts with the tag <LI>.
 Attributes can be specified with <LI> tags.
Example
There are different types of Input devices
<oL Type =“1” Start=3>
<LI> Mouse
<LI>Keyboard
<LI> Joystick
</OL>
Ordered List Example
<ol>
<li>Print Review Questions for Exam1.</li>
<li>Work on Review Questions for Exam1.</li>
</ol>
Ordered List Screenshot
Unordered Lists
 An unordered list starts with <UL> tags and end
with </UL>
 Each list item tag start with <LI> tag.
 Attribute specified with <UL> tag is
 Type:
Specify the type of the bullet. It can be
FILL ROUND Or SQUARE.
Unordered List Example
<ul>
<li>country music</li>
<li>monday mornings</li>
<li>brussels sprouts</li>
</ul>
Unordered List Screenshot
Link Example
<a href="http://www.cs.umbc.edu/104/">CMSC104 Main page</a>
Link Screenshot
Adding Graphics To HTML
 HTML allows to add static or animated images to
an HTML Page.
 HTML accepts pictures file formats i.e.
.gif and .jpg /. jpeg.
 <IMG> tag is used to add the images.
 This tag takes the image file as an attribute.
Image Example
<img src="linux-tux.png" alt="Tux the Penguin" />
Image Screenshot
Visit this blog for more information:
otaleem.blogspot.com

More Related Content

What's hot (20)

PPT
Basic html
Drew Eric Noftle
 
PPTX
Hypertext markup language (html)
Aksa Sahi
 
PDF
Html Tutorial
DenMas Hengky
 
PDF
Html basics
Vjay Vijju
 
PPT
HTML Introduction
c525600
 
PPTX
The Difference between HTML, XHTML & HTML5 for Beginners
Rasin Bekkevold
 
PDF
Html - Tutorial
adelaticleanu
 
PPTX
Html
Lincoln School
 
PPTX
Introduction to basic HTML [Librarian edition]
Kosie Eloff
 
PPTX
HTML (Hyper Text Markup Language)
actanimation
 
PDF
Html grade 11
Nelly Mofokeng
 
PPT
BasicHTML
rcsampang
 
PPT
HTML Intermediate
c525600
 
PPT
HTML Advanced
c525600
 
PPT
Html For Beginners 2
Sriram Raj
 
PPTX
Html ppt
santosh lamba
 
DOCX
Lesson plan: HTML Formatting Texts and Paragraphs
Keith Borgonia Manatad
 
PPTX
Basic Html for beginners.
Muhammad Shafique
 
Basic html
Drew Eric Noftle
 
Hypertext markup language (html)
Aksa Sahi
 
Html Tutorial
DenMas Hengky
 
Html basics
Vjay Vijju
 
HTML Introduction
c525600
 
The Difference between HTML, XHTML & HTML5 for Beginners
Rasin Bekkevold
 
Html - Tutorial
adelaticleanu
 
Introduction to basic HTML [Librarian edition]
Kosie Eloff
 
HTML (Hyper Text Markup Language)
actanimation
 
Html grade 11
Nelly Mofokeng
 
BasicHTML
rcsampang
 
HTML Intermediate
c525600
 
HTML Advanced
c525600
 
Html For Beginners 2
Sriram Raj
 
Html ppt
santosh lamba
 
Lesson plan: HTML Formatting Texts and Paragraphs
Keith Borgonia Manatad
 
Basic Html for beginners.
Muhammad Shafique
 

Viewers also liked (6)

PPT
Learn HTML
Jimmy Mander
 
PPTX
Proyek web
Novita J Akerina
 
PPT
Windows Nt 4.0
school!
 
PDF
Introduction to html
eShikshak
 
PPT
Workgroup vs domain
tameemyousaf
 
PPT
Windows nt
Mohd Arif
 
Learn HTML
Jimmy Mander
 
Proyek web
Novita J Akerina
 
Windows Nt 4.0
school!
 
Introduction to html
eShikshak
 
Workgroup vs domain
tameemyousaf
 
Windows nt
Mohd Arif
 
Ad

Similar to Html for beginners part I (20)

PDF
HTML.pdf
aneebkmct
 
PPTX
basic knowledge of html which is related to frontend web development.
utsavsingh265
 
DOC
Html, xml and java script
Rajeev Uppala
 
PPT
Html ppt computer
Anmol Pant
 
PPT
L06IntroToWebHTMLL06IntroToWebHTMLL06IntroToWebHTM.ppt
RajanKumarMaurya1
 
PPT
lllllllllllllllllllllllllllllllllllL06IntroToWebHTML.ppt
wvquiroz
 
PPTX
Learn HTML Easier
Karthick Mathesh
 
PDF
HTML guide for beginners
Thesis Scientist Private Limited
 
PPTX
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
ManuAbraham17
 
PPTX
Learn html Basics
McSoftsis
 
PDF
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
rehansayyadgolden07
 
PDF
Html tutorial
Shankar D
 
DOC
Html introduction
vishnu murthy
 
PDF
Title, heading and paragraph tags
Sara Corpuz
 
PDF
html.pdf
ArianSS1
 
PPTX
Lecture 2 introduction to html
palhaftab
 
PPT
L06IntroToWebHTML (1).ppt
ssuser9125861
 
PPTX
Introduction to HTML
Shehzad Yaqoob
 
PPTX
Unit 2 Internet and web technology CSS report
ajaysahusistec
 
HTML.pdf
aneebkmct
 
basic knowledge of html which is related to frontend web development.
utsavsingh265
 
Html, xml and java script
Rajeev Uppala
 
Html ppt computer
Anmol Pant
 
L06IntroToWebHTMLL06IntroToWebHTMLL06IntroToWebHTM.ppt
RajanKumarMaurya1
 
lllllllllllllllllllllllllllllllllllL06IntroToWebHTML.ppt
wvquiroz
 
Learn HTML Easier
Karthick Mathesh
 
HTML guide for beginners
Thesis Scientist Private Limited
 
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
ManuAbraham17
 
Learn html Basics
McSoftsis
 
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
rehansayyadgolden07
 
Html tutorial
Shankar D
 
Html introduction
vishnu murthy
 
Title, heading and paragraph tags
Sara Corpuz
 
html.pdf
ArianSS1
 
Lecture 2 introduction to html
palhaftab
 
L06IntroToWebHTML (1).ppt
ssuser9125861
 
Introduction to HTML
Shehzad Yaqoob
 
Unit 2 Internet and web technology CSS report
ajaysahusistec
 
Ad

Recently uploaded (20)

PPTX
Applied-Statistics-1.pptx hardiba zalaaa
hardizala899
 
PPTX
Top 10 AI Tools, Like ChatGPT. You Must Learn In 2025
Digilearnings
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PDF
TOP 10 AI TOOLS YOU MUST LEARN TO SURVIVE IN 2025 AND ABOVE
digilearnings.com
 
PDF
Tips for Writing the Research Title with Examples
Thelma Villaflores
 
PPTX
Introduction to Probability(basic) .pptx
purohitanuj034
 
PPTX
Rules and Regulations of Madhya Pradesh Library Part-I
SantoshKumarKori2
 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
Unlock the Power of Cursor AI: MuleSoft Integrations
Veera Pallapu
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PPTX
LDP-2 UNIT 4 Presentation for practical.pptx
abhaypanchal2525
 
PPTX
TOP 10 AI TOOLS YOU MUST LEARN TO SURVIVE IN 2025 AND ABOVE
digilearnings.com
 
PPTX
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
Applied-Statistics-1.pptx hardiba zalaaa
hardizala899
 
Top 10 AI Tools, Like ChatGPT. You Must Learn In 2025
Digilearnings
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
TOP 10 AI TOOLS YOU MUST LEARN TO SURVIVE IN 2025 AND ABOVE
digilearnings.com
 
Tips for Writing the Research Title with Examples
Thelma Villaflores
 
Introduction to Probability(basic) .pptx
purohitanuj034
 
Rules and Regulations of Madhya Pradesh Library Part-I
SantoshKumarKori2
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Unlock the Power of Cursor AI: MuleSoft Integrations
Veera Pallapu
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
LDP-2 UNIT 4 Presentation for practical.pptx
abhaypanchal2525
 
TOP 10 AI TOOLS YOU MUST LEARN TO SURVIVE IN 2025 AND ABOVE
digilearnings.com
 
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 

Html for beginners part I

  • 1. Introduction to HTML Visit this blog for more information: otaleem.blogspot.com
  • 2. Topics  HTML  What is HTML  Parts of an HTML Document  HTML Tags
  • 3. Hyper Text Markup Language  The language that is used to develop web pages is called Hyper Text Markup Language (HTML).  HTML is the language interpreted by the Browser.  Web pages are also called HTML document.  HTML is a set of special code that can be embedded in text to add formatting and linking information.  HTML is specified as Tags in an HTML document.
  • 4. HTML  Used to create a Web page  Made up of tags that specify the structure of the document (this section is a heading, this section is a paragraph, etc..)  An extract from a sample HTML document: <html> <head> <title> Web page</title> </head> <body> <h1>This is my first Web page</h1>
  • 5. HTML Tags  Tags are instructions that are embedded directly into text of the document .  An HTML tag is a signal to a Browser that it should do something.  By convention all HTML tags begin with an open angle bracket (<) and end with a close angle bracket (>). HTML tags can be of two types  Paired Tags  Singular Tags
  • 6. Paired Tags  A tag is said to be a pair tag if it along with a companion tag .For example the <B> tag is a paired tag .  The <B> tag with its companion tag </B> causes the text contained between them to be Bold.  The effect of the paired tag is applied only to the text they contain.  In paired tags , the first tag (<B>) is called opening tag and the second tag (</B>) is called closing tag.
  • 7. Singular Tags  The second type of the tag is the Singular or Stand-alone tag.  A stand-alone tag does not have a companion tag.  For example <BR> tag will insert a line break . This tag does not require companion tag.
  • 8. HTML Tags  Most HTML tags work in pairs. There is an opening and a closing tag. For example: <p>Some content here.</p>  The <p>…</p> tag displays a paragraph  <p> opens the paragraph (opening tag)  </p> closes the paragraph (closing tag)  “Some content here.” will be displayed on the page
  • 9. Self-closing/Singular Tags  Some HTML tags are self closing. For example: <br>  The <br> tag will display a line break.
  • 10. Required Tags  All HTML documents should have html, head and body tags.  <html>…</html> -- Surrounds the contents of the entire page  <head>…</head> -- Lists the identification information on the page, such as the title  <title>…</title> -- Gives the name of the page that appears in the top of the browser window  <body>…</body> -- Frames the content of the page to be displayed in the browser
  • 11. Basic HTML Template <html> <head> <title>CMSC104 HTML Template</title> </head> <body> This is just a basic HTML template to be used in CMSC104. </body> </html> Example file: template.html
  • 13. Attributes  The body tag takes the following attributes.  BGCOLOR  BACKGROUND  TEXT ( To change the body text color)
  • 14. TITLES AND FOOTERS  Title: A web page could have a title that describes what the page is about . <Title> tag is used for this purpose. Text written b/w <Title> </Title> shows up in the title bar of browser window.
  • 15. Some Common HTML Tags and Their Meanings  <p>…</p> -- Creates a paragraph  <br /> -- Adds a line break  <hr /> -- Separates sections with a horizontal rule  <h1>…</h1> -- Displays a heading (h1-h6)  <!--…--> -- Inserts a comment  <ol>…</ol> -- Creates an ordered list  <ul>…</ul> -- Creates an unordered list  <img /> -- Inserts an image into the document  <a>…</a> -- Inserts a link into the document
  • 16. Paragraph Example <p> The exam next week will consist of T/F, multiple choice, short answer and pseudocode questions. You cannot use a calculator. </p> <p> After the exam, we will learn JavaScript. </p>
  • 18. Line Break Example <p> Roses are Red. <br /> Violets are Blue. <br /> You should study for Exam 1. <br /> It will be good for you! </p>
  • 20. Horizontal Rule Example <p> The exam next week will consist of T/F, multiple choice, short answer and pseudocode questions. You cannot use a calculator. </p> <hr /> <p> After the exam, we will learn JavaScript. It should be fun!! </p>
  • 22. Heading Example <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6>
  • 24. Comment Example <!-- This is just some sample html to illustrate the use of a comment --> <p> Here is my paragraph. </p> <!-- Here is another comment -->
  • 26. HTML – Lists Why lists are important: • They are widely used on links pages • They help in the organization of data • They are quick and easy to create
  • 27. Order Lists (Numbering)  An order list start with the tags <OL> and ends with </OL>.  Each list item starts with the tag <LI>.  Attributes can be specified with <LI> tags.
  • 28. Example There are different types of Input devices <oL Type =“1” Start=3> <LI> Mouse <LI>Keyboard <LI> Joystick </OL>
  • 29. Ordered List Example <ol> <li>Print Review Questions for Exam1.</li> <li>Work on Review Questions for Exam1.</li> </ol>
  • 31. Unordered Lists  An unordered list starts with <UL> tags and end with </UL>  Each list item tag start with <LI> tag.  Attribute specified with <UL> tag is  Type: Specify the type of the bullet. It can be FILL ROUND Or SQUARE.
  • 32. Unordered List Example <ul> <li>country music</li> <li>monday mornings</li> <li>brussels sprouts</li> </ul>
  • 36. Adding Graphics To HTML  HTML allows to add static or animated images to an HTML Page.  HTML accepts pictures file formats i.e. .gif and .jpg /. jpeg.  <IMG> tag is used to add the images.  This tag takes the image file as an attribute.
  • 37. Image Example <img src="linux-tux.png" alt="Tux the Penguin" />
  • 39. Visit this blog for more information: otaleem.blogspot.com

Editor's Notes

  • #2: This slide have two parts seconds part is in description.