SlideShare a Scribd company logo
HTML Tags
By
Dr. I. Uma Maheswari
iuma_maheswari@yahoo.co.in
Tags
• Tags also called as markups, instruct the
browser how to display HTML document.
• It consists of a keyword (which has pre –
defined meaning) enclosed within
angular brackets (< >).
• HTML uses two types of tag element
1. Empty tag
2. Container tag
Empty tag
• Empty tag represents the formatting
options of text such as line break,
horizontal ruler, paragraph setting etc.
• These tags have only beginning tag (start
tag)
• Eg. <BR>, <HR>, <P>
Container tag
• Container tags have a section of text,
which specifies the formatting construction
for all the selected text.
• Container tag has both start tag and End
tag.
• The end tag is same as the start tag with
an addition of a forward slash.
• Eg <B> ………….. </B>
<body> …….. </body>
Attributes
• Attributes are additional information given
to a tag.
• They are used for specific purpose only.
• Attributes are added only to ‘start’ tags and
not to ‘end’ tags.
• Attributes are not enclosed within angular
bracket.
Structure of HTML document
• HTML document has two sections
1. Head Section
2. Body Section
<HTML>
<HEAD>
Head section <TITLE> …………… </TITLE>
</HEAD>
<BODY>
Body section
</BODY>
</HTML>
Head section
• Contains all document header information like title
of the document.
• This section begins and ends with <HEAD> …….
</HEAD> tags.
• The document title is displayed with the help of
<title> ….. </title> tags which is enclosed within
<head> …… </head> tags.
• This title is displayed in the title bar or at the top of
the document.
• It is a quick reference to WWW browsers and other
application that access HTML files.
Eg., 1
<HTML>
<HEAD>
<TITLE> Computer Education </TITLE>
</HEAD>
</HTML>
Eg., 2
<HTML>
<HEAD>
<TITLE> Introduction to HTML </TITLE>
</HEAD>
</HTML>
Body Section
• The body section comes after head
section.
• It includes text, object, images and sound
that gets displayed in the browser window.
• The body section is enclosed with <body>
…. </body> tags.
Comment tags
• Comments are added to the documents for the
benefit of the writer, which helps to understand
the document.
• It is also used to specify the author’s name, copy
right message etc.
• Comments are included anywhere in the
program.
• These comment statements are ignored by the
browser.
• They are given within <!- - and - -> tags
• eg. <!- - This is a title of the web page - ->
Tags
• <BIG> ….. </BIG> - displays the text in a font
larger than the font currently being used.
• <small> …… </small> - displays the text in a
font smaller than the font currently being used.
Eg.<HTML>
<HEAD>
<TITLE> My first html coding </TITLE>
</HEAD>
<BODY>
<BIG> ELECTIVE </BIG>
<SMALL> COMPUTERS IN EDUCATION </SMALL>
</BODY>
</HTML>
<FONT>
• <font> tag is used to specify the font
style, size and colour for a character,
phrase or a range or text to be
displayed.
• <font> …….. </font> tags, encloses the
text.
Attributes of font
FACE
• Font styles displayed in the browser can
be changed using the face attribute.
• Face attribute has a value which is a font
name, enclosed within double quotes.
• If the specified font is not available in the
system, then default font will be assumed.
Size
• The size attribute is enclosed within the font tag
that indicates the size in which the font has to be
displayed.
• The values of size attributes are 1 to 7, where 3
is the default size.
Colour
• This attribute is used for changing the colour of
the text.
• The value of colour attribute is either a colour
name or a RGB code (000000 to FFFFFF).
Example
<HTML>
<HEAD>
<TITLE> My first html coding </TITLE>
</HEAD>
<BODY>
<FONT FACE = “ Arial” SIZE = “5” COLOR = “BLUE”>
ELECTIVE
</FONT>
<SMALL> COMPUTERS IN EDUCATION </SMALL>
</BODY>
</HTML>
More tags on formatting
Bold - The <B> tag is used to display the text thicker
and darker than normal. The end tag is </B>
Italics - To display the text in Italics, <I> tag is used.
The end tag is </I>
Underline - The <U> tag is used to underline the text
in the document. </U> is the end tag.
Center - The text enclosed within <center> …….
</center> tag will be displayed in the center of the
line.
Example
<HTML>
<HEAD>
<TITLE> My first html coding </TITLE>
</HEAD>
<BODY>
<FONT SIZE = “5””>
<B>ELECTIVE </B><BR>
<U>ELECTIVE </U><BR>
<I>ELECTIVE </I><BR>
<Center>ELECTIVE </Center><BR>
</FONT>
<SMALL> COMPUTERS IN EDUCATION </SMALL>
</BODY>
</HTML>
Heading tags
• There are six levels of headings from
heading 1 to heading 6 in HTML.
• The heading tags has a start tag and an
end tag.
• H1, H2, H3, H4, H5, H6 are the six levels,
each having its own appearance.
• The headings tags are used to set apart
document text and section subtitles.
Example
<HTML>
<HEAD>
<TITLE> My first html coding </TITLE>
</HEAD>
<BODY>
<H1>ELECTIVE </H1><BR>
<H2>ELECTIVE </H2><BR>
<H3>ELECTIVE </H3><BR>
<H4>ELECTIVE </H4><BR>
<H5>ELECTIVE </H5><BR>
<H6>ELECTIVE </H6><BR>
</BODY>
</HTML>
Paragraph
• The paragraph tag <P> is used to break
the text into paragraphs.
• The <P> tag is placed at the beginning of
each new paragraph, and the browser
separates the text into paragraphs.
• The end tag </P> is optional.
• The paragraph alignment is also possible
in HTML
The paragraph attribute ‘align’
<P align = “left”> - aligns paragraphs to the
left
<P align = “right”> - aligns paragraphs to the
right
<P align = “center”> - aligns paragraphs to
the center
<P align = “justify”> - justifies the paragraphs
to the page
Example
<HTML>
<HEAD>
<TITLE> My first html coding </TITLE>
</HEAD>
<BODY>
<P align = “left”> To write a HTML document code we
need a text editor or a word processor which saves the documents in
plain, flat, un styled ASCII style text.
<P align = “right”> HTML requires a web browser to
display the document (web page) created using text editor.
<P align = “center”> The Browsers are MS Internet
Explorer, Netscape Navigator, Mosaic, Net cruiser, Mac Web etc.
<P align = “justify”> To write a HTML document code we
need a text editor or a word processor
</BODY>
</HTML>
Line Break
• The browsers normally displays the text in
one line that are included in the body
section.
• The white spaces and carriage returns that
are used in the text editor will be ignored.
• The document that may be perfectly
aligned in the html document will not be
aligned in the browser while it is displayed.
• To avoid this line break is needed.
• The <BR> tag is used to give a line break.
• The text placed next to it will be forced to
start from the left margin of the next line
on the screen.
• The line break element does not give any
blank lines between the text.
• Multiple <BR> tags allow multiple line
breaks.
• It does not have an end tag.
Example
<HTML>
<HEAD>
<TITLE> My first html coding </TITLE>
</HEAD>
<BODY>
<H1> you can</H1>
Do all the good you can, <BR>
In all the places you can, <BR>
To all the people you can.
</BODY>
</HTML>
Horizontal tag
• To draw a horizontal line the <HR> tag is used.
• It does not have an end tag.
• <HR> tag automatically introduces a horizontal
line break.
• The <HR> tag has two attributes “size” and
“noshade”.
• The size attribute is used to specify the thickness
of the line which is in terms of numbers and
enclosed within double quotes and the noshade
attribute displays the line in dark grey.
Example
<HTML>
<HEAD>
<TITLE> horizontal line coding </TITLE>
</HEAD>
<BODY>
<H1> you can</H1>
<HR size = “3”>
<HR size = “25” noshade>
</BODY>
</HTML>
Background colour
• The background colour of the page can be
changed by using the “bgcolor” attribute.
• Bgcolour is one of the attribute of <body>
tag.
• Html allows specifying colours in RGB
colour code (000000 to FFFFFF).
• The first two digit represent red, the next
two green component and the last two
represents blue component.
• Some browser allows the user to use the
colour name directly.
• They allow us to use upto 16 colour
names such as aqua, black, blue, fuchsia,
green, grey, lime, maroon, navy, olive,
purple, red, silver, teal, white and yellow.
• If the background colour is not specified,
the browser assumes default colour
specified while installation.
Eg., <body bgcolour = “RED”> … </body>
Text attribute
• The text attribute is another attribute of
<body> tag.
• It is used to specify the colour in which the
text has to be displayed on the browser.
• The colours used in background colour
can also be applied in this attribute.
Eg., <body text = “yellow” bgcolor = “red”>
……….</body>
• When the colour of the text is changed
using TEXT attribute of <body> tag, then
the change affects all the text.
• When the colour of the text is changed
using COLOR attribute of <FONT> tag,
then the change affects only the text that
are enclosed within the <FONT> tag.
Marquee tag
• The text enclosed within the <MARQUEE> and
</MARQUEE> tag makes the text to scroll from
one end of the window to the other end.
• BGCOLOR and DIRECTION are the two
attributes of MARQUEE tag.
• BGCOLOR specifies the background colour of
the page and DIRECTION specifies the direction
to which the text should scroll.
• Left (or) right (or) up and down (or) down and up
are the directions
• <Marguee> tag works only in internet explorer
Example
<HTML>
<HEAD>
<TITLE> marquee coding </TITLE>
</HEAD>
<BODY>
<MARQUEE Direction = “right”>
Wish you success in coming years
</MARQUEE>
</BODY>
</HTML>
Ad

More Related Content

What's hot (20)

introduction to CSS
introduction to CSSintroduction to CSS
introduction to CSS
Manish jariyal
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
Md. Sirajus Salayhin
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 
Html Slide Part-1
Html Slide Part-1Html Slide Part-1
Html Slide Part-1
AAKASH KUMAR
 
HTML Semantic Elements
HTML Semantic ElementsHTML Semantic Elements
HTML Semantic Elements
Reema
 
HTML PPT.pdf
HTML PPT.pdfHTML PPT.pdf
HTML PPT.pdf
sunnyGupta325328
 
Css
CssCss
Css
Manav Prasad
 
HTML basics
HTML basicsHTML basics
HTML basics
Akhil Kaushik
 
Css
CssCss
Css
Hemant Saini
 
Xml
XmlXml
Xml
Dr. C.V. Suresh Babu
 
Tags in html
Tags in htmlTags in html
Tags in html
Balakumaran Arunachalam
 
Intro Html
Intro HtmlIntro Html
Intro Html
Chidanand Byahatti
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introduction
apnwebdev
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
Sanjeev Kumar
 
Html basics
Html basicsHtml basics
Html basics
mcatahir947
 
Html tags
Html tagsHtml tags
Html tags
sotero66
 
HTML iframe
HTML iframeHTML iframe
HTML iframe
raman156413
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
Himanshu Pathak
 
The Complete HTML
The Complete HTMLThe Complete HTML
The Complete HTML
Rohit Buddabathina
 
Xhtml
XhtmlXhtml
Xhtml
Veena Gadad
 

Similar to Computer language - HTML tags (20)

Standard html tags
Standard html tagsStandard html tags
Standard html tags
baabtra.com - No. 1 supplier of quality freshers
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
Deputy Chief Librarian & Head
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
Deputy Chief Librarian & Head
 
HTML-INTRO.pptx
HTML-INTRO.pptxHTML-INTRO.pptx
HTML-INTRO.pptx
SanjayKumarBahuguna1
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
Himanshu Pathak
 
introduction to html.ppt
introduction to html.pptintroduction to html.ppt
introduction to html.ppt
ShubhamIngale28
 
Html basic
Html basicHtml basic
Html basic
Avi Nash
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
aneebkmct
 
Positioning text
Positioning textPositioning text
Positioning text
nobel mujuji
 
Internship HTML_Day-1 for beggineers.ppt
Internship HTML_Day-1 for beggineers.pptInternship HTML_Day-1 for beggineers.ppt
Internship HTML_Day-1 for beggineers.ppt
testvarun21
 
Html
HtmlHtml
Html
Subahu Jain
 
Html
HtmlHtml
Html
Nandakumar Ganapathy
 
Html (1)
Html (1)Html (1)
Html (1)
smitha273566
 
Basics ogHtml
Basics ogHtml Basics ogHtml
Basics ogHtml
rohitkumar2468
 
Week-1_PPT_WEBAPPS-done.pptx
Week-1_PPT_WEBAPPS-done.pptxWeek-1_PPT_WEBAPPS-done.pptx
Week-1_PPT_WEBAPPS-done.pptx
JuvyIlustrisimo
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
charvivij
 
Introduction to HTML Communication Skills
Introduction to HTML Communication SkillsIntroduction to HTML Communication Skills
Introduction to HTML Communication Skills
GraceChokoli1
 
Html
HtmlHtml
Html
baabtra.com - No. 1 supplier of quality freshers
 
html
htmlhtml
html
Soumya Vijoy
 
Html
HtmlHtml
Html
NithyaD5
 
Ad

More from Dr. I. Uma Maheswari Maheswari (20)

2h. Pedagogy of mathematics part II (numbers and sequence - ex 2.8)
2h. Pedagogy of mathematics   part II (numbers and sequence - ex 2.8)2h. Pedagogy of mathematics   part II (numbers and sequence - ex 2.8)
2h. Pedagogy of mathematics part II (numbers and sequence - ex 2.8)
Dr. I. Uma Maheswari Maheswari
 
2g. Pedagogy of mathematics part II (numbers and sequence - ex 2.7)
2g. Pedagogy of mathematics   part II (numbers and sequence - ex 2.7)2g. Pedagogy of mathematics   part II (numbers and sequence - ex 2.7)
2g. Pedagogy of mathematics part II (numbers and sequence - ex 2.7)
Dr. I. Uma Maheswari Maheswari
 
2f. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.6)
2f. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.6)2f. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.6)
2f. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.6)
Dr. I. Uma Maheswari Maheswari
 
2e. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.5)
2e. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.5)2e. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.5)
2e. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.5)
Dr. I. Uma Maheswari Maheswari
 
2d. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.4)
2d. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.4)2d. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.4)
2d. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.4)
Dr. I. Uma Maheswari Maheswari
 
2c. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.3)
2c. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.3)2c. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.3)
2c. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.3)
Dr. I. Uma Maheswari Maheswari
 
2b. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.2)
2b. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.2)2b. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.2)
2b. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.2)
Dr. I. Uma Maheswari Maheswari
 
2a. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.1)
2a. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.1)2a. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.1)
2a. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.1)
Dr. I. Uma Maheswari Maheswari
 
Computer language - Html forms
Computer language - Html formsComputer language - Html forms
Computer language - Html forms
Dr. I. Uma Maheswari Maheswari
 
computer language - Html frames
computer language - Html framescomputer language - Html frames
computer language - Html frames
Dr. I. Uma Maheswari Maheswari
 
Computer language - Html tables
Computer language - Html tablesComputer language - Html tables
Computer language - Html tables
Dr. I. Uma Maheswari Maheswari
 
Pedagogy - teaching models
Pedagogy - teaching modelsPedagogy - teaching models
Pedagogy - teaching models
Dr. I. Uma Maheswari Maheswari
 
Computer language - html links
Computer language - html   linksComputer language - html   links
Computer language - html links
Dr. I. Uma Maheswari Maheswari
 
Computer language - html images and sounds
Computer language - html   images and soundsComputer language - html   images and sounds
Computer language - html images and sounds
Dr. I. Uma Maheswari Maheswari
 
computer language - html lists
computer language - html listscomputer language - html lists
computer language - html lists
Dr. I. Uma Maheswari Maheswari
 
Computer language - HTML (Hyper Text Markup Language)
Computer language - HTML (Hyper Text Markup Language)Computer language - HTML (Hyper Text Markup Language)
Computer language - HTML (Hyper Text Markup Language)
Dr. I. Uma Maheswari Maheswari
 
X std maths - Relations and functions (ex 1.5 &amp; 1.6)
X std maths -  Relations and functions (ex 1.5 &amp; 1.6)X std maths -  Relations and functions (ex 1.5 &amp; 1.6)
X std maths - Relations and functions (ex 1.5 &amp; 1.6)
Dr. I. Uma Maheswari Maheswari
 
X std maths - Relations and functions (ex 1.4)
X std maths - Relations and functions  (ex 1.4)X std maths - Relations and functions  (ex 1.4)
X std maths - Relations and functions (ex 1.4)
Dr. I. Uma Maheswari Maheswari
 
X std maths - Relations and functions (ex 1.3)
X std maths -  Relations and functions  (ex 1.3)X std maths -  Relations and functions  (ex 1.3)
X std maths - Relations and functions (ex 1.3)
Dr. I. Uma Maheswari Maheswari
 
X std mathematics - Relations and functions (Ex 1.2)
X std mathematics - Relations and functions  (Ex 1.2)X std mathematics - Relations and functions  (Ex 1.2)
X std mathematics - Relations and functions (Ex 1.2)
Dr. I. Uma Maheswari Maheswari
 
2h. Pedagogy of mathematics part II (numbers and sequence - ex 2.8)
2h. Pedagogy of mathematics   part II (numbers and sequence - ex 2.8)2h. Pedagogy of mathematics   part II (numbers and sequence - ex 2.8)
2h. Pedagogy of mathematics part II (numbers and sequence - ex 2.8)
Dr. I. Uma Maheswari Maheswari
 
2g. Pedagogy of mathematics part II (numbers and sequence - ex 2.7)
2g. Pedagogy of mathematics   part II (numbers and sequence - ex 2.7)2g. Pedagogy of mathematics   part II (numbers and sequence - ex 2.7)
2g. Pedagogy of mathematics part II (numbers and sequence - ex 2.7)
Dr. I. Uma Maheswari Maheswari
 
2f. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.6)
2f. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.6)2f. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.6)
2f. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.6)
Dr. I. Uma Maheswari Maheswari
 
2e. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.5)
2e. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.5)2e. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.5)
2e. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.5)
Dr. I. Uma Maheswari Maheswari
 
2d. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.4)
2d. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.4)2d. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.4)
2d. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.4)
Dr. I. Uma Maheswari Maheswari
 
2c. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.3)
2c. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.3)2c. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.3)
2c. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.3)
Dr. I. Uma Maheswari Maheswari
 
2b. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.2)
2b. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.2)2b. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.2)
2b. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.2)
Dr. I. Uma Maheswari Maheswari
 
2a. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.1)
2a. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.1)2a. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.1)
2a. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.1)
Dr. I. Uma Maheswari Maheswari
 
X std maths - Relations and functions (ex 1.5 &amp; 1.6)
X std maths -  Relations and functions (ex 1.5 &amp; 1.6)X std maths -  Relations and functions (ex 1.5 &amp; 1.6)
X std maths - Relations and functions (ex 1.5 &amp; 1.6)
Dr. I. Uma Maheswari Maheswari
 
Ad

Recently uploaded (20)

The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
Celine George
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
CNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscessCNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscess
Mohamed Rizk Khodair
 
E-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26ASE-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26AS
Abinash Palangdar
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
How to Manage Upselling in Odoo 18 Sales
How to Manage Upselling in Odoo 18 SalesHow to Manage Upselling in Odoo 18 Sales
How to Manage Upselling in Odoo 18 Sales
Celine George
 
APGAR SCORE BY sweety Tamanna Mahapatra MSc Pediatric
APGAR SCORE  BY sweety Tamanna Mahapatra MSc PediatricAPGAR SCORE  BY sweety Tamanna Mahapatra MSc Pediatric
APGAR SCORE BY sweety Tamanna Mahapatra MSc Pediatric
SweetytamannaMohapat
 
All About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdfAll About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdf
TechSoup
 
Ancient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian HistoryAncient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian History
Virag Sontakke
 
Transform tomorrow: Master benefits analysis with Gen AI today webinar, 30 A...
Transform tomorrow: Master benefits analysis with Gen AI today webinar,  30 A...Transform tomorrow: Master benefits analysis with Gen AI today webinar,  30 A...
Transform tomorrow: Master benefits analysis with Gen AI today webinar, 30 A...
Association for Project Management
 
Ajanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of HistoryAjanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of History
Virag Sontakke
 
2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx
mansk2
 
*"The Segmented Blueprint: Unlocking Insect Body Architecture"*.pptx
*"The Segmented Blueprint: Unlocking Insect Body Architecture"*.pptx*"The Segmented Blueprint: Unlocking Insect Body Architecture"*.pptx
*"The Segmented Blueprint: Unlocking Insect Body Architecture"*.pptx
Arshad Shaikh
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast BrooklynBridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
i4jd41bk
 
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptxU3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
Mayuri Chavan
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon DolabaniHistory Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
fruinkamel7m
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
Celine George
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
CNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscessCNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscess
Mohamed Rizk Khodair
 
E-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26ASE-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26AS
Abinash Palangdar
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
How to Manage Upselling in Odoo 18 Sales
How to Manage Upselling in Odoo 18 SalesHow to Manage Upselling in Odoo 18 Sales
How to Manage Upselling in Odoo 18 Sales
Celine George
 
APGAR SCORE BY sweety Tamanna Mahapatra MSc Pediatric
APGAR SCORE  BY sweety Tamanna Mahapatra MSc PediatricAPGAR SCORE  BY sweety Tamanna Mahapatra MSc Pediatric
APGAR SCORE BY sweety Tamanna Mahapatra MSc Pediatric
SweetytamannaMohapat
 
All About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdfAll About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdf
TechSoup
 
Ancient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian HistoryAncient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian History
Virag Sontakke
 
Transform tomorrow: Master benefits analysis with Gen AI today webinar, 30 A...
Transform tomorrow: Master benefits analysis with Gen AI today webinar,  30 A...Transform tomorrow: Master benefits analysis with Gen AI today webinar,  30 A...
Transform tomorrow: Master benefits analysis with Gen AI today webinar, 30 A...
Association for Project Management
 
Ajanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of HistoryAjanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of History
Virag Sontakke
 
2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx
mansk2
 
*"The Segmented Blueprint: Unlocking Insect Body Architecture"*.pptx
*"The Segmented Blueprint: Unlocking Insect Body Architecture"*.pptx*"The Segmented Blueprint: Unlocking Insect Body Architecture"*.pptx
*"The Segmented Blueprint: Unlocking Insect Body Architecture"*.pptx
Arshad Shaikh
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast BrooklynBridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
i4jd41bk
 
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptxU3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
Mayuri Chavan
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon DolabaniHistory Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
fruinkamel7m
 

Computer language - HTML tags

  • 1. HTML Tags By Dr. I. Uma Maheswari iuma_maheswari@yahoo.co.in
  • 2. Tags • Tags also called as markups, instruct the browser how to display HTML document. • It consists of a keyword (which has pre – defined meaning) enclosed within angular brackets (< >). • HTML uses two types of tag element 1. Empty tag 2. Container tag
  • 3. Empty tag • Empty tag represents the formatting options of text such as line break, horizontal ruler, paragraph setting etc. • These tags have only beginning tag (start tag) • Eg. <BR>, <HR>, <P>
  • 4. Container tag • Container tags have a section of text, which specifies the formatting construction for all the selected text. • Container tag has both start tag and End tag. • The end tag is same as the start tag with an addition of a forward slash. • Eg <B> ………….. </B> <body> …….. </body>
  • 5. Attributes • Attributes are additional information given to a tag. • They are used for specific purpose only. • Attributes are added only to ‘start’ tags and not to ‘end’ tags. • Attributes are not enclosed within angular bracket.
  • 6. Structure of HTML document • HTML document has two sections 1. Head Section 2. Body Section <HTML> <HEAD> Head section <TITLE> …………… </TITLE> </HEAD> <BODY> Body section </BODY> </HTML>
  • 7. Head section • Contains all document header information like title of the document. • This section begins and ends with <HEAD> ……. </HEAD> tags. • The document title is displayed with the help of <title> ….. </title> tags which is enclosed within <head> …… </head> tags. • This title is displayed in the title bar or at the top of the document. • It is a quick reference to WWW browsers and other application that access HTML files.
  • 8. Eg., 1 <HTML> <HEAD> <TITLE> Computer Education </TITLE> </HEAD> </HTML> Eg., 2 <HTML> <HEAD> <TITLE> Introduction to HTML </TITLE> </HEAD> </HTML>
  • 9. Body Section • The body section comes after head section. • It includes text, object, images and sound that gets displayed in the browser window. • The body section is enclosed with <body> …. </body> tags.
  • 10. Comment tags • Comments are added to the documents for the benefit of the writer, which helps to understand the document. • It is also used to specify the author’s name, copy right message etc. • Comments are included anywhere in the program. • These comment statements are ignored by the browser. • They are given within <!- - and - -> tags • eg. <!- - This is a title of the web page - ->
  • 11. Tags • <BIG> ….. </BIG> - displays the text in a font larger than the font currently being used. • <small> …… </small> - displays the text in a font smaller than the font currently being used. Eg.<HTML> <HEAD> <TITLE> My first html coding </TITLE> </HEAD> <BODY> <BIG> ELECTIVE </BIG> <SMALL> COMPUTERS IN EDUCATION </SMALL> </BODY> </HTML>
  • 12. <FONT> • <font> tag is used to specify the font style, size and colour for a character, phrase or a range or text to be displayed. • <font> …….. </font> tags, encloses the text.
  • 13. Attributes of font FACE • Font styles displayed in the browser can be changed using the face attribute. • Face attribute has a value which is a font name, enclosed within double quotes. • If the specified font is not available in the system, then default font will be assumed.
  • 14. Size • The size attribute is enclosed within the font tag that indicates the size in which the font has to be displayed. • The values of size attributes are 1 to 7, where 3 is the default size. Colour • This attribute is used for changing the colour of the text. • The value of colour attribute is either a colour name or a RGB code (000000 to FFFFFF).
  • 15. Example <HTML> <HEAD> <TITLE> My first html coding </TITLE> </HEAD> <BODY> <FONT FACE = “ Arial” SIZE = “5” COLOR = “BLUE”> ELECTIVE </FONT> <SMALL> COMPUTERS IN EDUCATION </SMALL> </BODY> </HTML>
  • 16. More tags on formatting Bold - The <B> tag is used to display the text thicker and darker than normal. The end tag is </B> Italics - To display the text in Italics, <I> tag is used. The end tag is </I> Underline - The <U> tag is used to underline the text in the document. </U> is the end tag. Center - The text enclosed within <center> ……. </center> tag will be displayed in the center of the line.
  • 17. Example <HTML> <HEAD> <TITLE> My first html coding </TITLE> </HEAD> <BODY> <FONT SIZE = “5””> <B>ELECTIVE </B><BR> <U>ELECTIVE </U><BR> <I>ELECTIVE </I><BR> <Center>ELECTIVE </Center><BR> </FONT> <SMALL> COMPUTERS IN EDUCATION </SMALL> </BODY> </HTML>
  • 18. Heading tags • There are six levels of headings from heading 1 to heading 6 in HTML. • The heading tags has a start tag and an end tag. • H1, H2, H3, H4, H5, H6 are the six levels, each having its own appearance. • The headings tags are used to set apart document text and section subtitles.
  • 19. Example <HTML> <HEAD> <TITLE> My first html coding </TITLE> </HEAD> <BODY> <H1>ELECTIVE </H1><BR> <H2>ELECTIVE </H2><BR> <H3>ELECTIVE </H3><BR> <H4>ELECTIVE </H4><BR> <H5>ELECTIVE </H5><BR> <H6>ELECTIVE </H6><BR> </BODY> </HTML>
  • 20. Paragraph • The paragraph tag <P> is used to break the text into paragraphs. • The <P> tag is placed at the beginning of each new paragraph, and the browser separates the text into paragraphs. • The end tag </P> is optional. • The paragraph alignment is also possible in HTML
  • 21. The paragraph attribute ‘align’ <P align = “left”> - aligns paragraphs to the left <P align = “right”> - aligns paragraphs to the right <P align = “center”> - aligns paragraphs to the center <P align = “justify”> - justifies the paragraphs to the page
  • 22. Example <HTML> <HEAD> <TITLE> My first html coding </TITLE> </HEAD> <BODY> <P align = “left”> To write a HTML document code we need a text editor or a word processor which saves the documents in plain, flat, un styled ASCII style text. <P align = “right”> HTML requires a web browser to display the document (web page) created using text editor. <P align = “center”> The Browsers are MS Internet Explorer, Netscape Navigator, Mosaic, Net cruiser, Mac Web etc. <P align = “justify”> To write a HTML document code we need a text editor or a word processor </BODY> </HTML>
  • 23. Line Break • The browsers normally displays the text in one line that are included in the body section. • The white spaces and carriage returns that are used in the text editor will be ignored. • The document that may be perfectly aligned in the html document will not be aligned in the browser while it is displayed. • To avoid this line break is needed.
  • 24. • The <BR> tag is used to give a line break. • The text placed next to it will be forced to start from the left margin of the next line on the screen. • The line break element does not give any blank lines between the text. • Multiple <BR> tags allow multiple line breaks. • It does not have an end tag.
  • 25. Example <HTML> <HEAD> <TITLE> My first html coding </TITLE> </HEAD> <BODY> <H1> you can</H1> Do all the good you can, <BR> In all the places you can, <BR> To all the people you can. </BODY> </HTML>
  • 26. Horizontal tag • To draw a horizontal line the <HR> tag is used. • It does not have an end tag. • <HR> tag automatically introduces a horizontal line break. • The <HR> tag has two attributes “size” and “noshade”. • The size attribute is used to specify the thickness of the line which is in terms of numbers and enclosed within double quotes and the noshade attribute displays the line in dark grey.
  • 27. Example <HTML> <HEAD> <TITLE> horizontal line coding </TITLE> </HEAD> <BODY> <H1> you can</H1> <HR size = “3”> <HR size = “25” noshade> </BODY> </HTML>
  • 28. Background colour • The background colour of the page can be changed by using the “bgcolor” attribute. • Bgcolour is one of the attribute of <body> tag. • Html allows specifying colours in RGB colour code (000000 to FFFFFF). • The first two digit represent red, the next two green component and the last two represents blue component.
  • 29. • Some browser allows the user to use the colour name directly. • They allow us to use upto 16 colour names such as aqua, black, blue, fuchsia, green, grey, lime, maroon, navy, olive, purple, red, silver, teal, white and yellow. • If the background colour is not specified, the browser assumes default colour specified while installation. Eg., <body bgcolour = “RED”> … </body>
  • 30. Text attribute • The text attribute is another attribute of <body> tag. • It is used to specify the colour in which the text has to be displayed on the browser. • The colours used in background colour can also be applied in this attribute. Eg., <body text = “yellow” bgcolor = “red”> ……….</body>
  • 31. • When the colour of the text is changed using TEXT attribute of <body> tag, then the change affects all the text. • When the colour of the text is changed using COLOR attribute of <FONT> tag, then the change affects only the text that are enclosed within the <FONT> tag.
  • 32. Marquee tag • The text enclosed within the <MARQUEE> and </MARQUEE> tag makes the text to scroll from one end of the window to the other end. • BGCOLOR and DIRECTION are the two attributes of MARQUEE tag. • BGCOLOR specifies the background colour of the page and DIRECTION specifies the direction to which the text should scroll. • Left (or) right (or) up and down (or) down and up are the directions • <Marguee> tag works only in internet explorer
  • 33. Example <HTML> <HEAD> <TITLE> marquee coding </TITLE> </HEAD> <BODY> <MARQUEE Direction = “right”> Wish you success in coming years </MARQUEE> </BODY> </HTML>
  翻译: