English

What is wrong in the following coding? <Body Margin Top = 60 Left = 75> Text with changed margin </Body>

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]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 3 HTML- I: Basic HTML Elements
Assignment | Q 18. (viii) | Page 128
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×