SlideShare a Scribd company logo
1 of 23
R.D.SIVAKUMAR, M.Sc.,M.Phil.,M.Tech.,
Assistant Professor of Computer Science &
Assistant Professor and Head, Department of M.Com.(CA),
Ayya Nadar Janaki Ammal College,
Sivakasi – 626 124.
Mobile: 099440-42243
e-mail : sivamsccsit@gmail.com
website: www.rdsivakumar.blogspot.in
Body Section
Body Section
Body tag
A pair of body tags <body> and </body> is used to identify the body section.
 Some tags are used to insert in body section like images, tables, and forms and links.
The opening body tag is <body> and closing tag is </body>.
The body tag contains several attributes.
 To change the background color of a web page, the bgcolor attribute
is used.
Example: 1
<body bgcolor =#FFFFFF>
</body>
<body bgcolor=blue></body>
The color values range from 0 to 255 .
The ranges is 00(decimal) to FF(hexadecimal)
It should be mentioned six digits like FFFFFF, 000000, 99BDFF.
The # symbol is predetermined like #FFFFFF, #000000, #99BDFF.
Example: 2
The RBG values indicate some basic colors.
For example black, red, blue, pink, green is a RBG values.
Value
attribute
Body Section
Body tag
Example:3 <style>
body {
background-color: #99BDFF;
}
</style>
<body background=imagename.jpg>
The background color of the web page can also be modified using <style> tag.
Using the selector as<body> and property as<background color>
Example: 4
The body text is used to change the text color.
Images are supported by browser
The extension of image is .gif, .jpg, .png.
<body text = red>
Body Section
Body tag
Example:3 <style>
body {
background-color: #99BDFF;
}
</style>
<body background=imagename.jpg>
The background color of the web page can also be modified using <style> tag.
Using the selector as<body> and property as<background color>
Example: 4
The body text is used to change the text color.
Images are supported by browser
The extension of image is .gif, .jpg, .png.
<body text = red>
Body Section
Heading tag
Heading tags in the body section are used to provide a heading of the web document.
There are six heading tags are <h1>,<h2>, <h3>, <h4>, <h5>,<h6>.
Example: 1
<html><body>
<h1>Computer</h1><p>
<h2>Computer</h2><p>
<h3>Computer</h3><p>
<h4>Computer</h4><p>
<h5>Computer</h5><p>
<h6>Computer</h6><p>
</body>
</html>
output
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
Body Section
Heading tag
To centre the heading in a webpage use “align” attribute.
Example: 2 <h1 align=center>Computer</h1>
Example: 3
<h2 style=”color:pink”>This text will be rendered in pink</h2>
The heading content will be displayed in pink color use color attribute.
Body Section - Other HTML tags
Paragraph Tag
The paragraph tag <p>defines a paragraph.
It starts a new paragraph in a new line.
Opening paragraph tag is <p>, and closing tag is</p>.
To align the paragraph use “align” attribute.
Align the paragraph to right, center, left and justify.
Example: 2 <p align=center>Computer</p>
Break Tag
The break tag<br> is used to insert a line break.
The break tag has no closing tag.
The Opening tag of break tag is <br>
Body Section - Other HTML tags
Body, underline, Italic Tags
The bold tag is used to bold the font <b>……</b>.
The Underline tag is used to underline the text <u>……</u>
The italic tag is used to italicizes or slanting the text <i>…..</i>
Example: 2
<b>Computer</b>
<u>Computer</u>
<i>Computer</i>
Center and Horizontal ruler Tags
The center tag is used to center the image or text.
The opening center tag is <center>
The closing center tag is </center>
Computer
Computer
Computer
Body Section - Other HTML tags
Body Section - Other HTML tags
Font Tag
The font tag is used to specialize the font type, size and color.
The attribute of font tag is face, color, size
The opening font tag is <font> and closing tag is </font>
Example: 2 <font face=”arial” size=4pt color=#000000>font tag</font>
Image Tag
The image tag is used to insert the image in the web document.
The image tag must have an attribute “src”
The “src” stands for “source”
The opening image tag is <img> and the closing tag is </img>.
attribute
Body Section - Other HTML tags
Image Tag
Example: 1
To control the size of the image, the attribute is width and height
<img src=image name.gif></img>
Example: 2 <img src=image name.gif width=100 height=120>
Text message can be followed by image.
Example: 1 <img src=tnlogo.gif>Government of Tamil Nadu Emblem
Output
Aligning images within the text
Body Section - Other HTML tags
To align the text in the middle or at the top which follows the image.
Example: 2
Output
Aligning images within the text
<img src=tnlogo.gif align=middle>Government of Tamil Nadu Emblem</img>
<img src=tnlogo.gif align=top>Government of Tamil Nadu Emblem</img>
Body Section - Other HTML tags
Try the following codes for aligning image
<html>
<body>
<p>
<img src =”tnlogo.gif” align =”left” width=”100"
height=”50">
The align attribute of the image is set to “left”. The image will
go to the left of this text. </p>
<br>
<p>
<img src =”tnlogo.gif” align =”right” width=”100"
height=”50">
The align attribute of the image is set to “right”. The image
will go to the right of this text.
</p>
</body>
</html>
Body Section - Other HTML tags
Anchor tag
The anchor tag is used to create a hyperlink to another document
When the user click the content it will open another document
The opening anchor tag is <a> and closing tag is </a>
The anchor tag have attribute is “href”
The “href” attribute indicates the URL for the hyperlink.
<a href =”homepage.html”> Home Page</a>
The target window can be identified as _blank, _top, _self, or _parent.
Example-1
Example-2 A hypertext link can consist of text, an image, or a combination of both.
<body>
To view Government of Tamil Nadu Home Page, click the
Government’s logo.
<p>
<a href = “http://www.tn.gov.in” > <img src=tnlogo.gif></a>
</p>
</body>
Body Section - Other HTML tags
Anchor tag
It is also possible to create links to different parts of the same Web document
 First we must place a pointer in the document where we want to link to.
The name attribute of <a> tag is used for this purpose.
<a name=”Department”>
Then <a href=”#Department”> tag can be used to link to that part.
Example-3
Example-4 <a href=”#Department”>.
The # symbol tells the browser to look for the link within the same
document instead of looking for another file.
For example, you want to have a link from the University section to the
Department section on the same Web page.
 Right before “Department” you need to type <a name=”Department”>.
Body Section - Other HTML tags
Bgsound tag
The bgsound <bgsound> tag directs the browser to play a sound file.
The audio file should be specified using the src attribute.
The acceptable audio file formats are: .au, .wav, and .mid.
<bgsound src=music.au loop=”infinite”>
The loop attribute specifies the number of times the audio file is played.
The value “infinite” directs the browser to play the sound indefinitely.
Example-1
Example-2
<img dynsrc=music.dat width=150 height=150>
To play a movie in the browser, the <img> tag can be used with dynsrc attribute.
The music.dat is a video file. The player width and height are specified as attributes
of the <img> tag.
Body Section - Other HTML tags
Body Section - Advanced HTML tags
Lists There are three kinds of lists in HTML:
 Unordered lists <ul> …. </ul>
Ordered lists <ol> …. </ol>
Definition lists <dl> …. </dl>
Example-1
Unordered Lists
This list starts with an opening list <ul> tag and ends the list with a closing list
</ul> tag.
Between the <ul> and </ul>, you enter the <li> (list item) tag followed by the
individual item.
 The <li> tag identifies an item in a list. No closing </li> tag is needed
<ul type=“square”>
<li> Name
<li> Phone
<li> ID
</ul>
 Name
 Phone
 ID
Output
Ordered Lists
An order list used to list out the contents like numbers, alphabets or roman letters
<ol type=“1”>
<li>Primary School
<li>Elementary School
<li>High School
</ol>
Example-2
1. Primary School
2. Elementary School
3. High School
Output
Definition Lists
A definition list starts with <dl> and ends with </dl>.
 It creates a list with no bullets or numbers.
The definition list consists of a definition term <dt> tag and a definition-definition <dd> tag.
<dl>
<dt>Keyboard</dt>
<dd> It is an input device</dd>
<dt>Printer</dt>
<dd>It is an output device</dd>
</dl>
Example-3 Output
Keyboard
It is an input device
Printer
It is an output device
Body Section - Advanced HTML tags
Table Tag
The <table> tag is used to create a table on a Web document.
The table row tag (<tr>) is used to insert a new row in the table.
 The table header tag (<th>) is used to insert a new cell inside a table row
to represent the column heading.
The table data (<td>) tag inserts a new cell inside a table row to represent an entry
(value) in the table.
The cellspacing attribute refers to the space between cells and should be in pixels.
The cellpadding attribute refers to the spacing within the cell in pixels (the space
between the cell walls and the contents of the cell).
Example:1
<table border=2 cellspacing=10 cellpadding=10>
<tr>
<td width=50 align=center>Rama</td>
<td width=50 align=center>Sita</td>
</tr>
</table>
Example:2
<table border=2>
<tr><th>RollNo</th>
<th>Name</th></tr>
<tr><td>1001</td>
<td>Rama</td></tr>
<tr><td>1002</td>
<td>Sita</td></tr>
</table>
Body Section - Advanced HTML tags
Form Tag
Forms are used to receive information from the user
The <form> tag is used to create a form.
 Forms contain many types of form elements, such as text boxes, radio buttons, check boxes,
buttons and drop-down lists.
The form has a special element, which is submit button, which will submit the entries of a
form to a server application to process the
entries.
The important attributes used with the <form> tag are method and action attributes.
The method attribute of the form tag is used to identify how the form element names and
values will be sent to the server.
The get method will append the names of the form elements and their values to the URL.
 The post method will send the names and values of the form elements as packets.
<form method=get action=”serverscript”>
Body Section - Advanced HTML tags
Form Tag
The name attribute is used to name the input element.
The type attribute identifies the format of the input tag.
The possible type attributes are text, password, hidden, checkbox, submit, reset, file,
image and button.
The type “text” attribute creates a text box field.
 The type “hidden” attribute creates a form field that is not visible in the browser.
The type “submit” attribute creates a submit button and when user clicks this button,
the form elements’ names and their corresponding values are sent to the server side
program specified in the action attribute of the form tag.
 The value attribute provides a default value for the input tag.
 The value will be displayed with the form element in the browser.
<form method=post action=”server side program name”>
<input type=text name=empname value=rama>
<input type=text name=age value=23>
<input type=submit>
</form>
Frame Tag
Frames divide a web page into sections that each has a different HTML source page
and their own set of scroll bars.
With frames, we can put a number of HTML pages into a single window; each of
frames can display a page.
Frames are defined using <frameset>… </frameset> tags.
The <frameset> tag has two modifiers: rows and cols to define the size of each frame.
 A Web page with frames should not have body section.
 The <body> tag and <frameset> tag cannot come together.
<html>
<frameset rows=”64,*”>
<frame src=”top.html” name=”banner” scrolling=”no” noresize>
<frameset cols=”150,*”>
<frame src=”menu.html” name=”contents”>
<frame src=”home.html” name=”main”>
</frameset>
</frameset>
</html>
The attribute rows=”64,*” means that the first frame will take up 64 rows of the
window and the second frame will take up the rest.
Body Section - Advanced HTML tags
Frame Tag
If the files top.html, menu.html and home.html have the following
code (each line in one file respectively),
<h2>TOP</h2> <!—top.html —>
<h2>MENU</h2> <!—menu.html —>
<h2>HOME</h2> <!— home.html —>
the above frame based web page will be displayed as follows:
Body Section - Advanced HTML tags
Thank you..!!

More Related Content

What's hot

Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Chris Poteet
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to htmlpalhaftab
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginnersjeroenvdmeer
 
Images and Tables in HTML
Images and Tables in HTMLImages and Tables in HTML
Images and Tables in HTMLAarti P
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSSAmit Tyagi
 
Html ppt computer
Html ppt computerHtml ppt computer
Html ppt computerAnmol Pant
 
Presentation of bootstrap
Presentation of bootstrapPresentation of bootstrap
Presentation of bootstrap1amitgupta
 
Lab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptLab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptWalid Ashraf
 
Document Object Model (DOM)
Document Object Model (DOM)Document Object Model (DOM)
Document Object Model (DOM)GOPAL BASAK
 
Meta tags
Meta tagsMeta tags
Meta tagshapy
 

What's hot (20)

Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Css Basics
Css BasicsCss Basics
Css Basics
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
HTML
HTMLHTML
HTML
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
 
Images and Tables in HTML
Images and Tables in HTMLImages and Tables in HTML
Images and Tables in HTML
 
html-css
html-csshtml-css
html-css
 
Basic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdfBasic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdf
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Html ppt computer
Html ppt computerHtml ppt computer
Html ppt computer
 
Presentation of bootstrap
Presentation of bootstrapPresentation of bootstrap
Presentation of bootstrap
 
Css selectors
Css selectorsCss selectors
Css selectors
 
Lab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptLab #2: Introduction to Javascript
Lab #2: Introduction to Javascript
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Document Object Model (DOM)
Document Object Model (DOM)Document Object Model (DOM)
Document Object Model (DOM)
 
Html ppt
Html pptHtml ppt
Html ppt
 
CSS notes
CSS notesCSS notes
CSS notes
 
Meta tags
Meta tagsMeta tags
Meta tags
 

Similar to Body Section in HTML - R.D.Sivakumar

Similar to Body Section in HTML - R.D.Sivakumar (20)

Heading Section in HTML - R.D.Sivakumar
Heading Section in HTML - R.D.SivakumarHeading Section in HTML - R.D.Sivakumar
Heading Section in HTML - R.D.Sivakumar
 
Html
HtmlHtml
Html
 
INTRODUCTION FOR HTML
INTRODUCTION  FOR HTML INTRODUCTION  FOR HTML
INTRODUCTION FOR HTML
 
PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS Notes
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to Html
 
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmCaracteristicas Basicas De Htlm
Caracteristicas Basicas De Htlm
 
Html
HtmlHtml
Html
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Class Intro / HTML Basics
Class Intro / HTML BasicsClass Intro / HTML Basics
Class Intro / HTML Basics
 
Html 5
Html 5Html 5
Html 5
 
Html
HtmlHtml
Html
 
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
 
Html.docx
Html.docxHtml.docx
Html.docx
 
Html basic
Html basicHtml basic
Html basic
 
HTML Tutorials
HTML TutorialsHTML Tutorials
HTML Tutorials
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
HTML Notes for new begginers for HTML CSS
HTML Notes for new begginers for HTML CSSHTML Notes for new begginers for HTML CSS
HTML Notes for new begginers for HTML CSS
 

More from Sivakumar R D .

Internet Connections and Its Protocols - R D Sivakumar
Internet Connections and Its Protocols - R D SivakumarInternet Connections and Its Protocols - R D Sivakumar
Internet Connections and Its Protocols - R D SivakumarSivakumar R D .
 
Internet - R D Sivakumar.
Internet - R D Sivakumar.Internet - R D Sivakumar.
Internet - R D Sivakumar.Sivakumar R D .
 
Data Communication - R D Sivakumar
Data Communication - R D SivakumarData Communication - R D Sivakumar
Data Communication - R D SivakumarSivakumar R D .
 
NETWORK SERVICES - R D Sivakumar
NETWORK SERVICES - R D SivakumarNETWORK SERVICES - R D Sivakumar
NETWORK SERVICES - R D SivakumarSivakumar R D .
 
Computer Communications - R D Sivakumar
Computer Communications - R D SivakumarComputer Communications - R D Sivakumar
Computer Communications - R D SivakumarSivakumar R D .
 
Online Data Protection - R D Sivakumar
Online Data Protection - R D SivakumarOnline Data Protection - R D Sivakumar
Online Data Protection - R D SivakumarSivakumar R D .
 
Software Engineering - R.D.Sivakumar
Software Engineering - R.D.SivakumarSoftware Engineering - R.D.Sivakumar
Software Engineering - R.D.SivakumarSivakumar R D .
 
Different Kinds of Internet Protocols - R.D.Sivakumar
Different Kinds of Internet Protocols - R.D.SivakumarDifferent Kinds of Internet Protocols - R.D.Sivakumar
Different Kinds of Internet Protocols - R.D.SivakumarSivakumar R D .
 
Internet - R.D.Sivakumar
Internet - R.D.SivakumarInternet - R.D.Sivakumar
Internet - R.D.SivakumarSivakumar R D .
 
Electronic Publishing Tools for E-Learning - R.D.Sivakumar
Electronic Publishing Tools for E-Learning - R.D.SivakumarElectronic Publishing Tools for E-Learning - R.D.Sivakumar
Electronic Publishing Tools for E-Learning - R.D.SivakumarSivakumar R D .
 
E-learning Packages - R.D.Sivakumar
E-learning Packages - R.D.SivakumarE-learning Packages - R.D.Sivakumar
E-learning Packages - R.D.SivakumarSivakumar R D .
 
Digital Communication - R.D.Sivakumar
Digital Communication - R.D.SivakumarDigital Communication - R.D.Sivakumar
Digital Communication - R.D.SivakumarSivakumar R D .
 
Digigogy in Teaching - R.D.Sivakumar
Digigogy in Teaching - R.D.SivakumarDigigogy in Teaching - R.D.Sivakumar
Digigogy in Teaching - R.D.SivakumarSivakumar R D .
 
Cyber Commerce Technology - R.D.Sivakumar
Cyber Commerce Technology - R.D.SivakumarCyber Commerce Technology - R.D.Sivakumar
Cyber Commerce Technology - R.D.SivakumarSivakumar R D .
 
Video Lesson Creation - R.D.Sivakumar
Video Lesson Creation - R.D.SivakumarVideo Lesson Creation - R.D.Sivakumar
Video Lesson Creation - R.D.SivakumarSivakumar R D .
 
Cognitive and Personal Dimensions of Cyber Learning - R.D.Sivakumar
Cognitive and Personal Dimensions of Cyber Learning - R.D.SivakumarCognitive and Personal Dimensions of Cyber Learning - R.D.Sivakumar
Cognitive and Personal Dimensions of Cyber Learning - R.D.SivakumarSivakumar R D .
 
Innovative Presentation - R.D.Sivakumar
Innovative Presentation - R.D.SivakumarInnovative Presentation - R.D.Sivakumar
Innovative Presentation - R.D.SivakumarSivakumar R D .
 
Open Source in E-Learning - R.D.Sivakumar
Open Source in E-Learning - R.D.SivakumarOpen Source in E-Learning - R.D.Sivakumar
Open Source in E-Learning - R.D.SivakumarSivakumar R D .
 
Tuxpaint - R.D.Sivakumar
Tuxpaint - R.D.SivakumarTuxpaint - R.D.Sivakumar
Tuxpaint - R.D.SivakumarSivakumar R D .
 
Academic Blog Design - R.D.Sivakumar
Academic Blog Design - R.D.SivakumarAcademic Blog Design - R.D.Sivakumar
Academic Blog Design - R.D.SivakumarSivakumar R D .
 

More from Sivakumar R D . (20)

Internet Connections and Its Protocols - R D Sivakumar
Internet Connections and Its Protocols - R D SivakumarInternet Connections and Its Protocols - R D Sivakumar
Internet Connections and Its Protocols - R D Sivakumar
 
Internet - R D Sivakumar.
Internet - R D Sivakumar.Internet - R D Sivakumar.
Internet - R D Sivakumar.
 
Data Communication - R D Sivakumar
Data Communication - R D SivakumarData Communication - R D Sivakumar
Data Communication - R D Sivakumar
 
NETWORK SERVICES - R D Sivakumar
NETWORK SERVICES - R D SivakumarNETWORK SERVICES - R D Sivakumar
NETWORK SERVICES - R D Sivakumar
 
Computer Communications - R D Sivakumar
Computer Communications - R D SivakumarComputer Communications - R D Sivakumar
Computer Communications - R D Sivakumar
 
Online Data Protection - R D Sivakumar
Online Data Protection - R D SivakumarOnline Data Protection - R D Sivakumar
Online Data Protection - R D Sivakumar
 
Software Engineering - R.D.Sivakumar
Software Engineering - R.D.SivakumarSoftware Engineering - R.D.Sivakumar
Software Engineering - R.D.Sivakumar
 
Different Kinds of Internet Protocols - R.D.Sivakumar
Different Kinds of Internet Protocols - R.D.SivakumarDifferent Kinds of Internet Protocols - R.D.Sivakumar
Different Kinds of Internet Protocols - R.D.Sivakumar
 
Internet - R.D.Sivakumar
Internet - R.D.SivakumarInternet - R.D.Sivakumar
Internet - R.D.Sivakumar
 
Electronic Publishing Tools for E-Learning - R.D.Sivakumar
Electronic Publishing Tools for E-Learning - R.D.SivakumarElectronic Publishing Tools for E-Learning - R.D.Sivakumar
Electronic Publishing Tools for E-Learning - R.D.Sivakumar
 
E-learning Packages - R.D.Sivakumar
E-learning Packages - R.D.SivakumarE-learning Packages - R.D.Sivakumar
E-learning Packages - R.D.Sivakumar
 
Digital Communication - R.D.Sivakumar
Digital Communication - R.D.SivakumarDigital Communication - R.D.Sivakumar
Digital Communication - R.D.Sivakumar
 
Digigogy in Teaching - R.D.Sivakumar
Digigogy in Teaching - R.D.SivakumarDigigogy in Teaching - R.D.Sivakumar
Digigogy in Teaching - R.D.Sivakumar
 
Cyber Commerce Technology - R.D.Sivakumar
Cyber Commerce Technology - R.D.SivakumarCyber Commerce Technology - R.D.Sivakumar
Cyber Commerce Technology - R.D.Sivakumar
 
Video Lesson Creation - R.D.Sivakumar
Video Lesson Creation - R.D.SivakumarVideo Lesson Creation - R.D.Sivakumar
Video Lesson Creation - R.D.Sivakumar
 
Cognitive and Personal Dimensions of Cyber Learning - R.D.Sivakumar
Cognitive and Personal Dimensions of Cyber Learning - R.D.SivakumarCognitive and Personal Dimensions of Cyber Learning - R.D.Sivakumar
Cognitive and Personal Dimensions of Cyber Learning - R.D.Sivakumar
 
Innovative Presentation - R.D.Sivakumar
Innovative Presentation - R.D.SivakumarInnovative Presentation - R.D.Sivakumar
Innovative Presentation - R.D.Sivakumar
 
Open Source in E-Learning - R.D.Sivakumar
Open Source in E-Learning - R.D.SivakumarOpen Source in E-Learning - R.D.Sivakumar
Open Source in E-Learning - R.D.Sivakumar
 
Tuxpaint - R.D.Sivakumar
Tuxpaint - R.D.SivakumarTuxpaint - R.D.Sivakumar
Tuxpaint - R.D.Sivakumar
 
Academic Blog Design - R.D.Sivakumar
Academic Blog Design - R.D.SivakumarAcademic Blog Design - R.D.Sivakumar
Academic Blog Design - R.D.Sivakumar
 

Recently uploaded

Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 

Recently uploaded (20)

Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 

Body Section in HTML - R.D.Sivakumar

  • 1. R.D.SIVAKUMAR, M.Sc.,M.Phil.,M.Tech., Assistant Professor of Computer Science & Assistant Professor and Head, Department of M.Com.(CA), Ayya Nadar Janaki Ammal College, Sivakasi – 626 124. Mobile: 099440-42243 e-mail : sivamsccsit@gmail.com website: www.rdsivakumar.blogspot.in Body Section
  • 2. Body Section Body tag A pair of body tags <body> and </body> is used to identify the body section.  Some tags are used to insert in body section like images, tables, and forms and links. The opening body tag is <body> and closing tag is </body>. The body tag contains several attributes.  To change the background color of a web page, the bgcolor attribute is used. Example: 1 <body bgcolor =#FFFFFF> </body> <body bgcolor=blue></body> The color values range from 0 to 255 . The ranges is 00(decimal) to FF(hexadecimal) It should be mentioned six digits like FFFFFF, 000000, 99BDFF. The # symbol is predetermined like #FFFFFF, #000000, #99BDFF. Example: 2 The RBG values indicate some basic colors. For example black, red, blue, pink, green is a RBG values. Value attribute
  • 3. Body Section Body tag Example:3 <style> body { background-color: #99BDFF; } </style> <body background=imagename.jpg> The background color of the web page can also be modified using <style> tag. Using the selector as<body> and property as<background color> Example: 4 The body text is used to change the text color. Images are supported by browser The extension of image is .gif, .jpg, .png. <body text = red>
  • 4. Body Section Body tag Example:3 <style> body { background-color: #99BDFF; } </style> <body background=imagename.jpg> The background color of the web page can also be modified using <style> tag. Using the selector as<body> and property as<background color> Example: 4 The body text is used to change the text color. Images are supported by browser The extension of image is .gif, .jpg, .png. <body text = red>
  • 5. Body Section Heading tag Heading tags in the body section are used to provide a heading of the web document. There are six heading tags are <h1>,<h2>, <h3>, <h4>, <h5>,<h6>. Example: 1 <html><body> <h1>Computer</h1><p> <h2>Computer</h2><p> <h3>Computer</h3><p> <h4>Computer</h4><p> <h5>Computer</h5><p> <h6>Computer</h6><p> </body> </html> output <h1> <h2> <h3> <h4> <h5> <h6>
  • 6. Body Section Heading tag To centre the heading in a webpage use “align” attribute. Example: 2 <h1 align=center>Computer</h1> Example: 3 <h2 style=”color:pink”>This text will be rendered in pink</h2> The heading content will be displayed in pink color use color attribute.
  • 7. Body Section - Other HTML tags Paragraph Tag The paragraph tag <p>defines a paragraph. It starts a new paragraph in a new line. Opening paragraph tag is <p>, and closing tag is</p>. To align the paragraph use “align” attribute. Align the paragraph to right, center, left and justify. Example: 2 <p align=center>Computer</p> Break Tag The break tag<br> is used to insert a line break. The break tag has no closing tag. The Opening tag of break tag is <br>
  • 8. Body Section - Other HTML tags Body, underline, Italic Tags The bold tag is used to bold the font <b>……</b>. The Underline tag is used to underline the text <u>……</u> The italic tag is used to italicizes or slanting the text <i>…..</i> Example: 2 <b>Computer</b> <u>Computer</u> <i>Computer</i> Center and Horizontal ruler Tags The center tag is used to center the image or text. The opening center tag is <center> The closing center tag is </center> Computer Computer Computer Body Section - Other HTML tags
  • 9. Body Section - Other HTML tags Font Tag The font tag is used to specialize the font type, size and color. The attribute of font tag is face, color, size The opening font tag is <font> and closing tag is </font> Example: 2 <font face=”arial” size=4pt color=#000000>font tag</font> Image Tag The image tag is used to insert the image in the web document. The image tag must have an attribute “src” The “src” stands for “source” The opening image tag is <img> and the closing tag is </img>. attribute Body Section - Other HTML tags
  • 10. Image Tag Example: 1 To control the size of the image, the attribute is width and height <img src=image name.gif></img> Example: 2 <img src=image name.gif width=100 height=120> Text message can be followed by image. Example: 1 <img src=tnlogo.gif>Government of Tamil Nadu Emblem Output Aligning images within the text Body Section - Other HTML tags
  • 11. To align the text in the middle or at the top which follows the image. Example: 2 Output Aligning images within the text <img src=tnlogo.gif align=middle>Government of Tamil Nadu Emblem</img> <img src=tnlogo.gif align=top>Government of Tamil Nadu Emblem</img> Body Section - Other HTML tags
  • 12. Try the following codes for aligning image <html> <body> <p> <img src =”tnlogo.gif” align =”left” width=”100" height=”50"> The align attribute of the image is set to “left”. The image will go to the left of this text. </p> <br> <p> <img src =”tnlogo.gif” align =”right” width=”100" height=”50"> The align attribute of the image is set to “right”. The image will go to the right of this text. </p> </body> </html> Body Section - Other HTML tags
  • 13. Anchor tag The anchor tag is used to create a hyperlink to another document When the user click the content it will open another document The opening anchor tag is <a> and closing tag is </a> The anchor tag have attribute is “href” The “href” attribute indicates the URL for the hyperlink. <a href =”homepage.html”> Home Page</a> The target window can be identified as _blank, _top, _self, or _parent. Example-1 Example-2 A hypertext link can consist of text, an image, or a combination of both. <body> To view Government of Tamil Nadu Home Page, click the Government’s logo. <p> <a href = “http://www.tn.gov.in” > <img src=tnlogo.gif></a> </p> </body> Body Section - Other HTML tags
  • 14. Anchor tag It is also possible to create links to different parts of the same Web document  First we must place a pointer in the document where we want to link to. The name attribute of <a> tag is used for this purpose. <a name=”Department”> Then <a href=”#Department”> tag can be used to link to that part. Example-3 Example-4 <a href=”#Department”>. The # symbol tells the browser to look for the link within the same document instead of looking for another file. For example, you want to have a link from the University section to the Department section on the same Web page.  Right before “Department” you need to type <a name=”Department”>. Body Section - Other HTML tags
  • 15. Bgsound tag The bgsound <bgsound> tag directs the browser to play a sound file. The audio file should be specified using the src attribute. The acceptable audio file formats are: .au, .wav, and .mid. <bgsound src=music.au loop=”infinite”> The loop attribute specifies the number of times the audio file is played. The value “infinite” directs the browser to play the sound indefinitely. Example-1 Example-2 <img dynsrc=music.dat width=150 height=150> To play a movie in the browser, the <img> tag can be used with dynsrc attribute. The music.dat is a video file. The player width and height are specified as attributes of the <img> tag. Body Section - Other HTML tags
  • 16. Body Section - Advanced HTML tags Lists There are three kinds of lists in HTML:  Unordered lists <ul> …. </ul> Ordered lists <ol> …. </ol> Definition lists <dl> …. </dl> Example-1 Unordered Lists This list starts with an opening list <ul> tag and ends the list with a closing list </ul> tag. Between the <ul> and </ul>, you enter the <li> (list item) tag followed by the individual item.  The <li> tag identifies an item in a list. No closing </li> tag is needed <ul type=“square”> <li> Name <li> Phone <li> ID </ul>  Name  Phone  ID Output
  • 17. Ordered Lists An order list used to list out the contents like numbers, alphabets or roman letters <ol type=“1”> <li>Primary School <li>Elementary School <li>High School </ol> Example-2 1. Primary School 2. Elementary School 3. High School Output Definition Lists A definition list starts with <dl> and ends with </dl>.  It creates a list with no bullets or numbers. The definition list consists of a definition term <dt> tag and a definition-definition <dd> tag. <dl> <dt>Keyboard</dt> <dd> It is an input device</dd> <dt>Printer</dt> <dd>It is an output device</dd> </dl> Example-3 Output Keyboard It is an input device Printer It is an output device Body Section - Advanced HTML tags
  • 18. Table Tag The <table> tag is used to create a table on a Web document. The table row tag (<tr>) is used to insert a new row in the table.  The table header tag (<th>) is used to insert a new cell inside a table row to represent the column heading. The table data (<td>) tag inserts a new cell inside a table row to represent an entry (value) in the table. The cellspacing attribute refers to the space between cells and should be in pixels. The cellpadding attribute refers to the spacing within the cell in pixels (the space between the cell walls and the contents of the cell). Example:1 <table border=2 cellspacing=10 cellpadding=10> <tr> <td width=50 align=center>Rama</td> <td width=50 align=center>Sita</td> </tr> </table> Example:2 <table border=2> <tr><th>RollNo</th> <th>Name</th></tr> <tr><td>1001</td> <td>Rama</td></tr> <tr><td>1002</td> <td>Sita</td></tr> </table> Body Section - Advanced HTML tags
  • 19. Form Tag Forms are used to receive information from the user The <form> tag is used to create a form.  Forms contain many types of form elements, such as text boxes, radio buttons, check boxes, buttons and drop-down lists. The form has a special element, which is submit button, which will submit the entries of a form to a server application to process the entries. The important attributes used with the <form> tag are method and action attributes. The method attribute of the form tag is used to identify how the form element names and values will be sent to the server. The get method will append the names of the form elements and their values to the URL.  The post method will send the names and values of the form elements as packets. <form method=get action=”serverscript”> Body Section - Advanced HTML tags
  • 20. Form Tag The name attribute is used to name the input element. The type attribute identifies the format of the input tag. The possible type attributes are text, password, hidden, checkbox, submit, reset, file, image and button. The type “text” attribute creates a text box field.  The type “hidden” attribute creates a form field that is not visible in the browser. The type “submit” attribute creates a submit button and when user clicks this button, the form elements’ names and their corresponding values are sent to the server side program specified in the action attribute of the form tag.  The value attribute provides a default value for the input tag.  The value will be displayed with the form element in the browser. <form method=post action=”server side program name”> <input type=text name=empname value=rama> <input type=text name=age value=23> <input type=submit> </form>
  • 21. Frame Tag Frames divide a web page into sections that each has a different HTML source page and their own set of scroll bars. With frames, we can put a number of HTML pages into a single window; each of frames can display a page. Frames are defined using <frameset>… </frameset> tags. The <frameset> tag has two modifiers: rows and cols to define the size of each frame.  A Web page with frames should not have body section.  The <body> tag and <frameset> tag cannot come together. <html> <frameset rows=”64,*”> <frame src=”top.html” name=”banner” scrolling=”no” noresize> <frameset cols=”150,*”> <frame src=”menu.html” name=”contents”> <frame src=”home.html” name=”main”> </frameset> </frameset> </html> The attribute rows=”64,*” means that the first frame will take up 64 rows of the window and the second frame will take up the rest. Body Section - Advanced HTML tags
  • 22. Frame Tag If the files top.html, menu.html and home.html have the following code (each line in one file respectively), <h2>TOP</h2> <!—top.html —> <h2>MENU</h2> <!—menu.html —> <h2>HOME</h2> <!— home.html —> the above frame based web page will be displayed as follows: Body Section - Advanced HTML tags