SlideShare ist ein Scribd-Unternehmen logo
1 von 26
1
HTML
BODY TAG ELEMENTS
Submitted By:
Richa Singh
CS-11
Submitted to:
Mr Rohit Saxena
Assistant Professor
The Body Element
• The BODY element of a web page is an important
element in regards to the page’s appearance.
• Here are the attributes of the body tag to control all
the levels.
• This element contains information about the page’s
background color, the background image, as well as
the text and link colors.
2
Text Color
BGCOLOR attribute of body tag is used to set background color
Syntax:
<BODY BGCOLOR=“ color code”></BODY>
3
Background Color
TEXT attribute is used to control the color of all the normal text in the
document. The default color for text is black.
Syntax:
<BODY BGCOLOR=“ color code” TEXT=“color code”></BODY>
These attributes control the colors of the different link states:
1. LINK – initial appearance – default = Blue.
2. VLINK – visited link – default = Purple.
3. ALINK –active link being clicked–default= Yellow.
4
LINK , ALINK, VLINK
Horizontal Rule , <HR>
 The <HR> element causes the browser to display a horizontal line
(rule) in your document.
 <HR> does not use a closing tag, </HR>.
Headings, <Hx> </Hx>
 Inside the BODY element, heading elements H1 through H6 are
generally used for major divisions of the document.
5
<HTML>
<HEAD>
<TITLE> Example
Page</TITLE>
</HEAD>
<BODY>
<H1> Heading 1 </H1>
<H2> Heading 2 </H2>
<H3> Heading 3 </H3>
<H4> Heading 4 </H4>
<H5> Heading 5 </H5>
<H6> Heading 6 </H6>
</BODY>
</HTML>
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Paragraphs, <P> </P>
 Paragraphs allow you to add text to a document in such a way that it
will automatically adjust the end of line to suite the window size of
the browser in which it is being displayed. Each line of text will
stretch the entire length of the window.
 Syntax: <p> some text here</p>
6
Break, <BR>
Line breaks allow you to decide where the text will break on a line or
continue to the end of the window.
A <BR> is an empty Element, meaning that it may contain attributes but
it does not contain content.
The <BR> element does not have a closing tag.
 1. <FONT SIZE=“+2”> Two sizes bigger</FONT>
 The size attribute can be set as an absolute value from 1 to 7 or as
a relative value using the “+” or “-” sign. Normal text size is 3 (from -
2 to +4).
 2. <B> Bold </B>
 3. <I> Italic </I>
 4. <U> Underline </U>
 5. <PRE> Preformatted </PRE>
 Text enclosed by PRE tags is displayed in a mono-spaced font.
Spaces and line breaks are supported without additional elements
or special characters.
 6. <EM> Emphasis </EM> Browsers usually display this as italics.
 7. <STRONG> STRONG </STRONG> Browsers display this as
bold.
7
Bold, Italic and other Character
Formatting Elements
 HTML supplies several list elements. Most list elements
are composed of one or more <LI> (List Item) elements.
 UL : Unordered List:
Items in this list start with a list mark such as a bullet.
Browsers will usually change the list mark in nested lists.
<UL>
<LI> List item …</LI>
<LI> List item …</LI>
</UL>
• List item …
• List item …
8
List Elements
 You have the choice of three bullet types: disc(default),
circle, square.
 These are controlled in Netscape Navigator by the
“TYPE” attribute for the <UL> element.
<UL TYPE=“square”>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
</UL>
 List item …
 List item …
 List item …
9
 OL: Ordered List: Items in this list are numbered
automatically by the browser.
<OL>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
</OL>
1. List item …
2. List item …
3. List item
 You have the choice of setting the TYPE Attribute to
one of five numbering styles.
10
TYPE Numbering Styles
1 Arabic numbers 1,2,3, ……
a Lower alpha a, b, c, ……
A Upper alpha A, B, C, ……
i Lower roman i, ii, iii, ……
I Upper roman I, II, III, ……
11
Type Attribute For OL:
 You can specify a starting number for an ordered list.
<OL TYPE =“i”>
<LI> List item …</LI>
<LI> List item …</LI>
</OL>
<P> text ….</P>
<OL TYPE=“i” START=“3”>
<LI> List item …</LI>
</OL>
12
Start Attribute for OL:
 DL: Definition List:
 This kind of list is different from the others. Each item in
a DL consists of one or more Definition Terms (DT
elements), followed by one or more Definition
Description (DD elements).
<DL>
<DT> HTML </DT>
<DD> Hyper Text Markup Language </DD>
<DT> DOG </DT>
<DD> A human’s best friend!</DD>
</DL>
HTML
Hyper Text Markup Language
DOG
A human’s best friend!
13
 You can nest lists by inserting a UL, OL, etc., inside a list
item (LI).
EXample
<UL TYPE = “square”>
<LI> List item …</LI>
<LI> List item …
<OL TYPE=“i” START=“3”>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
<LI> List item …</LI>
</OL>
</LI>
<LI> List item …</LI>
</UL>
14
Nesting Lists
 <IMG> This element defines a graphic image
on the page.
 Image File (SRC:source): This value will be
a URL (location of the image).
 Alternate Text (ALT): This is a text field that
describes an image or acts as a label. It is
displayed when they position the cursor over
a graphic image.
 Alignment (ALIGN): This allows you to align
the image on your page.
15
Images
 Width (WIDTH): is the width of the image in pixels.
 Height (HEIGHT): is the height of the image in
pixels.
 Border (BORDER): is for a border around the
image, specified in pixels.
 HSPACE: is for Horizontal Space on both sides of
the image specified in pixels. A setting of 5 will put 5
pixels of invisible space on both sides of the image.
 VSPACE: is for Vertical Space on top and bottom of
the image specified in pixels. A setting of 5 will put 5
pixels of invisible space above and bellow the
image.
16
1) The tags used to produce links are the <A>
and </A>. The <A> tells where the link should start and
the </A> indicates where the link ends. Everything between
these two will work as a link.
2) The example below shows how to make the word
Here work as a link to yahoo.
Click <A HREF="http://www.yahoo.com">here</A> to
go to yahoo.
3)Color of Links
• LINK - standard link - to a page the visitor hasn't been to yet. (standard color
is blue - #0000FF).
• VLINK - visited link - to a page the visitor has been to before. (standard color
is purple - #800080).
• ALINK - active link - the color of the link when the mouse is on it. (standard
color is red - #FF0000).
17
Links – A tag
 Internal Links : Links can also be created inside large
documents to simplify navigation. Today’s world wants to be
able to get the information quickly. Internal links can help you
meet these goals.
 Select some text at a place in the document that you would
like to create a link to, then add an anchor to link to like this:
<A NAME=“bookmark_name”></A>.
 The Name attribute of an anchor element specifies a location
in the document that we link to shortly. All NAME attributes in
a document must be unique.
 Next select the text that you would like to create as a link to
the location created above.
<A HREF=“#bookmark_name”>Go To Book Mark</A>
18
Internal Links
The <TABLE></TABLE> element has four sub-elements:
Table Row<TR></TR>.
Table Header <TH></TH>.
Table Data <TD></TD>.
Caption <CAPTION></CAPTION>.
The table row elements usually contain table header elements,
or table data elements.
19
Tables
Column 1 Header Column 2 Header
Row1, Col1 Row1, Col2
Row2, Col1 Row2, Col2
<table border=“1”>
<tr>
<th> Column 1 header </th>
<th> Column 2 header </th>
</tr>
<tr>
<td> Row1, Col1 </td>
<td> Row1, Col2 </td>
</tr>
<tr>
<td> Row2, Col1 </td>
<td> Row2, Col2 </td>
</tr>
</table>
20
1. BGColor: Some browsers support background colors in a table.
2. Width: you can specify the table width as an absolute number of
pixels or a percentage of the document width. You can set the
width for the table cells as well.
3. Border: You can choose a numerical value for the border width,
which specifies the border in pixels.
4. CellSpacing: Cell Spacing represents the space between cells
and is specified in pixels.
5. CellPadding: Cell Padding is the space between the cell border
and the cell contents and is specified in pixels.
6. Align: tables can have left, right, or center alignment.
7. Background: Background Image, will be titled in IE3.0 and above.
21
Table Attributes
Table caption
A table caption allows you to specify a line of text that will appear
centered above or bellow the table.
<TABLE BORDER=1 CELLPADDING=2>
<CAPTION ALIGN=“BOTTOM”> Label For My Table </CAPTION>
The Caption element has one attribute ALIGN that can be either TOP
(Above the table) or BOTTOM (below the table).
Table Header
Table Data cells are represented by the TD element. Cells can also be
TH (Table Header) elements which results in the contents of the table
header cells appearing centered and in bold text
22
1. Colspan: Specifies how many cell columns of the table
this cell should span.
2. Rowspan: Specifies how many cell rows of the table
this cell should span.
3. Align: cell data can have left, right, or center alignment.
4. Valign: cell data can have top, middle, or bottom
alignment.
5. Width: you can specify the width as an absolute number
of pixels or a percentage of the document width.
6. Height: You can specify the height as an absolute
number of pixels or a percentage of the document
height.
23
TD & TH Attributes
• The <frame> tag defines one particular window (frame) within a
<frameset>.
• Each <frame> in a <frameset> can have different attributes, such as
border, scrolling, the ability to resize, etc.
• Example of an HTML Frame
• <frameset cols="25%,50%,25%">
<frame src="frame_a.htm">
<frame src="frame_b.htm">
<frame src="frame_c.htm">
</frameset>
24
HTML Frames
• HTML forms are used to pass data to a server.
• An HTML form can contain input elements like text fields,
checkboxes, radio-buttons, submit buttons and more. A form can also
contain select lists, textarea, fieldset, legend, and label elements.
• The <form> tag is used to create an HTML form:
• <form>
.
input elements
.
</form>
25
HTML Forms
26

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
Learn html Basics
Learn html BasicsLearn html Basics
Learn html Basics
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
 
Tags in html
Tags in htmlTags in html
Tags in html
 
Html
HtmlHtml
Html
 
Html basics
Html basicsHtml basics
Html basics
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Html ppt
Html pptHtml ppt
Html ppt
 
HTML
HTMLHTML
HTML
 
HTML Tags
HTML TagsHTML Tags
HTML Tags
 
Html text and formatting
Html text and formattingHtml text and formatting
Html text and formatting
 
Html ppt computer
Html ppt computerHtml ppt computer
Html ppt computer
 
Html
HtmlHtml
Html
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Html tags
Html tagsHtml tags
Html tags
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Html coding
Html codingHtml coding
Html coding
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
 

Andere mochten auch

Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLMayaLisa
 
Html character entities
Html character entitiesHtml character entities
Html character entitiesnobel mujuji
 
Web designing (1) - Html Basic Codding
Web designing (1) - Html Basic CoddingWeb designing (1) - Html Basic Codding
Web designing (1) - Html Basic CoddingRabiul robi
 
Web topic 3 html format tags
Web topic 3  html format tagsWeb topic 3  html format tags
Web topic 3 html format tagsCK Yang
 
E commerce advantages,disadvantages,E-r diag,process flow
E commerce advantages,disadvantages,E-r diag,process flowE commerce advantages,disadvantages,E-r diag,process flow
E commerce advantages,disadvantages,E-r diag,process flowHarsh Panchal
 
Apache Spark: Coming up to speed
Apache Spark: Coming up to speedApache Spark: Coming up to speed
Apache Spark: Coming up to speedAdarsh Pannu
 
Apache Spark: The Analytics Operating System
Apache Spark: The Analytics Operating SystemApache Spark: The Analytics Operating System
Apache Spark: The Analytics Operating SystemAdarsh Pannu
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginnersjeroenvdmeer
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 

Andere mochten auch (20)

Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
html tags
html tagshtml tags
html tags
 
HTML
HTML HTML
HTML
 
Html character entities
Html character entitiesHtml character entities
Html character entities
 
Html Slide Part-1
Html Slide Part-1Html Slide Part-1
Html Slide Part-1
 
902350 html jar
902350 html jar902350 html jar
902350 html jar
 
Web designing (1) - Html Basic Codding
Web designing (1) - Html Basic CoddingWeb designing (1) - Html Basic Codding
Web designing (1) - Html Basic Codding
 
Basic of web design
Basic of web designBasic of web design
Basic of web design
 
Primerdesign
PrimerdesignPrimerdesign
Primerdesign
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Html ppt
Html pptHtml ppt
Html ppt
 
Htmltag.ppt
Htmltag.pptHtmltag.ppt
Htmltag.ppt
 
Web topic 3 html format tags
Web topic 3  html format tagsWeb topic 3  html format tags
Web topic 3 html format tags
 
E commerce advantages,disadvantages,E-r diag,process flow
E commerce advantages,disadvantages,E-r diag,process flowE commerce advantages,disadvantages,E-r diag,process flow
E commerce advantages,disadvantages,E-r diag,process flow
 
Apache Spark: Coming up to speed
Apache Spark: Coming up to speedApache Spark: Coming up to speed
Apache Spark: Coming up to speed
 
Spark on YARN
Spark on YARNSpark on YARN
Spark on YARN
 
Apache Spark: The Analytics Operating System
Apache Spark: The Analytics Operating SystemApache Spark: The Analytics Operating System
Apache Spark: The Analytics Operating System
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 

Ähnlich wie HTML Body Tag Elements Guide (20)

HTML
HTMLHTML
HTML
 
Unit 1-HTML Final.ppt
Unit 1-HTML Final.pptUnit 1-HTML Final.ppt
Unit 1-HTML Final.ppt
 
HTML5 with PHP.ini
HTML5 with PHP.iniHTML5 with PHP.ini
HTML5 with PHP.ini
 
HTML Presentation
HTML Presentation HTML Presentation
HTML Presentation
 
presentation_html_ppt_1534512076_351187.pptx
presentation_html_ppt_1534512076_351187.pptxpresentation_html_ppt_1534512076_351187.pptx
presentation_html_ppt_1534512076_351187.pptx
 
Chapter7 web application
Chapter7 web applicationChapter7 web application
Chapter7 web application
 
Html
HtmlHtml
Html
 
Html, xml and java script
Html, xml and java scriptHtml, xml and java script
Html, xml and java script
 
WDD
WDDWDD
WDD
 
Web design - Working with Text and Lists in HTML
Web design - Working with Text and Lists in HTMLWeb design - Working with Text and Lists in HTML
Web design - Working with Text and Lists in HTML
 
Html
HtmlHtml
Html
 
HTML
HTMLHTML
HTML
 
html tags
 html tags html tags
html tags
 
902350_HTML_Jar.ppt
902350_HTML_Jar.ppt902350_HTML_Jar.ppt
902350_HTML_Jar.ppt
 
DOC-20220920-WA0012..pptx
DOC-20220920-WA0012..pptxDOC-20220920-WA0012..pptx
DOC-20220920-WA0012..pptx
 
web development html css javascrptt902350_HTML_Jar.ppt
web development html css javascrptt902350_HTML_Jar.pptweb development html css javascrptt902350_HTML_Jar.ppt
web development html css javascrptt902350_HTML_Jar.ppt
 
Basics-of-HTML.ppt
Basics-of-HTML.pptBasics-of-HTML.ppt
Basics-of-HTML.ppt
 
902350_HTML_Jar.ppt
902350_HTML_Jar.ppt902350_HTML_Jar.ppt
902350_HTML_Jar.ppt
 
html presentation on basis of tage .ppt
html presentation on basis of tage  .ppthtml presentation on basis of tage  .ppt
html presentation on basis of tage .ppt
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
 

Mehr von Richa Singh

Fluid Simulation In Computer Graphics
Fluid Simulation In Computer GraphicsFluid Simulation In Computer Graphics
Fluid Simulation In Computer GraphicsRicha Singh
 
Load balancing in Distributed Systems
Load balancing in Distributed SystemsLoad balancing in Distributed Systems
Load balancing in Distributed SystemsRicha Singh
 
Nested classes in java
Nested classes in javaNested classes in java
Nested classes in javaRicha Singh
 
Google LOON Project
Google LOON ProjectGoogle LOON Project
Google LOON ProjectRicha Singh
 
Load Balancing In Distributed Computing
Load Balancing In Distributed ComputingLoad Balancing In Distributed Computing
Load Balancing In Distributed ComputingRicha Singh
 
Virtual Private Network
Virtual Private NetworkVirtual Private Network
Virtual Private NetworkRicha Singh
 
DLNA- DIGITAL LIVING NETWORK ALLIANCE
DLNA- DIGITAL LIVING NETWORK ALLIANCEDLNA- DIGITAL LIVING NETWORK ALLIANCE
DLNA- DIGITAL LIVING NETWORK ALLIANCERicha Singh
 
Google's LOON Project
Google's LOON ProjectGoogle's LOON Project
Google's LOON ProjectRicha Singh
 

Mehr von Richa Singh (8)

Fluid Simulation In Computer Graphics
Fluid Simulation In Computer GraphicsFluid Simulation In Computer Graphics
Fluid Simulation In Computer Graphics
 
Load balancing in Distributed Systems
Load balancing in Distributed SystemsLoad balancing in Distributed Systems
Load balancing in Distributed Systems
 
Nested classes in java
Nested classes in javaNested classes in java
Nested classes in java
 
Google LOON Project
Google LOON ProjectGoogle LOON Project
Google LOON Project
 
Load Balancing In Distributed Computing
Load Balancing In Distributed ComputingLoad Balancing In Distributed Computing
Load Balancing In Distributed Computing
 
Virtual Private Network
Virtual Private NetworkVirtual Private Network
Virtual Private Network
 
DLNA- DIGITAL LIVING NETWORK ALLIANCE
DLNA- DIGITAL LIVING NETWORK ALLIANCEDLNA- DIGITAL LIVING NETWORK ALLIANCE
DLNA- DIGITAL LIVING NETWORK ALLIANCE
 
Google's LOON Project
Google's LOON ProjectGoogle's LOON Project
Google's LOON Project
 

Kürzlich hochgeladen

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Kürzlich hochgeladen (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

HTML Body Tag Elements Guide

  • 1. 1 HTML BODY TAG ELEMENTS Submitted By: Richa Singh CS-11 Submitted to: Mr Rohit Saxena Assistant Professor
  • 2. The Body Element • The BODY element of a web page is an important element in regards to the page’s appearance. • Here are the attributes of the body tag to control all the levels. • This element contains information about the page’s background color, the background image, as well as the text and link colors. 2
  • 3. Text Color BGCOLOR attribute of body tag is used to set background color Syntax: <BODY BGCOLOR=“ color code”></BODY> 3 Background Color TEXT attribute is used to control the color of all the normal text in the document. The default color for text is black. Syntax: <BODY BGCOLOR=“ color code” TEXT=“color code”></BODY>
  • 4. These attributes control the colors of the different link states: 1. LINK – initial appearance – default = Blue. 2. VLINK – visited link – default = Purple. 3. ALINK –active link being clicked–default= Yellow. 4 LINK , ALINK, VLINK Horizontal Rule , <HR>  The <HR> element causes the browser to display a horizontal line (rule) in your document.  <HR> does not use a closing tag, </HR>.
  • 5. Headings, <Hx> </Hx>  Inside the BODY element, heading elements H1 through H6 are generally used for major divisions of the document. 5 <HTML> <HEAD> <TITLE> Example Page</TITLE> </HEAD> <BODY> <H1> Heading 1 </H1> <H2> Heading 2 </H2> <H3> Heading 3 </H3> <H4> Heading 4 </H4> <H5> Heading 5 </H5> <H6> Heading 6 </H6> </BODY> </HTML> Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6
  • 6. Paragraphs, <P> </P>  Paragraphs allow you to add text to a document in such a way that it will automatically adjust the end of line to suite the window size of the browser in which it is being displayed. Each line of text will stretch the entire length of the window.  Syntax: <p> some text here</p> 6 Break, <BR> Line breaks allow you to decide where the text will break on a line or continue to the end of the window. A <BR> is an empty Element, meaning that it may contain attributes but it does not contain content. The <BR> element does not have a closing tag.
  • 7.  1. <FONT SIZE=“+2”> Two sizes bigger</FONT>  The size attribute can be set as an absolute value from 1 to 7 or as a relative value using the “+” or “-” sign. Normal text size is 3 (from - 2 to +4).  2. <B> Bold </B>  3. <I> Italic </I>  4. <U> Underline </U>  5. <PRE> Preformatted </PRE>  Text enclosed by PRE tags is displayed in a mono-spaced font. Spaces and line breaks are supported without additional elements or special characters.  6. <EM> Emphasis </EM> Browsers usually display this as italics.  7. <STRONG> STRONG </STRONG> Browsers display this as bold. 7 Bold, Italic and other Character Formatting Elements
  • 8.  HTML supplies several list elements. Most list elements are composed of one or more <LI> (List Item) elements.  UL : Unordered List: Items in this list start with a list mark such as a bullet. Browsers will usually change the list mark in nested lists. <UL> <LI> List item …</LI> <LI> List item …</LI> </UL> • List item … • List item … 8 List Elements
  • 9.  You have the choice of three bullet types: disc(default), circle, square.  These are controlled in Netscape Navigator by the “TYPE” attribute for the <UL> element. <UL TYPE=“square”> <LI> List item …</LI> <LI> List item …</LI> <LI> List item …</LI> </UL>  List item …  List item …  List item … 9
  • 10.  OL: Ordered List: Items in this list are numbered automatically by the browser. <OL> <LI> List item …</LI> <LI> List item …</LI> <LI> List item …</LI> </OL> 1. List item … 2. List item … 3. List item  You have the choice of setting the TYPE Attribute to one of five numbering styles. 10
  • 11. TYPE Numbering Styles 1 Arabic numbers 1,2,3, …… a Lower alpha a, b, c, …… A Upper alpha A, B, C, …… i Lower roman i, ii, iii, …… I Upper roman I, II, III, …… 11 Type Attribute For OL:
  • 12.  You can specify a starting number for an ordered list. <OL TYPE =“i”> <LI> List item …</LI> <LI> List item …</LI> </OL> <P> text ….</P> <OL TYPE=“i” START=“3”> <LI> List item …</LI> </OL> 12 Start Attribute for OL:
  • 13.  DL: Definition List:  This kind of list is different from the others. Each item in a DL consists of one or more Definition Terms (DT elements), followed by one or more Definition Description (DD elements). <DL> <DT> HTML </DT> <DD> Hyper Text Markup Language </DD> <DT> DOG </DT> <DD> A human’s best friend!</DD> </DL> HTML Hyper Text Markup Language DOG A human’s best friend! 13
  • 14.  You can nest lists by inserting a UL, OL, etc., inside a list item (LI). EXample <UL TYPE = “square”> <LI> List item …</LI> <LI> List item … <OL TYPE=“i” START=“3”> <LI> List item …</LI> <LI> List item …</LI> <LI> List item …</LI> <LI> List item …</LI> <LI> List item …</LI> </OL> </LI> <LI> List item …</LI> </UL> 14 Nesting Lists
  • 15.  <IMG> This element defines a graphic image on the page.  Image File (SRC:source): This value will be a URL (location of the image).  Alternate Text (ALT): This is a text field that describes an image or acts as a label. It is displayed when they position the cursor over a graphic image.  Alignment (ALIGN): This allows you to align the image on your page. 15 Images
  • 16.  Width (WIDTH): is the width of the image in pixels.  Height (HEIGHT): is the height of the image in pixels.  Border (BORDER): is for a border around the image, specified in pixels.  HSPACE: is for Horizontal Space on both sides of the image specified in pixels. A setting of 5 will put 5 pixels of invisible space on both sides of the image.  VSPACE: is for Vertical Space on top and bottom of the image specified in pixels. A setting of 5 will put 5 pixels of invisible space above and bellow the image. 16
  • 17. 1) The tags used to produce links are the <A> and </A>. The <A> tells where the link should start and the </A> indicates where the link ends. Everything between these two will work as a link. 2) The example below shows how to make the word Here work as a link to yahoo. Click <A HREF="http://www.yahoo.com">here</A> to go to yahoo. 3)Color of Links • LINK - standard link - to a page the visitor hasn't been to yet. (standard color is blue - #0000FF). • VLINK - visited link - to a page the visitor has been to before. (standard color is purple - #800080). • ALINK - active link - the color of the link when the mouse is on it. (standard color is red - #FF0000). 17 Links – A tag
  • 18.  Internal Links : Links can also be created inside large documents to simplify navigation. Today’s world wants to be able to get the information quickly. Internal links can help you meet these goals.  Select some text at a place in the document that you would like to create a link to, then add an anchor to link to like this: <A NAME=“bookmark_name”></A>.  The Name attribute of an anchor element specifies a location in the document that we link to shortly. All NAME attributes in a document must be unique.  Next select the text that you would like to create as a link to the location created above. <A HREF=“#bookmark_name”>Go To Book Mark</A> 18 Internal Links
  • 19. The <TABLE></TABLE> element has four sub-elements: Table Row<TR></TR>. Table Header <TH></TH>. Table Data <TD></TD>. Caption <CAPTION></CAPTION>. The table row elements usually contain table header elements, or table data elements. 19 Tables Column 1 Header Column 2 Header Row1, Col1 Row1, Col2 Row2, Col1 Row2, Col2
  • 20. <table border=“1”> <tr> <th> Column 1 header </th> <th> Column 2 header </th> </tr> <tr> <td> Row1, Col1 </td> <td> Row1, Col2 </td> </tr> <tr> <td> Row2, Col1 </td> <td> Row2, Col2 </td> </tr> </table> 20
  • 21. 1. BGColor: Some browsers support background colors in a table. 2. Width: you can specify the table width as an absolute number of pixels or a percentage of the document width. You can set the width for the table cells as well. 3. Border: You can choose a numerical value for the border width, which specifies the border in pixels. 4. CellSpacing: Cell Spacing represents the space between cells and is specified in pixels. 5. CellPadding: Cell Padding is the space between the cell border and the cell contents and is specified in pixels. 6. Align: tables can have left, right, or center alignment. 7. Background: Background Image, will be titled in IE3.0 and above. 21 Table Attributes
  • 22. Table caption A table caption allows you to specify a line of text that will appear centered above or bellow the table. <TABLE BORDER=1 CELLPADDING=2> <CAPTION ALIGN=“BOTTOM”> Label For My Table </CAPTION> The Caption element has one attribute ALIGN that can be either TOP (Above the table) or BOTTOM (below the table). Table Header Table Data cells are represented by the TD element. Cells can also be TH (Table Header) elements which results in the contents of the table header cells appearing centered and in bold text 22
  • 23. 1. Colspan: Specifies how many cell columns of the table this cell should span. 2. Rowspan: Specifies how many cell rows of the table this cell should span. 3. Align: cell data can have left, right, or center alignment. 4. Valign: cell data can have top, middle, or bottom alignment. 5. Width: you can specify the width as an absolute number of pixels or a percentage of the document width. 6. Height: You can specify the height as an absolute number of pixels or a percentage of the document height. 23 TD & TH Attributes
  • 24. • The <frame> tag defines one particular window (frame) within a <frameset>. • Each <frame> in a <frameset> can have different attributes, such as border, scrolling, the ability to resize, etc. • Example of an HTML Frame • <frameset cols="25%,50%,25%"> <frame src="frame_a.htm"> <frame src="frame_b.htm"> <frame src="frame_c.htm"> </frameset> 24 HTML Frames
  • 25. • HTML forms are used to pass data to a server. • An HTML form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements. • The <form> tag is used to create an HTML form: • <form> . input elements . </form> 25 HTML Forms
  • 26. 26