30-HTML Body

0
220

This tutorial is all about 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>

 

 

 

 

Readers might read also:

38-HTML Entities

Facebook Comments
(Visited 4 times, 1 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here