Get Website Learn Coding Tech Story

HTML Examples



Html <body>


The <body> element containing all the content for the website. Heading, Paragraph, Tables, Lists, Forms and everything else must be placed within the body element to ensure each element is displayed on the site.







Html basic body Elements




















































Tag Description
<h1> to <h6>Defines various type of Headings in a documents.
<p>Defines a Paragraphs in a document.
<font>Defines Font Face, Color, Style of text in a document.
<a>Defines a Hyper Link in a documents.
<table>Defines a Table in a document.
<img>Defines a Image in a document.
<ul>Defines an Unordered List in a document.
<ol>Defines an Ordered List in a document.
<form>Defines a Form in a document
<div>Defines a Section in a document.
<iframe>Defines an Inline Frame in a document.
<br>Defines a New Line/Break Line in a document.






Html <body> Attributes


The <body> attributes are unique set of attributes are available to the body tag. These attributes work much like those of a word processing program. Setting these attributes means that all the content you place within your body tags will obey the specified instruction.







Body bgcolor Attribute


The <base> tag specifies the base URL and target for all relative URLs in a web page.


The bgcolor attribute specifies the background color of a document. (Not supported in HTML5.)



bgcolor example

<body bgcolor = "blue" >


   or


<body bgcolor = "#0000ff" >


   or


<body bgcolor = "rgba(0,0,255,0.6)" >









Body text Attribute


The text attribute specifies the color of the text in a document. (Not supported in HTML5.)



text example

<body text = "blue" >


   or


<body text = "#0000ff" >


   or


<body text = "rgba(0,0,255,0.6)" >









Body background Attribute


The background attribute specifies a background image for a document. (Not supported in HTML5.)



background example

<body background = "imagefilename.jpg" >









Body alink Attribute


The alink attribute specifies the color of an active link in a document. (Not supported in HTML5.)



alink example

<body alink = "blue" >


   or


<body alink = "#0000ff" >


   or


<body alink = "rgba(0,0,255,0.6)" >









Body link Attribute


The link attribute specifies the color of unvisited links in a document. (Not supported in HTML5.)



link example

<body link = "blue" >


   or


<body link = "#0000ff" >


   or


<body link = "rgba(0,0,255,0.6)" >









Body vlink Attribute


The vlink attribute specifies the color of visited links in a document. (Not supported in HTML5.)



vlink example

<body vlink = "blue" >


   or


<body vlink = "#0000ff" >


   or


<body vlink = "rgba(0,0,255,0.6)" >