WebsiteGear Logo Log In
New User? Sign Up
About | Contact | FAQ
  Home Content Site Development Website Technology Friday, October 20, 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 Safariland VIEVU Introduces the LE5 Body-Worn Camera with Industry-First Selectable Field of View and Auto-Activation Capabilities
Wireless, wi-fi and CAS auto-activation technology bring advanced connectivity efficiencies for law enforcement ONTARIO, Cali...
News Post Safariland VIEVU Awarded Exclusive Distribution Agreement for Digital Ally's VuLink Car-Based Camera Auto-Activation System
ONTARIO, Calif., Oct. 20, 2017 /PRNewswire/ -- Safariland(®) VIEVU(®) , a leader in body-worn video, and a brand of The Saf...
News Post "Drop the Headphones", DaDaABC Announces an Exciting Development in Online English Education
SHANGHAI, Oct. 20, 2017 /PRNewswire/ -- Many Chinese parents don't know how much damage headphones can cause to their childre...
News Post Global Body Composition Analyzers Market, 2017-2024 - Tanita Set to Dominate the Market
DUBLIN, October 19, 2017 /PRNewswire/ -- The "Global Body Composition Analyzers Market Analysis, Companies Profiles, Siz...
News Post "Invincible Summer" Book Just Won the International Publisher's Award for Best Book in Body, Mind, Spirit Category
Award winning book, Invincible Summer, describes how to push back against obstacles, boost speed of reaction, sense of belonging and respect
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