Advertisements
Advertisements
प्रश्न
Explain the attributes available with <body> tag.
टीपा लिहा
उत्तर
Attributes of <body> tag:
- 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. - 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> - 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”> - 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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
APPEARS IN
संबंधित प्रश्न
Which of the following is a special word used inside tag to specify additional information to the tag?
HTML tags should be specified within:
Which section of the browser window displays the main contents?
In HTML, colours are represented as ______.
Which of the following symbol is used to prefix with hexadecimal value representing colour in HTML?
What is the wrong in the following coding?
<html>
<my web page>
<title> Welcome to my web page </head>
</title>
How do you include an image as your web page background?
What are the attributes available in <html> tags?