English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

Explain the attributes available with <body> tag. - Computer Applications

Advertisements
Advertisements

Question

Explain the attributes available with <body> tag.

Short Note

Solution

Attributes of <body> tag:

  1. Background Colour:
    bgcolor = color By default all the browsers display the text on white background. However the background color of the browser can be changed by using bgcolor tag.
  2. Body text Colour: text = color
    The default text colour of body section is “black”, it is often called as automatic color, text attribute within body tag is used to change the text colour,
    The tag to change body text colour:
    <body text = color_name/color_code>
  3. Background image:
    background-image An image or picture can be applied as background to a webpage. When we insert an image as background, the text will be displayed on top of the image. Background images can be a texture or bitmap or even a photo.
    Example:
    <body background = “image_name_with_ extension”>
  4. Setting Margins: margin = value
    The margin refers the blank area from left or top edge of the browser window. Generally, there is no default margin setting in any browser. If we want to leave some space as margin to left or top; left margin or top margin attributes will be used respectively.
    The tag to specify the left and top margin:
    <body leftmargin = value topmargin = value>
shaalaa.com
HTML Attributes
  Is there an error in this question or solution?
Chapter 10: HTML - Structural Tags - Evaluation [Page 236]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 11 TN Board
Chapter 10 HTML - Structural Tags
Evaluation | Q 1 | Page 236
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×