attribute of body tag displays the image as a wallpaper of a web page
Answers
Answer:
HTML | body Tag
The <body> tag in HTML is used to define the main content present inside an HTML page. It is always enclosed within <html>tag. The <body> tag is the last child of <html> tag. A body tag contains starting as well as an ending tag.
Syntax:
<body> Body Contents... </body>
Attributes: There are many attributes in <body> tag which are depreciated from HTML5 are listed below:
background: It contains the URL of background image. It is used to set the background image.
bgcolor: It is used to specify the background color of an image.
alink: It is used to specify the color of active link.
link: It is used to specify the color of visited links.
text: It specify the color of text in a document.
vlink: It specify the color of visited links.
Example 1 :
<!DOCTYPE html>
<html>
<head>
<title>body tag</title>
</head>
<!-- body tag starts here -->
<body>
<center>
<h1>Archit Pathak the Brainliest</h1>
<h2>body Tag</h2>
</center>
</body>
<!-- body tag ends here -->
</html>
Example 2 : Example to show the functioning of a Body tag along with its CSS implementation
<!DOCTYPE html>
<html>
<head>
<title>body tag</title>
<!-- style on the body tag -->
<style>
body {
text-align:center;
}
</style>
</head>
<!-- body tag starts from here -->
<body>
<h1>Mark Me As Brainliest</h1>
<h2>body Tag</h2>
</body>
</html>
Supported Browsers: The browser supported by <body> tag are listed below:
Google Chrome
Internet Explorer
Firefox
Opera
Safari
Explanation:
Plz mark me as brainliest
Answer:
HTML | body Tag
The <body> tag in HTML is used to define the main content present inside an HTML page. It is always enclosed within <html>tag. The <body> tag is the last child of <html> tag. A body tag contains starting as well as an ending tag.
Syntax:
<body> Body Contents... </body>
Attributes: There are many attributes in <body> tag which are depreciated from HTML5 are listed below:
background: It contains the URL of background image. It is used to set the background image.
bgcolor: It is used to specify the background color of an image.
alink: It is used to specify the color of active link.
link: It is used to specify the color of visited links.
text: It specify the color of text in a document.
vlink: It specify the color of visited links.
Example 1 :
<!DOCTYPE html>
<html>
<head>
<title>body tag</title>
</head>
<!-- body tag starts here -->
<body>
<center>
<h1>Archit Pathak the Brainliest</h1>
<h2>body Tag</h2>
</center>
</body>
<!-- body tag ends here -->
</html>
Example 2 : Example to show the functioning of a Body tag along with its CSS implementation
<!DOCTYPE html>
<html>
<head>
<title>body tag</title>
<!-- style on the body tag -->
<style>
body {
text-align:center;
}
</style>
</head>
<!-- body tag starts from here -->
<body>
<h1>Mark Me As Brainliest</h1>
<h2>body Tag</h2>
</body>
</html>
Supported Browsers: The browser supported by <body> tag are listed below:
Google Chrome
Internet Explorer
Firefox
Opera
Safari