ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

30-HTML Body

The <body> tag serves as the container of the elements in a website, such as tables, lists, forms, paragraphs, and many more will be placed within the body element to make sure that each element is displayed on your site.

 

The unique attributes of the body element are the leftmargin that sets a left hand margin and the topmargin that sets a margin along the top.

 

Example:

<body topmargin="60">
<body leftmargin="60">

 

Another example:

<body topmargin=”70″ leftmargin=”90″ >

<form name=”myForm” action=”process.php” method=”post”>
Firstname: <input title=”Enter Your First Name” id=”fname” name=”fname” type=”text” size=”16″ maxlength=”16″ />
Lastname: <input title=”Enter Your Last Name” id=”lname” name=”lname” type=”text” size=”16″ maxlength=”26″ /><br />
Password: <input type=”password” title=”Enter Your Password” size=”20″ maxlength=”20″ /><br /><br /><br />

<input type=”hidden” name=”itemId” id=”itemId” value=”0024″ />

<input type=”submit” value=”Save” /><input type=”reset” value=”Reset” />
</form>
</body>

Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!