WebsiteGear Logo Log In
New User? Sign Up
About | Contact | FAQ
  Home Content Site Development Website Technology Sunday, December 17, 2017 
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 Everyday Health Launches A "Special Report on Women's Wellness" Shedding Necessary Light On What Defines Her Well Being In Today's Uncertain Climate
Everyday Health set out to understand how women are defining, rating and valuing wellness through a first-of-its-kind survey and data analysis with clinical and cultural expert POVs resulting in new content to better inspire and enable wellness.
News Post ProfNet Experts Available on New Year's Resolutions, Reducing Stress, More
Also in This Edition: Jobs for Writers, Media Industry Blog Posts
News Post Commercial Aircraft Landing Gear Market, 2023 - Market to Grow with a CAGR of 5.4%
DUBLIN, December 14, 2017 /PRNewswire/ -- The "Commercial Aircraft Landing Gear Market: Global Industry Analysis, Trends...
News Post Global Automotive Connectors Market Analysis & Forecasts 2015-2023 by Application, System Type, Connection Type, Vehicle Type & Region
DUBLIN, December 14, 2017 /PRNewswire/ -- The "Automotive Connectors Market: Global Industry Analysis, Trends, Market Si...
News Post Olea Announces the OSN Quadcorder(TM) Prototype with HeartSignature(TM)
For consumer and medical professional remote vital sign monitoring
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 Grabar pantalla
Grabar pantalla formato wmv - Free Screen To Video 1.2: Tu Escritorio en vĂ­deo en varios formatos y ...
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 ...
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
View More News View More News