SlideShare a Scribd company logo
WEB PROGRAMMING
Mrs.R.SABITHA .,M.Sc.,M.Phil.,
Assistant Professor,
Department of Computer Science(SF)
V.V.Vanniaperumal College for Women,
Virudhunagar.
TOPICS
• Introduction to HTML
• Heading Tags
• Formatting Tags
• Order and Unorder list creation
Introduction to HTML
• HTML is a language for describing web pages.
• HTML stands
for Hyper Text Markup Language
• HTML is not a programming language, it is
a markup language
• A markup language is a set of markup tags
• HTML uses markup tags to describe web
pages
HTML TERMINOLGY
Some commonly used terms in HTML are:
Tags: Tags are always written within angles brackets
e.g.<HTML> tag indicates the start of an HTML document .
HTML tag can be two types.
They are
 Paired Tags : A tag is said to be a paired tag if text is placed between a
tag and its companions tag.In paired tag ,the first tag is referred to as
opening tag and the second tag is referred to as closing tag.
 Unpaired Tags: An unpaired tag does not have a companion tag
.unpaired tag also known as singular or Stand-Alone tags
e.g:<br>,<hr> etc.
HOW TO CREATE AN HTML DOCUMENT
The essential tags that are required to create a HTML document are:
• <HTML>.............</HTML>
• <HEAD>.............</HEAD>
• <BODY>.............</BODY>
• <HTML>
• <HEAD>
• .............
• .............
• .............
• </HEAD>
• <BODY>
• .............
• .............
• .............
• </BODY>
• </HTML>
An HTML document has two distinct parts HEAD
and BODY
HEAD Tag <HEAD>
• HEAD tag comes after the HTML start tag. It
contains TITLE tag to give the document a title
that displays on the browsers title bar at the
top. The Format is:
<HEAD>
<TITLE>
Your title goes here
</TITLE>
</HEAD>
BODY Tag <BODY>
• The BODY tag contains all the text and graphics of the
document with all the HTML tags that are used for control
and formatting of the page.
The Format is:
<BODY>
Your Document goes here
</BODY>
An HTML document, web page can be created using a text
editor,
Notepad or WordPad. All the HTML documents should have the
extension .htm or html. It require a web browser like Internet
Explorer or Netscape Navigator/Communicator to view the
document.
Attributes used with <BODY>
• BGCOLOR: used to set the background color for the document
Example:
<BODY BGCOLOR="yellow">
Your document text goes here.
</BODY>
• TEXT: used to set the color of the text of the document Example:
<BODY TEXT="red">Introduction to HTML:: 77
Document text changed to red color
</BODY>
Document text changed to red color
Introduction to HTML:: 77
Follow the steps to create and
view in browser
Step-1: Open Notepad
Step-2: Enter the following lines of code:
<HTML>
<HEAD>
<TITLE>
My first Page
</TITLE>
</HEAD>
<BODY>
WELCOME TO MY FIRST WEB PAGE
</BODY>
</HTML>
Saving and Viewing a HTML
Document
• Step-3: Save the file as myfirstpage.html (go to
File-Save As give File name: myfirstpage.html-
choose save as type: All Files-click save)
• Step-4: Viewing document in web browser
(open Internet Explorer-click on File-Open-
Browse-select the file myfirstpage.html-click
open-click ok
Output
Formatting Tags
Boldface <B>: displays text in BOLD
Example: Welcome to the <B> Internet World </B>
Output: Welcome to the Internet World
Italics <I>: displays text in Italic
Example: Welcome to the <I> Internet World </I>
Output: Welcome to the Internet World
Formatting Tags
• Subscript <SUB>: displays text in Subscript
• Superscript <SUP>: displays text in Superscript
• Small <SMALL>: displays text in smaller font as
compared to normal font
• Big <BIG>: displays text in larger font as compared
to normal font
• Underline<U>specifies that the enclosed text be
underline
Example:<U> hello</U>
Output: hello
MARQUEE TAG
• This tag is used text horizontally across the
screen.it is mainly used to deliver a specific
message to the visitor or to scroll Ads on a
page.
Example:
• <marquee> hello world </marquee>
Attributes of Marquee tag
• Bgcolor : Sets the background color of the
marquee.
• Direction :Sets the direction of the marquee box
to either left-to-right, right-to-left, up-to-down
and down-to-up.
• Width: This sets how wide the marquee should
be.
• Loop: This sets how many times the marquee
should 'Loop' its text. Each trip counts as one
loop.
HEADING: <H1>.............<H6>tags
HTML has six header tags
<H1>, <H2>...........<H6> used to specify
section headings. Text with header tags is
displayed in larger and bolder fonts than
the normal body text by a web browser.
Every .header leaves a blank line above
and below it when displayed in browse.
Example: An HTML document, headings.html shows
the different section headings
<HTML>
<HEAD>
<TITLE>
Section Heading
</TITLE>
</HEAD>
<BODY>
<H1> This is Section Heading 1 </H1>
<H2> This is Section Heading 2 </H2>
<H3> This is Section Heading 3 </H3>
<H4> This is Section Heading 4 </H4>
<H5> This is Section Heading 5 </H5>
<H6> This is Section Heading 6 </H6>
</BODY>
</HTML>
Output of HTML document
This is Section Heading 1
This is Section Heading 2
This is Section Heading 3
This is Section Heading 4
This is Section Heading 5
This is Section Heading 6
List Creation
Unorder LIST
Lists – un-numbered
• Unnumbered Lists:
<UL>
<LI> apples </LI>
<LI> bananas </LI>
<LI> grapefruit </LI>
</UL>
• Unnumbered Lists with
different pointer types:
<UL type="square">
<LI> oranges </LI>
<LI> peaches </LI>
<LI> grapes </LI>
</UL>
type="square"
type="disc"
type="circle"
Output
 apples
 bananas
 grapefruit
List Creation
• Lists - numbered
• Numbered Lists:
<OL>
<LI> oranges </LI>
<LI> peaches </LI>
<LI> grapes </LI>
</OL>
Output
4. oranges
5. peaches
6. grapes
• Numbered Lists that
starts with 4:
<OL start="4">
<LI> oranges </LI>
<LI> peaches </LI>
<LI> grapes </LI>
</OL>
Order and Unorder List
Note :
• Use the start and type attributes to
customize your lists. It is possible to make
lists of lists, which is helpful for creating
some items, such as outlines.
THANK YOU
Ad

More Related Content

Similar to WEB PROGRAMMING- Web page creation using HTML Tags (20)

Introduction to HTML for under-graduate studnets
Introduction to HTML for under-graduate studnetsIntroduction to HTML for under-graduate studnets
Introduction to HTML for under-graduate studnets
debasisdas225831
 
introdution-to-html building website using HTML
introdution-to-html building website using HTMLintrodution-to-html building website using HTML
introdution-to-html building website using HTML
NagarajKalligudd1
 
introdution-to000000000000000000000-html.ppt
introdution-to000000000000000000000-html.pptintrodution-to000000000000000000000-html.ppt
introdution-to000000000000000000000-html.ppt
Sandeep Mathur
 
introdution to hypertext machine learning language
introdution to hypertext machine learning languageintrodution to hypertext machine learning language
introdution to hypertext machine learning language
naren adapa
 
introdution-to-htmlppt.ppt
introdution-to-htmlppt.pptintrodution-to-htmlppt.ppt
introdution-to-htmlppt.ppt
navyar41
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
SanthoshReddy841587
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
Sri Latha
 
summary html.ppt
summary html.pptsummary html.ppt
summary html.ppt
ramansingh911318
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
SameerPrajapati18
 
introdution-to-html (1).ppt
introdution-to-html (1).pptintrodution-to-html (1).ppt
introdution-to-html (1).ppt
F3ZONE1
 
introdution-to-html programming and dhtml
introdution-to-html programming and dhtmlintrodution-to-html programming and dhtml
introdution-to-html programming and dhtml
santhosh sriprada
 
HTML is a markup language used by the browser to manipulate text, images, and...
HTML is a markup language used by the browser to manipulate text, images, and...HTML is a markup language used by the browser to manipulate text, images, and...
HTML is a markup language used by the browser to manipulate text, images, and...
ssuser6478a8
 
introdution-to-html.ppt NJBJGHGJHGGJGJG
introdution-to-html.ppt  NJBJGHGJHGGJGJGintrodution-to-html.ppt  NJBJGHGJHGGJGJG
introdution-to-html.ppt NJBJGHGJHGGJGJG
AMRITHA16
 
introduction to html for beginners and youth
introduction to html for beginners and youthintroduction to html for beginners and youth
introduction to html for beginners and youth
ahoveida
 
html.pptx
html.pptxhtml.pptx
html.pptx
ShivaPrabhakar2
 
introduction to html.ppt
introduction to html.pptintroduction to html.ppt
introduction to html.ppt
VincentAcapen
 
introdution-to-html.ppt jahjdbsfhbdhdbjkgbe
introdution-to-html.ppt jahjdbsfhbdhdbjkgbeintrodution-to-html.ppt jahjdbsfhbdhdbjkgbe
introdution-to-html.ppt jahjdbsfhbdhdbjkgbe
JamaicaCabrales
 
introdution-to-html (1).ppt 12345678909765432
introdution-to-html (1).ppt 12345678909765432introdution-to-html (1).ppt 12345678909765432
introdution-to-html (1).ppt 12345678909765432
RudraRathore6
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
GezahegnHailu1
 
introdution-to-html.ppt for bca ,bsc students
introdution-to-html.ppt for bca ,bsc studentsintrodution-to-html.ppt for bca ,bsc students
introdution-to-html.ppt for bca ,bsc students
MaheshMutnale1
 
Introduction to HTML for under-graduate studnets
Introduction to HTML for under-graduate studnetsIntroduction to HTML for under-graduate studnets
Introduction to HTML for under-graduate studnets
debasisdas225831
 
introdution-to-html building website using HTML
introdution-to-html building website using HTMLintrodution-to-html building website using HTML
introdution-to-html building website using HTML
NagarajKalligudd1
 
introdution-to000000000000000000000-html.ppt
introdution-to000000000000000000000-html.pptintrodution-to000000000000000000000-html.ppt
introdution-to000000000000000000000-html.ppt
Sandeep Mathur
 
introdution to hypertext machine learning language
introdution to hypertext machine learning languageintrodution to hypertext machine learning language
introdution to hypertext machine learning language
naren adapa
 
introdution-to-htmlppt.ppt
introdution-to-htmlppt.pptintrodution-to-htmlppt.ppt
introdution-to-htmlppt.ppt
navyar41
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
Sri Latha
 
introdution-to-html (1).ppt
introdution-to-html (1).pptintrodution-to-html (1).ppt
introdution-to-html (1).ppt
F3ZONE1
 
introdution-to-html programming and dhtml
introdution-to-html programming and dhtmlintrodution-to-html programming and dhtml
introdution-to-html programming and dhtml
santhosh sriprada
 
HTML is a markup language used by the browser to manipulate text, images, and...
HTML is a markup language used by the browser to manipulate text, images, and...HTML is a markup language used by the browser to manipulate text, images, and...
HTML is a markup language used by the browser to manipulate text, images, and...
ssuser6478a8
 
introdution-to-html.ppt NJBJGHGJHGGJGJG
introdution-to-html.ppt  NJBJGHGJHGGJGJGintrodution-to-html.ppt  NJBJGHGJHGGJGJG
introdution-to-html.ppt NJBJGHGJHGGJGJG
AMRITHA16
 
introduction to html for beginners and youth
introduction to html for beginners and youthintroduction to html for beginners and youth
introduction to html for beginners and youth
ahoveida
 
introduction to html.ppt
introduction to html.pptintroduction to html.ppt
introduction to html.ppt
VincentAcapen
 
introdution-to-html.ppt jahjdbsfhbdhdbjkgbe
introdution-to-html.ppt jahjdbsfhbdhdbjkgbeintrodution-to-html.ppt jahjdbsfhbdhdbjkgbe
introdution-to-html.ppt jahjdbsfhbdhdbjkgbe
JamaicaCabrales
 
introdution-to-html (1).ppt 12345678909765432
introdution-to-html (1).ppt 12345678909765432introdution-to-html (1).ppt 12345678909765432
introdution-to-html (1).ppt 12345678909765432
RudraRathore6
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
GezahegnHailu1
 
introdution-to-html.ppt for bca ,bsc students
introdution-to-html.ppt for bca ,bsc studentsintrodution-to-html.ppt for bca ,bsc students
introdution-to-html.ppt for bca ,bsc students
MaheshMutnale1
 

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
 
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
 
Overview Well-Being and Creative Careers
Overview Well-Being and Creative CareersOverview Well-Being and Creative Careers
Overview Well-Being and Creative Careers
University of Amsterdam
 
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
 
How to Configure Scheduled Actions in odoo 18
How to Configure Scheduled Actions in odoo 18How to Configure Scheduled Actions in odoo 18
How to Configure Scheduled Actions in odoo 18
Celine George
 
Origin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theoriesOrigin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theories
PrachiSontakke5
 
Final Evaluation.docx...........................
Final Evaluation.docx...........................Final Evaluation.docx...........................
Final Evaluation.docx...........................
l1bbyburrell
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
Rock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian HistoryRock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian History
Virag Sontakke
 
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptxTERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
PoojaSen20
 
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
 
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
 
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
 
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
 
Myasthenia gravis (Neuromuscular disorder)
Myasthenia gravis (Neuromuscular disorder)Myasthenia gravis (Neuromuscular disorder)
Myasthenia gravis (Neuromuscular disorder)
Mohamed Rizk Khodair
 
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
Dr. Nasir Mustafa
 
What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)
jemille6
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
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
 
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
 
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
 
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
 
Overview Well-Being and Creative Careers
Overview Well-Being and Creative CareersOverview Well-Being and Creative Careers
Overview Well-Being and Creative Careers
University of Amsterdam
 
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
 
How to Configure Scheduled Actions in odoo 18
How to Configure Scheduled Actions in odoo 18How to Configure Scheduled Actions in odoo 18
How to Configure Scheduled Actions in odoo 18
Celine George
 
Origin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theoriesOrigin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theories
PrachiSontakke5
 
Final Evaluation.docx...........................
Final Evaluation.docx...........................Final Evaluation.docx...........................
Final Evaluation.docx...........................
l1bbyburrell
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
Rock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian HistoryRock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian History
Virag Sontakke
 
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptxTERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
PoojaSen20
 
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
 
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
 
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
 
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
 
Myasthenia gravis (Neuromuscular disorder)
Myasthenia gravis (Neuromuscular disorder)Myasthenia gravis (Neuromuscular disorder)
Myasthenia gravis (Neuromuscular disorder)
Mohamed Rizk Khodair
 
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
Dr. Nasir Mustafa
 
What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)
jemille6
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
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
 
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
 
Ad

WEB PROGRAMMING- Web page creation using HTML Tags

  • 1. WEB PROGRAMMING Mrs.R.SABITHA .,M.Sc.,M.Phil., Assistant Professor, Department of Computer Science(SF) V.V.Vanniaperumal College for Women, Virudhunagar.
  • 2. TOPICS • Introduction to HTML • Heading Tags • Formatting Tags • Order and Unorder list creation
  • 3. Introduction to HTML • HTML is a language for describing web pages. • HTML stands for Hyper Text Markup Language • HTML is not a programming language, it is a markup language • A markup language is a set of markup tags • HTML uses markup tags to describe web pages
  • 4. HTML TERMINOLGY Some commonly used terms in HTML are: Tags: Tags are always written within angles brackets e.g.<HTML> tag indicates the start of an HTML document . HTML tag can be two types. They are  Paired Tags : A tag is said to be a paired tag if text is placed between a tag and its companions tag.In paired tag ,the first tag is referred to as opening tag and the second tag is referred to as closing tag.  Unpaired Tags: An unpaired tag does not have a companion tag .unpaired tag also known as singular or Stand-Alone tags e.g:<br>,<hr> etc.
  • 5. HOW TO CREATE AN HTML DOCUMENT The essential tags that are required to create a HTML document are: • <HTML>.............</HTML> • <HEAD>.............</HEAD> • <BODY>.............</BODY>
  • 6. • <HTML> • <HEAD> • ............. • ............. • ............. • </HEAD> • <BODY> • ............. • ............. • ............. • </BODY> • </HTML> An HTML document has two distinct parts HEAD and BODY
  • 7. HEAD Tag <HEAD> • HEAD tag comes after the HTML start tag. It contains TITLE tag to give the document a title that displays on the browsers title bar at the top. The Format is: <HEAD> <TITLE> Your title goes here </TITLE> </HEAD>
  • 8. BODY Tag <BODY> • The BODY tag contains all the text and graphics of the document with all the HTML tags that are used for control and formatting of the page. The Format is: <BODY> Your Document goes here </BODY> An HTML document, web page can be created using a text editor, Notepad or WordPad. All the HTML documents should have the extension .htm or html. It require a web browser like Internet Explorer or Netscape Navigator/Communicator to view the document.
  • 9. Attributes used with <BODY> • BGCOLOR: used to set the background color for the document Example: <BODY BGCOLOR="yellow"> Your document text goes here. </BODY> • TEXT: used to set the color of the text of the document Example: <BODY TEXT="red">Introduction to HTML:: 77 Document text changed to red color </BODY> Document text changed to red color Introduction to HTML:: 77
  • 10. Follow the steps to create and view in browser Step-1: Open Notepad Step-2: Enter the following lines of code: <HTML> <HEAD> <TITLE> My first Page </TITLE> </HEAD> <BODY> WELCOME TO MY FIRST WEB PAGE </BODY> </HTML>
  • 11. Saving and Viewing a HTML Document • Step-3: Save the file as myfirstpage.html (go to File-Save As give File name: myfirstpage.html- choose save as type: All Files-click save) • Step-4: Viewing document in web browser (open Internet Explorer-click on File-Open- Browse-select the file myfirstpage.html-click open-click ok
  • 13. Formatting Tags Boldface <B>: displays text in BOLD Example: Welcome to the <B> Internet World </B> Output: Welcome to the Internet World Italics <I>: displays text in Italic Example: Welcome to the <I> Internet World </I> Output: Welcome to the Internet World
  • 14. Formatting Tags • Subscript <SUB>: displays text in Subscript • Superscript <SUP>: displays text in Superscript • Small <SMALL>: displays text in smaller font as compared to normal font • Big <BIG>: displays text in larger font as compared to normal font • Underline<U>specifies that the enclosed text be underline Example:<U> hello</U> Output: hello
  • 15. MARQUEE TAG • This tag is used text horizontally across the screen.it is mainly used to deliver a specific message to the visitor or to scroll Ads on a page. Example: • <marquee> hello world </marquee>
  • 16. Attributes of Marquee tag • Bgcolor : Sets the background color of the marquee. • Direction :Sets the direction of the marquee box to either left-to-right, right-to-left, up-to-down and down-to-up. • Width: This sets how wide the marquee should be. • Loop: This sets how many times the marquee should 'Loop' its text. Each trip counts as one loop.
  • 17. HEADING: <H1>.............<H6>tags HTML has six header tags <H1>, <H2>...........<H6> used to specify section headings. Text with header tags is displayed in larger and bolder fonts than the normal body text by a web browser. Every .header leaves a blank line above and below it when displayed in browse.
  • 18. Example: An HTML document, headings.html shows the different section headings <HTML> <HEAD> <TITLE> Section Heading </TITLE> </HEAD> <BODY> <H1> This is Section Heading 1 </H1> <H2> This is Section Heading 2 </H2> <H3> This is Section Heading 3 </H3> <H4> This is Section Heading 4 </H4> <H5> This is Section Heading 5 </H5> <H6> This is Section Heading 6 </H6> </BODY> </HTML>
  • 19. Output of HTML document This is Section Heading 1 This is Section Heading 2 This is Section Heading 3 This is Section Heading 4 This is Section Heading 5 This is Section Heading 6
  • 20. List Creation Unorder LIST Lists – un-numbered • Unnumbered Lists: <UL> <LI> apples </LI> <LI> bananas </LI> <LI> grapefruit </LI> </UL> • Unnumbered Lists with different pointer types: <UL type="square"> <LI> oranges </LI> <LI> peaches </LI> <LI> grapes </LI> </UL> type="square" type="disc" type="circle"
  • 22. List Creation • Lists - numbered • Numbered Lists: <OL> <LI> oranges </LI> <LI> peaches </LI> <LI> grapes </LI> </OL> Output 4. oranges 5. peaches 6. grapes • Numbered Lists that starts with 4: <OL start="4"> <LI> oranges </LI> <LI> peaches </LI> <LI> grapes </LI> </OL>
  • 23. Order and Unorder List Note : • Use the start and type attributes to customize your lists. It is possible to make lists of lists, which is helpful for creating some items, such as outlines.
  翻译: