Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (45k points)

a.<body color = “green”>

b.<body bgcolor = “green”>

c.<background> green </background>

d.<body bg = “green”>​

3 Answers

0 votes
by (99k points)

The correct answer to this question “What is the correct HTML for adding a background color” is option (b). <body bgcolor = “green”>. This is the correct HTML command that is used for adding a background color of choice. If you wish to learn more about HTML and want to get certified in it, then have a look at the HTML certification course from Intellipaat. Also, take a look at the following video on Web Development Course from experts.

0 votes
by (37.3k points)

The correct HTML for adding the background color is: 

b) <body bgcolor = “green”>

0 votes
ago by (2.8k points)

The correct answer is:Option b(<body bgcolor = “green”>)

Small code snippet:

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Background Color Example</title>

</head>

<body bgcolor="green">

    <h1>Hello, World!</h1>

    <p>This is an example of a webpage with a green color.</p>

</body>

</html>

Related questions

0 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...