Body tag, PHP Web Programming

Assignment Help:

If you have a head, you required a body. All of the content to be displayed on the web page needs to be written within the body tag.  So whether text, textbox, headlines, checkbox or any other possible content, everything to be displayed should be kept within the BODY tag as illustrated in Figure

Whenever you make a modification to your document, just save it & hit the Reload/Refresh button on your browser. In some of the instances just hitting the Reload/Refresh button doesn't quite work. In that case hit Reload/Refresh whereas holding down the SHIFT key.

The BODY tag has given attributes:

a.   BGCOLOUR: This can be used for altering the background color of the page. By default the background color will be white.

b. BACKGROUND: This is used for denoting the image to be displayed in the background of the page.

c.   LINK: It denoted the color of the hyperlinks that have not been visited or clicked on.

d. ALINK: It denotes the color of the active hyperlink. An active link is one on which the mouse button is pressed.

e.   VLINK: This indicates the color of the hyperlinks after the mouse is clicked onto it.

f.   TEXT: It is utilized for indicating the color of the text displayed on the page.

Example:

<HTML>

<TITLE> My HOME PAGE</TITLE>

<BODY      BGCOLOUR="  #FFC0CB

 "        TEXT = "#FF0000"> HELLO WORLD!

</BODY>

 </HTML>

2166_BODY Tag.png

Figure: A Web Page with a Background Color

The values indicated for BGCOLOUR and TEXT tags mention the cooler of the background of the page & that of the text respectively. These are indicated in hexadecimal format. The range of permissible values in this format is from "#000000" to "#FFFFFF". The"#" symbol needs to precede the value of the color so as to denote to the browser that need to be interpreted as a hexadecimal value. In this six digit value, the primary two digits indicate the concentration of the color red, the next two digits indicate the concentration of the color green & the last two digits indicate the concentration of the color blue. Thus the value is a combination of the primary colors red, green & blue and that is why this is called RGB color. If we indicate the value "#FF0000", the color seems to be red."#000000" gives black & "#FFFFFF" gives the color white. You also contain the alternative of specifying the color by giving its name, such as:

<BODY TEXT = "WHITE">.

You can also indicate a background image instead. (Note that the image must be in the similar folder as your HTML file.).

<HTML>

<BODY BACKGROUND="swirlies.gif">  Hello!

</BODY>

</HTML>

2166_BODY Tag.png

Figure: A Web Page with an Image in the Background


Related Discussions:- Body tag

Need help making a website for buying and selling car parts, Want help maki...

Want help making a website for buying and selling car parts We want help with coding an e-commerce website for buying as well as selling car parts as well as the custom manageme

We want a front end developer, We want a Front end developer We are in s...

We want a Front end developer We are in search of a Web Developer. Wordpress, html5, responsive, css3, php Desired Skills are CSS, HTML, JavaScript, PHP, WordPress

Need help in whatsapp web solution, WHATSAPP WEB SOLUTION We are seeking...

WHATSAPP WEB SOLUTION We are seeking a professional company to develop a solution that allows me to send a bulk message for a list of numbers from the web to whatsapp. This s

Cell spacing and cell padding, Let us notice at a couple of attributes call...

Let us notice at a couple of attributes called CELLSPACING and CELLPADDING. Both are part of the tag. CELLPADDING is the amount of space among the border of the cell

Using php and joomla to build wine ecommerce website, Using PHP and Joomla ...

Using PHP and Joomla to build Wine ecommerce website with accommodation and tours We need a development team to construct a wine ecommerce website that will display information

Design a website in wordpress using custom css, I have a WordPress website ...

I have a WordPress website that is about 95 percent done. It was done using a template that I did a LOT of custom CSS with. I am having some issues with a couple of CSS items and I

We need analyst programmer, Analyst Programmer Our Esteemed as well as R...

Analyst Programmer Our Esteemed as well as Reputable Client is looking for an Analyst Programmer (Python) for their organization. The candidate is essential to perform web devel

Write a php application, Write a Php application that is used to manage a r...

Write a Php application that is used to manage a restaurant business. Assume menu items, categories (appetizer, dessert ...etc), prices and descriptions. The Restaurant has 10 tabl

Hyperlinks, Hyperlinks or links are one of the most significant characteris...

Hyperlinks or links are one of the most significant characteristics of web pages. A link moves us from the present page to a destination which is specified in the HTML page. URL

Build a php system for a maintenance firm, Hi, I want someone to build a PH...

Hi, I want someone to build a PHP system for a maintenance firm. The users need to log jobs on the system where they will be allocated to a contractor/employee. The contractors wil

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd