Advertisements
Advertisements
Question
What is wrong in the following coding?
<Body Margin Top = 60 Left = 75>
Text with changed margin </Body>
Code Writing
Short Answer
Advertisements
Solution
The attributes 'leftmargin' and ‘topmargin’ of <BODY> tag are used to specify the left and top margin of the document, respectively. The values of attributes should be enclosed in double quotes (" ").
The correct code is as follows:
<Body Topmargin = "60" Leftmargin = "75">
Text with changed margin </Body>shaalaa.com
Is there an error in this question or solution?
Chapter 3: HTML- I: Basic HTML Elements - Assignment [Page 128]
