arturocarmena10
arturocarmena10 arturocarmena10
  • 04-07-2019
  • Computers and Technology
contestada

how to change the background color of a section in html

Respuesta :

kashif4you
kashif4you kashif4you
  • 04-07-2019

Answer:

You should have a line on which you can add information below the <style> tag and above </style> tag. simply add the body tag  after <style> tag.

Explanation:

From the below code you can understand it how you can change the background color of a section in html.

<!DOCTYPE html>

<html>

<head>

<style>

body {

       background-color: #afafaf;

}

h {

background-color: #00b33c;

}

p {

background-color: #00d33c;

}

</style>

</head>

<body>

<h1>Header with green background</h1>

<p>Paragraph with lite green background</p>

</body>

</html>

Answer Link

Otras preguntas

which element can become stable by losing 1 electron
Prove the identity: cos(3x) + cos(x) = 2cos(2x)cos(x) I'm almost done with my homework, just got stuck on this one.
find the derivative of ((t^4-6)^3)*((t^3+6)^4)
can someone help me with number 25
how do i persuade students to enter the school talent show? i have to write it as an article in the school magazine.
why did some chiefs decide to fight when english colonists moved into their territory?plz help me
why are quebec and ontario known as canadas economic heart
what would happen if the chromosome number were not reduced before sexual reproduction?
1. Compare the location of electrons in an atom based on Bohr's theory with the location of electrons in an atom based on the current atomic theory. 2. Rutherf
how can you tell the difference between additive comparison and multiplication comparison