SlideShare a Scribd company logo
4
Most read
5
Most read
8
Most read
COMPUTER APPLICATIONS
CLASS X (Code 165)
TOPIC:
UNIT 2: Basic HTML Tags
By
HIMANSHU PATHAK
Contents
• Introduction
• Types of HTML Tags
– Paired Tags
– Un-paired Tags
– Self-closing Tags
– Utility-based Tags
• Basic HTML Tags
Introduction
• HTML tags are like keywords which defines that
how web browser will format and display the
content.
• All HTML tags must enclosed within < > these
angular brackets.
• HTML tags are used to create HTML documents.
• Every tag in HTML perform different tasks.
• When a web browser reads an HTML document,
browser reads it from top to bottom and left to
right.
Types of HTML Tags
• Paired Tags: An HTML tag is known as a paired tag
when the tag consists of an opening tag and a
closing tag as its companion tag.
– Example :
<p> This text is a paragraph . </p>
<b> This is a bold text </b>
• Unpaired Tags: An HTML tag is called an unpaired
tag when the tag only has an opening tag and does
not have a closing tag or a companion tag.
– Example:
<hr> Here, the <hr> is the unpaired tag used to create a
horizontal line.
Cont…
• Self-closing Tags: Self-Closing Tags are those
HTML tags that do not have a partner tag, where
the first tag is the only necessary tag that is valid
for the formatting.
• The main and important information is contained
WITHIN the element as its attribute.
• Example:
<img src="a.jpg" alt="This is an alternate text">
Cont…
• Formatting Tags: The HTML tags that help us in
the formatting of the texts like the size of the
text, font styles, making a text bold, etc.
• Tables, divisions, and span tags are also those
tags that help format a web page or document
and set the layout of the page.
• Example:
<u> Statements... </u>
Cont…
• Control Tags: These are the tags that are used in
managing content or managing scripts or
libraries that are external.
• All the form tags, drop-down lists, input text
boxes, etc., are used in interacting with the
visitor or the user.
HTML Basic Tags
• Heading Tags: It is used to define the heading of
html document.
– There are 6 different types of heading in HTML h1 to
h6.
– The <h1> defines most important heading
and <h6> defines least important.
– Example:
• <h1> Statements... </h>
Cont…
• Paragraph Tag: A paragraph in webpage is
defined by <p> tag.
– A paragraph is a block-level element used to
represent text on the browser.
– When the paragraph tag is closed it automatically
creates a new line.
– Example:
• <p>This is paragraph 1.</p>
Cont…
• Comment Tag: While writing code it is a good
practice to write a comment about what code is
all about. In HTML you can write comment
using <!-- ... -->.
– The comment is written between the double dash, it
can be in single line or multiline comment.
– Example:
• <!-- This is a single line comment -->
• <!-- This is
multiline comment -->
Cont…
• Line Break Tag: The <br> is used to create a
line break in the text.
– It can be used in writing addresses, song lyrics, or
at a place where a line break is needed.
– Example:
• <p>The br tag <br>
is used to <br>
create a line break. </p>
Cont…
• Horizontal Line: The <hr> is used to create a
break between paragraphs using a horizontal line.
– Using CSS you can modify and style as per your own
need.
– Example:
• <p>Scene 1:</p>
• <hr>
• <p>Scene 2:</p>
Today we learn
• Learned basic HTML Tags
• In the next class, we will start Unit II –
Formatting Tags in detail.
•Thanks

More Related Content

PPTX
The Complete HTML
PPTX
HTML Text formatting tags
DOCX
PHP HTML CSS Notes
PPTX
Html ppt
PPT
Hyperlinks in HTML
PPTX
PPTX
Html links
PPTX
Images and Tables in HTML
The Complete HTML
HTML Text formatting tags
PHP HTML CSS Notes
Html ppt
Hyperlinks in HTML
Html links
Images and Tables in HTML

What's hot (20)

PPTX
Html ppt
PPT
HTML Tags
PPTX
Html formatting
PPTX
Html form tag
PPTX
Html images syntax
PPTX
PDF
Html frames
KEY
HTML presentation for beginners
PPTX
html-table
PDF
Html table tags
PPTX
PPT
Html Slide Part-1
PPT
Introduction to html
PPTX
Introduction to HTML
PPTX
Html tags
PPT
Intro Html
PPTX
Anchor tag HTML Presentation
PPTX
HTML Forms
PPT
Introduction to CSS Borders - Lesson 4
Html ppt
HTML Tags
Html formatting
Html form tag
Html images syntax
Html frames
HTML presentation for beginners
html-table
Html table tags
Html Slide Part-1
Introduction to html
Introduction to HTML
Html tags
Intro Html
Anchor tag HTML Presentation
HTML Forms
Introduction to CSS Borders - Lesson 4
Ad

Similar to Basic html tags (20)

PPTX
Advance HTML
PPTX
HTML (Basic to Advance)
PDF
WEB PROGRAMMING bharathiar university bca unitII
PPTX
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
DOC
Html introduction
PPTX
2. HTML Basic unit2 fundamentals of computer
PDF
html.pdf
PDF
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
PPTX
Learn HTML Easier
PDF
Unit 2 HTML.pdf related to basic HTML cmd
PPTX
Lecture 2 introduction to html
PPT
Html for beginners part I
PDF
HTML Basic Tags PDF by CodeHim
DOC
Html, xml and java script
PPTX
6th_sem_web_unit1_part2.pptxhshshshshshshsh
DOCX
PPTX
Introduction to html
PPTX
HTML.pptx
PPTX
Unit 2 Internet and web technology CSS report
Advance HTML
HTML (Basic to Advance)
WEB PROGRAMMING bharathiar university bca unitII
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
Html introduction
2. HTML Basic unit2 fundamentals of computer
html.pdf
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
Learn HTML Easier
Unit 2 HTML.pdf related to basic HTML cmd
Lecture 2 introduction to html
Html for beginners part I
HTML Basic Tags PDF by CodeHim
Html, xml and java script
6th_sem_web_unit1_part2.pptxhshshshshshshsh
Introduction to html
HTML.pptx
Unit 2 Internet and web technology CSS report
Ad

More from Himanshu Pathak (16)

PPTX
Introduction to E commerce
PPTX
Digital property rights
PPTX
Intellectual property rights
PPTX
An Introduction to Cyber Ethics
PPTX
Cascading style sheet part 2
PPTX
Cascading style sheet an introduction
PPTX
Html multimedia
PPTX
Html forms
PPTX
Html tables
PPTX
Html link and list tags
PPTX
Mobile technologies
PPTX
Web services
PPTX
Remote Login and File Transfer Protocols
PPTX
Internet protocol
PPTX
Introduction to internet
PPTX
What is Computer?
Introduction to E commerce
Digital property rights
Intellectual property rights
An Introduction to Cyber Ethics
Cascading style sheet part 2
Cascading style sheet an introduction
Html multimedia
Html forms
Html tables
Html link and list tags
Mobile technologies
Web services
Remote Login and File Transfer Protocols
Internet protocol
Introduction to internet
What is Computer?

Recently uploaded (20)

PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Pre independence Education in Inndia.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
01-Introduction-to-Information-Management.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Supply Chain Operations Speaking Notes -ICLT Program
Final Presentation General Medicine 03-08-2024.pptx
Pre independence Education in Inndia.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Abdominal Access Techniques with Prof. Dr. R K Mishra
Pharmacology of Heart Failure /Pharmacotherapy of CHF
102 student loan defaulters named and shamed – Is someone you know on the list?
Renaissance Architecture: A Journey from Faith to Humanism
Week 4 Term 3 Study Techniques revisited.pptx
VCE English Exam - Section C Student Revision Booklet
TR - Agricultural Crops Production NC III.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPH.pptx obstetrics and gynecology in nursing
01-Introduction-to-Information-Management.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...

Basic html tags

  • 1. COMPUTER APPLICATIONS CLASS X (Code 165) TOPIC: UNIT 2: Basic HTML Tags By HIMANSHU PATHAK
  • 2. Contents • Introduction • Types of HTML Tags – Paired Tags – Un-paired Tags – Self-closing Tags – Utility-based Tags • Basic HTML Tags
  • 3. Introduction • HTML tags are like keywords which defines that how web browser will format and display the content. • All HTML tags must enclosed within < > these angular brackets. • HTML tags are used to create HTML documents. • Every tag in HTML perform different tasks. • When a web browser reads an HTML document, browser reads it from top to bottom and left to right.
  • 4. Types of HTML Tags • Paired Tags: An HTML tag is known as a paired tag when the tag consists of an opening tag and a closing tag as its companion tag. – Example : <p> This text is a paragraph . </p> <b> This is a bold text </b> • Unpaired Tags: An HTML tag is called an unpaired tag when the tag only has an opening tag and does not have a closing tag or a companion tag. – Example: <hr> Here, the <hr> is the unpaired tag used to create a horizontal line.
  • 5. Cont… • Self-closing Tags: Self-Closing Tags are those HTML tags that do not have a partner tag, where the first tag is the only necessary tag that is valid for the formatting. • The main and important information is contained WITHIN the element as its attribute. • Example: <img src="a.jpg" alt="This is an alternate text">
  • 6. Cont… • Formatting Tags: The HTML tags that help us in the formatting of the texts like the size of the text, font styles, making a text bold, etc. • Tables, divisions, and span tags are also those tags that help format a web page or document and set the layout of the page. • Example: <u> Statements... </u>
  • 7. Cont… • Control Tags: These are the tags that are used in managing content or managing scripts or libraries that are external. • All the form tags, drop-down lists, input text boxes, etc., are used in interacting with the visitor or the user.
  • 8. HTML Basic Tags • Heading Tags: It is used to define the heading of html document. – There are 6 different types of heading in HTML h1 to h6. – The <h1> defines most important heading and <h6> defines least important. – Example: • <h1> Statements... </h>
  • 9. Cont… • Paragraph Tag: A paragraph in webpage is defined by <p> tag. – A paragraph is a block-level element used to represent text on the browser. – When the paragraph tag is closed it automatically creates a new line. – Example: • <p>This is paragraph 1.</p>
  • 10. Cont… • Comment Tag: While writing code it is a good practice to write a comment about what code is all about. In HTML you can write comment using <!-- ... -->. – The comment is written between the double dash, it can be in single line or multiline comment. – Example: • <!-- This is a single line comment --> • <!-- This is multiline comment -->
  • 11. Cont… • Line Break Tag: The <br> is used to create a line break in the text. – It can be used in writing addresses, song lyrics, or at a place where a line break is needed. – Example: • <p>The br tag <br> is used to <br> create a line break. </p>
  • 12. Cont… • Horizontal Line: The <hr> is used to create a break between paragraphs using a horizontal line. – Using CSS you can modify and style as per your own need. – Example: • <p>Scene 1:</p> • <hr> • <p>Scene 2:</p>
  • 13. Today we learn • Learned basic HTML Tags • In the next class, we will start Unit II – Formatting Tags in detail. •Thanks