WebsiteGear Logo Log In
New User? Sign Up
About | Contact | FAQ
  Home Content Site Development Website Technology Saturday, December 15, 2018 
Print| Email| Save| Discuss| Feeds


HTML Body
Published: Tuesday, November 04, 2003

















Check

HTML body section specifications


HTML body section contains the display content of the web page. Web browser displays
this information of an HTML document. The body content consists
of text, images, graphics, audio, active objects, etc.

The body element's presentation
attributes are not used anymore in HTML 4.0, although web browsers still support them for
backward compatibility (for older webpages). The webpage presentation should be applied
using style sheets. Style sheets are covered in style sheet tutorial.



Example 1: (Deprecated in HTML 4.0) this may not work in future browsers.



<body bgcolor="white" text="black"
link="red" alink="fuchsia" vlink="maroon">
... document body...
</body>



Example 2: Using CSS styles (covered in style sheet tutorial)

<head>
<title>This Uses Styles</title>
<style type="text/css">
body { background: white; color: black }
a:link { color: red }
a:visited { color: maroon }
a:active { color: fuchsia }
</style>
</head>
<body>>
... document body...
</body>


Check

Some commonly used <body> attributes


Here is a list of commonly used attributes.



  1. onload :


    Alignment attribute - Aligns the element in horizontal direction.

    Values - left | center | right

    Some related elements - <img>, <input>, <table>, <hr>,
    <th>, <td>, <tr>, <iframe>.





  2. onunload :


    Vertical Alignment attribute - Aligns the element in vertical direction.

    Values - top | middle | baseline | bottom

    Some related elements - <th>, <td>, <tr>, <tbody>.





  3. bgcolor :


    Width attribute - Specifies the width of an element.

    Values - pixels | % of parent width

    Some related elements - <table>, <hr>, <iframe>, <img>,
    <td>, <th>.





  4. lang, dir :


    Height attribute - Specifies the height of an element.

    Values - pixels | % of parent height

    Some related elements - <table>, <hr>, <iframe>, <img>,
    <td>, <th>.





  5. id, class :


    Width attribute - Specifies the width of an element.

    Values - pixels | % of parent cell

    Some related elements - <table>, <hr>, <iframe>, <img>,
    <td>, <th>.






Previous Article HTML Head HTML Link Next Article
Print| Email| Save| Discuss| Feeds
RELATED ARTICLES
Nav HTML Tutorial - Introduction
HTML stands for Hyper Text Markup Language. It is the publishing language of the World Wide Web (WWW). Learn about HTML in this tutorial.
RELATED NEWS
News Post AI Improves Quality of Elderly Care
AMSTERDAM, December 14, 2018 /PRNewswire/ -- At Today's Inauguration Speech, AI Professor Cees Snoek Gives Preview of Fi...
News Post Milestone for autonomous driving: Schaeffler to showcase "Space drive"
- Flexibility and connected operation as keys to mobility for tomorrow
News Post 'Strong Feelings' To Premiere January 10
Best Friends And Business Partners Katel Ledû And Sara Wachter-Boettcher Let It All Out, Because Life's Too Short To Bottle Things Up
News Post ProfNet Experts Available on New Year's Resolutions, Paris Travel, More
Also in This Edition: Jobs for Writers, Media Industry News
News Post Sixteen Years in the Making, National Geographic Unveils a Behind-the-Scenes Look at the Creation of the Highest-Quality Imagery of a Human Body in Existence
National Geographic has released an 18-minute documentary on this journey, "Becoming Immortal: How Susan Potter Will Live Forever"
Submit News | View More NewsView more news
RELATED CLASSIFIED ADS
Classified Ad HTML TAGGING PROJECT CONVERSION AVAILABLE
We have developed HTML Tagging Conversion software which can convert any TIFF Frech Srcipt Image to ...
Classified Ad Get OpenCart E-commerce Website with 20 % Discount
Inception System is the Leading E-commerce solutions Provider Company which has vast experience in O ...
Classified Ad Web-Software Development | Mobile App | Ecommerce
Rightway Solution started off with servicing clients in Responsive Web Development and E-commerce De ...
Classified Ad Opencart Development Services at Affordable Price
Inception System is premium eCommerce Web Development Company offering the efficient Opencart web de ...
Classified Ad Free business cards design and shipping!
Contact us: 514-691-9486 Business Cards 18Pts. PLASTIFIED Full Color 2 sides Canada only $ 79 ...
Post Free Ad | View More View more classifieds
RELATED FORUM POSTS
Forum Post How to convert psd into html?
Please let me know how to convert psd into html? I want to create a design from photoshop! ...
Forum Post html code help
I have been trying to use a code for media on my website however the Window media player comes up on ...
Forum Post HTML to enhance my javascript menu
To anyone that can help me I would really appreciate it! I have a javascript menu on a couple of ...
Forum Post HTML TAGGING PROJECT CONVERSION 100% QUALITY
We can process Image/TIF/GIF files to html format. We have developed HTML Tagging Conversion Softwa ...
Forum Post DIY photo collage yearbook with digital photos
Christmas is coming and a year also comes to its end right away. From beginning to end, from spring ...
Add New Post | View More View more forum posts
POPULAR ARTICLES
Nav How To Sell A Website
Nav Subdomain Configuration - How To Setup A Sub Domain
Nav Domain Configuration - How To Setup A Domain Name
Nav Website Layout - Tips & Tricks
Nav Round Robin DNS Load Balancing
Nav Introduction To Server Load Balancing
Nav Website Traffic & Revenue
Nav Tips On Using SubDomain
FEATURED NEWS | POPULAR NEWS