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

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
Type
  • Extension

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


<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0"></body>

Attribute Value Explanation
IE, Safari, Chrome, Opera
topmargin=" " pixels top margin
bottommargin=" " pixels bottom margin
leftmargin=" " pixels left margin
rightmargin=" " pixels right margin
Firefox, Safari, Chrome, Opera
marginheight=" " pixels top and bottom margins
marginwidth=" " pixels left and right margins

Extension attributes. (Non standard attributes)

Example


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



</body>
</html>

Output

Example pagenew window

(Default examplenew window)