body margin


<body topmargin="" leftmargin="" marginheight="" marginwidth="">

Browser
Internet Explorer Firefox Opera
Type
Extension

The following attributes of the BODY element sets the margins of a document.


MSIE, Opera
<body topmargin="0" leftmargin="0">

Firefox, Opera
<body marginheight="0" marginwidth="0">

MSIE, Firefox, Opera
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

Body Margin


Attribute Value Explanation
MSIE Extension Internet ExplorerOpera
topmargin=" " pixels top margin
leftmargin=" " pixels left margin
Netscape Extension FirefoxOpera
marginheight=" " pixels top and bottom margins
marginwidth=" " pixels left and right margins

Extension attributes. (Non standard attributes)

Tips and Notes

Use CSS instead of this attribute. Please see the "Related Document" for details on CSS.


Example

<html>
<head>
<title>TAG index</title>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">



</body>
</html>
Output