SlideShare a Scribd company logo
1 of 16
HTML  Hyper Text Markup Language. HTML is made up of
elements or tags and attributes which tells browsers how to display
them. The extension name of HTML document is .html or .htm.
Tags  Tags are the commands that indicates how part of a web
page should be displayed. Tags are enclosed in angular brackets < >
Syntax :- To start a HTML tag -- <tag-name>
To end a HTML tag -- </tag-name>
There are two types of tags in HTML :-
1. Container tag :- HTML tag that has a starting as well as
ending tag. The container tags affect everything that comes
between their starting and ending tag.
2. Empty tag :- HTML tag that require just a starting tag and not
an ending tag. Empty elements just carry out their specific job.
Created by -- Neelima Kamboj
<html>
<head>
<title> Title of the page </title>
</head>
<body>
Contents of the HTML page
</body>
</html>
Head
Body
The HTML program design
Title of the page will
be displayed here
Contents of the HTML page will be
displayed here
Created by -- Neelima Kamboj
<html>
<head>
<title> St. Xavier School </title>
</head>
<body>
Welcome to class 10th of St. Xavier School
</body>
</html>
Heading of
web page
Body of the
web page
Created by -- Neelima Kamboj
Line Break Tag
<BR> tag is used to insert a line break into the text of web page.
This is an empty tag that is it has only start tag no end tag.
<html>
<body>
Welcome
To <br>
HTML
Programming
</body>
</html>
Default heading used by Internet Explorer if user
does not specify the heading
Created by -- Neelima Kamboj
Body Tag Attributes
• BACKGROUND ---
displays the picture as the background of the page.
syntax - <BODY BACKGROUND = system-path>
example - <BODY BACKGROUND = “C:welcome.gif”>
• BGCOLOR --- changes the back color of the web page.
syntax - <BODY BGCOLOR= ColorName or ColorCode>
example - <BODY BGCOLOR= Red>
<BODY BGCOLOR= f0f0ab>
• TEXT ---
changes the fore color or the text color of the web page.
syntax - <BODY TEXT = ColorName or ColorCode>
example - <BODY TEXT= blue>
<BODY TEXT= ab123d>
Created by -- Neelima Kamboj
<html>
<head>
<title> St. Xavier School </title>
</head>
<body bgcolor = yellow text = red >
Welcome to class 10th of St. Xavier
School
</body>
</html>
Final Output
Created by -- Neelima Kamboj
Heading Tags
There are 6 levels of headings in HTML
ranging from h1 for the biggest important,
to h6 for the smallest important.
Syntax :- <Hno> type the heading contents </Hno>
Example :- <h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
Created by -- Neelima Kamboj
<html>
<head>
<title> Heading tags </title>
</head>
<body bgcolor=black text=white >
<h1> CLASS-XII </h1>
<h2> CLASS-XII </h2>
<h3> CLASS-XII </h3>
<h4> CLASS-XII </h4>
<h5> CLASS-XII </h5>
<h6> CLASS-XII </h6>
</body>
</html>
Created by -- Neelima Kamboj
Font Tag
The Font tag is used to change the font size, name and color of text
enclosed in it. It is a container tag.
Attributes :-
1. SIZE --- Changes the size of text. The value must be between pixels 1 and 7.
The size can be given an absolute value (example: 3,4) or
relative value (example : +3, -2). By default size is 1 pixel.
2. COLOR --- Changes the color of the text.
3. FACE --- Changes the font type of the text.
Syntax:- <FONT SIZE=value COLOR=color FACE= “font-names” >
Example :-
<font size=2 face="Times new Roman" color=red> HELLO </font>
Created by -- Neelima Kamboj
<html>
<head>
<title> Text Formatting Tag </title>
</head>
<body>
<font size=2 face="Times new Roman" color=red> HELLO </font>
<br>
<font size=+4 face="monotype corsiva" color=abc123> HELLO </font>
</body>
</html>
Created by -- Neelima Kamboj
Syntax Meaning Example Output
<b>text</b>
writes text as
bold.
<b>Welcome</b> Welcome
<i>text</i>
writes text in
italics.
<i>Welcome</i> Welcome
<u>text</u>
writes
underlined
text
<u>Welcome</u> Welcome
<s>text</s>
strikes a line
through the
text.
<s>Bye</s> Bye
Text Formatting Tags
Created by -- Neelima Kamboj
<sub>text</sub> Sub Scripts the text H<sub>2</sub> H2
<sup>text</sup> Super Scripts the text A<sup>2</sup> A2
Text Formatting Tags
Syntax Meaning Example Output
<big>text</big> increase the size by one <big>HI</big> HI
<small>text</small> decrease the size by one <small>HI</small> HI
Text Formatting Tags
Created by -- Neelima Kamboj
Lists
There are two types of lists in HTML Unordered Lists and Ordered Lists
Unordered List --- also known as bulleted list or un-numbered list.
<UL> tag is used to create a bulleted list. It is a container tag.
The list items can be added using the <LI> tag which is an empty tag.
Attribute of <UL> tag
TYPE -- it is used to change the bullet shape. HTML provides only three bullets
value Shape
disc 
circle 
square 
Syntax :- <UL TYPE=value>
<LI> text
<LI> text
…
</UL>
Created by -- Neelima Kamboj
Created by -- Neelima Kamboj
Ordered List --- also known as numbered list.
<OL> tag is used to create a numbered list. It is a container tag.
The list items can be added using the <LI> tag which is an empty tag.
Attributes
1. TYPE -- This attribute is used to change the numbering style.
There are five types of number styles.
2. START -- This attribute sets the starting value of the list items.
The value should always be a number irrespective of the type used.
Value Meaning Samples
1 Plain numbers 1, 2, 3, 4, 5
A Capital Letters A, B, C, D, E
a Small Letters a, b, c, d, e
I Capital Roman Numbers I, II, III, IV, V
i Small Roman Numbers i, ii, iii, iv, v
Syntax
<OL TYPE=value start=value>
<LI> text
<LI> text
…
</OL>
Created by -- Neelima Kamboj
Created by -- Neelima Kamboj

More Related Content

What's hot

WEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTMLWEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTMLSneha Mukherjee
 
HTML Web design english & sinhala mix note
HTML Web design english & sinhala mix noteHTML Web design english & sinhala mix note
HTML Web design english & sinhala mix noteMahinda Gamage
 
Web Development Using CSS3
Web Development Using CSS3Web Development Using CSS3
Web Development Using CSS3Anjan Mahanta
 
Web Development Using CSS3
Web Development Using CSS3Web Development Using CSS3
Web Development Using CSS3Anjan Mahanta
 
Origins and evolution of HTML and XHTML
Origins and evolution of HTML and XHTMLOrigins and evolution of HTML and XHTML
Origins and evolution of HTML and XHTMLHowpk
 
Elements of html powerpoint
Elements of html powerpointElements of html powerpoint
Elements of html powerpointAnastasia1993
 
3. tutorial html web desain
3. tutorial html web desain3. tutorial html web desain
3. tutorial html web desainfaizibra
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)Ahsan Rahim
 
215077679 introduction to HTML
215077679  introduction to HTML215077679  introduction to HTML
215077679 introduction to HTMLXolani Madlopha
 
HTML Link - Image - Comments
HTML  Link - Image - CommentsHTML  Link - Image - Comments
HTML Link - Image - CommentsHameda Hurmat
 

What's hot (20)

Html 5
Html 5Html 5
Html 5
 
Session4
Session4Session4
Session4
 
WEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTMLWEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTML
 
H T M L Tutorial
H T M L TutorialH T M L Tutorial
H T M L Tutorial
 
HTML Web design english & sinhala mix note
HTML Web design english & sinhala mix noteHTML Web design english & sinhala mix note
HTML Web design english & sinhala mix note
 
Web Development Using CSS3
Web Development Using CSS3Web Development Using CSS3
Web Development Using CSS3
 
Web Development Using CSS3
Web Development Using CSS3Web Development Using CSS3
Web Development Using CSS3
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
HTML
HTMLHTML
HTML
 
Introhtml 2
Introhtml 2Introhtml 2
Introhtml 2
 
Origins and evolution of HTML and XHTML
Origins and evolution of HTML and XHTMLOrigins and evolution of HTML and XHTML
Origins and evolution of HTML and XHTML
 
Elements of html powerpoint
Elements of html powerpointElements of html powerpoint
Elements of html powerpoint
 
3. tutorial html web desain
3. tutorial html web desain3. tutorial html web desain
3. tutorial html web desain
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
 
html
htmlhtml
html
 
215077679 introduction to HTML
215077679  introduction to HTML215077679  introduction to HTML
215077679 introduction to HTML
 
Html
HtmlHtml
Html
 
Html 5 tags
Html  5 tagsHtml  5 tags
Html 5 tags
 
HTML Link - Image - Comments
HTML  Link - Image - CommentsHTML  Link - Image - Comments
HTML Link - Image - Comments
 

Similar to HTML Elements, Tags, Attributes and List Formatting

introduction to html.ppt
introduction to html.pptintroduction to html.ppt
introduction to html.pptShubhamIngale28
 
Ankit (221348051) BCA-Aiml.pptx
Ankit (221348051) BCA-Aiml.pptxAnkit (221348051) BCA-Aiml.pptx
Ankit (221348051) BCA-Aiml.pptxHKShab
 
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfHSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfAAFREEN SHAIKH
 
Basic HTML
Basic HTMLBasic HTML
Basic HTMLSayan De
 
Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tagsSara Corpuz
 
Chapter 6 html
Chapter 6 htmlChapter 6 html
Chapter 6 htmlhome
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part IUnaib Aslam
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTMLsatvirsandhu9
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to htmlpalhaftab
 
WEB PROGRAMMING- Web page creation using HTML Tags
WEB PROGRAMMING-  Web page creation using HTML TagsWEB PROGRAMMING-  Web page creation using HTML Tags
WEB PROGRAMMING- Web page creation using HTML Tagsjananisairam
 
Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup LanguageNaveeth Babu
 

Similar to HTML Elements, Tags, Attributes and List Formatting (20)

Html ppt
Html pptHtml ppt
Html ppt
 
Lectuer html1
Lectuer  html1Lectuer  html1
Lectuer html1
 
html tutorial
html tutorialhtml tutorial
html tutorial
 
html
htmlhtml
html
 
introduction to html.ppt
introduction to html.pptintroduction to html.ppt
introduction to html.ppt
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Learn HTML Easier
Learn HTML EasierLearn HTML Easier
Learn HTML Easier
 
Ankit (221348051) BCA-Aiml.pptx
Ankit (221348051) BCA-Aiml.pptxAnkit (221348051) BCA-Aiml.pptx
Ankit (221348051) BCA-Aiml.pptx
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfHSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tags
 
Chapter 6 html
Chapter 6 htmlChapter 6 html
Chapter 6 html
 
Html1
Html1Html1
Html1
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part I
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
WEB PROGRAMMING- Web page creation using HTML Tags
WEB PROGRAMMING-  Web page creation using HTML TagsWEB PROGRAMMING-  Web page creation using HTML Tags
WEB PROGRAMMING- Web page creation using HTML Tags
 
Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup Language
 

Recently uploaded

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 

Recently uploaded (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

HTML Elements, Tags, Attributes and List Formatting

  • 1. HTML  Hyper Text Markup Language. HTML is made up of elements or tags and attributes which tells browsers how to display them. The extension name of HTML document is .html or .htm. Tags  Tags are the commands that indicates how part of a web page should be displayed. Tags are enclosed in angular brackets < > Syntax :- To start a HTML tag -- <tag-name> To end a HTML tag -- </tag-name> There are two types of tags in HTML :- 1. Container tag :- HTML tag that has a starting as well as ending tag. The container tags affect everything that comes between their starting and ending tag. 2. Empty tag :- HTML tag that require just a starting tag and not an ending tag. Empty elements just carry out their specific job. Created by -- Neelima Kamboj
  • 2. <html> <head> <title> Title of the page </title> </head> <body> Contents of the HTML page </body> </html> Head Body The HTML program design Title of the page will be displayed here Contents of the HTML page will be displayed here Created by -- Neelima Kamboj
  • 3. <html> <head> <title> St. Xavier School </title> </head> <body> Welcome to class 10th of St. Xavier School </body> </html> Heading of web page Body of the web page Created by -- Neelima Kamboj
  • 4. Line Break Tag <BR> tag is used to insert a line break into the text of web page. This is an empty tag that is it has only start tag no end tag. <html> <body> Welcome To <br> HTML Programming </body> </html> Default heading used by Internet Explorer if user does not specify the heading Created by -- Neelima Kamboj
  • 5. Body Tag Attributes • BACKGROUND --- displays the picture as the background of the page. syntax - <BODY BACKGROUND = system-path> example - <BODY BACKGROUND = “C:welcome.gif”> • BGCOLOR --- changes the back color of the web page. syntax - <BODY BGCOLOR= ColorName or ColorCode> example - <BODY BGCOLOR= Red> <BODY BGCOLOR= f0f0ab> • TEXT --- changes the fore color or the text color of the web page. syntax - <BODY TEXT = ColorName or ColorCode> example - <BODY TEXT= blue> <BODY TEXT= ab123d> Created by -- Neelima Kamboj
  • 6. <html> <head> <title> St. Xavier School </title> </head> <body bgcolor = yellow text = red > Welcome to class 10th of St. Xavier School </body> </html> Final Output Created by -- Neelima Kamboj
  • 7. Heading Tags There are 6 levels of headings in HTML ranging from h1 for the biggest important, to h6 for the smallest important. Syntax :- <Hno> type the heading contents </Hno> Example :- <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6> Created by -- Neelima Kamboj
  • 8. <html> <head> <title> Heading tags </title> </head> <body bgcolor=black text=white > <h1> CLASS-XII </h1> <h2> CLASS-XII </h2> <h3> CLASS-XII </h3> <h4> CLASS-XII </h4> <h5> CLASS-XII </h5> <h6> CLASS-XII </h6> </body> </html> Created by -- Neelima Kamboj
  • 9. Font Tag The Font tag is used to change the font size, name and color of text enclosed in it. It is a container tag. Attributes :- 1. SIZE --- Changes the size of text. The value must be between pixels 1 and 7. The size can be given an absolute value (example: 3,4) or relative value (example : +3, -2). By default size is 1 pixel. 2. COLOR --- Changes the color of the text. 3. FACE --- Changes the font type of the text. Syntax:- <FONT SIZE=value COLOR=color FACE= “font-names” > Example :- <font size=2 face="Times new Roman" color=red> HELLO </font> Created by -- Neelima Kamboj
  • 10. <html> <head> <title> Text Formatting Tag </title> </head> <body> <font size=2 face="Times new Roman" color=red> HELLO </font> <br> <font size=+4 face="monotype corsiva" color=abc123> HELLO </font> </body> </html> Created by -- Neelima Kamboj
  • 11. Syntax Meaning Example Output <b>text</b> writes text as bold. <b>Welcome</b> Welcome <i>text</i> writes text in italics. <i>Welcome</i> Welcome <u>text</u> writes underlined text <u>Welcome</u> Welcome <s>text</s> strikes a line through the text. <s>Bye</s> Bye Text Formatting Tags Created by -- Neelima Kamboj
  • 12. <sub>text</sub> Sub Scripts the text H<sub>2</sub> H2 <sup>text</sup> Super Scripts the text A<sup>2</sup> A2 Text Formatting Tags Syntax Meaning Example Output <big>text</big> increase the size by one <big>HI</big> HI <small>text</small> decrease the size by one <small>HI</small> HI Text Formatting Tags Created by -- Neelima Kamboj
  • 13. Lists There are two types of lists in HTML Unordered Lists and Ordered Lists Unordered List --- also known as bulleted list or un-numbered list. <UL> tag is used to create a bulleted list. It is a container tag. The list items can be added using the <LI> tag which is an empty tag. Attribute of <UL> tag TYPE -- it is used to change the bullet shape. HTML provides only three bullets value Shape disc  circle  square  Syntax :- <UL TYPE=value> <LI> text <LI> text … </UL> Created by -- Neelima Kamboj
  • 14. Created by -- Neelima Kamboj
  • 15. Ordered List --- also known as numbered list. <OL> tag is used to create a numbered list. It is a container tag. The list items can be added using the <LI> tag which is an empty tag. Attributes 1. TYPE -- This attribute is used to change the numbering style. There are five types of number styles. 2. START -- This attribute sets the starting value of the list items. The value should always be a number irrespective of the type used. Value Meaning Samples 1 Plain numbers 1, 2, 3, 4, 5 A Capital Letters A, B, C, D, E a Small Letters a, b, c, d, e I Capital Roman Numbers I, II, III, IV, V i Small Roman Numbers i, ii, iii, iv, v Syntax <OL TYPE=value start=value> <LI> text <LI> text … </OL> Created by -- Neelima Kamboj
  • 16. Created by -- Neelima Kamboj