Consider the following HTML Solutioncolor of the p tag is po

Consider the following HTML

Solution

color of the p tag is powderblue for both quesitions.

Because if you not change the color name only change the class top to botten...

Hear The property is accessed by div is main tag in this tag we have a inner tag h1 and p.

div tag color is crimson so this color apply to the all inner tag of div tag.

p tag color is powderblue this color is override the cimsom color.

<!DOCTYPE html>
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<title></title>
<style>

/*The inner tags of div tag with contains info class all colors are crimson*/
div.info {
color:crimson;
}

/*only the p tag with class name contains the color powederblue*/
/*p.name is color is override the color crimson to powderblue*/
p.name {
color:powderblue;
}

/*If you interchange both class, name class move to top and top class info move to bottom it cant change of there proprety.
Because div.info is represent the inner tag of that div only.*/

</style>
</head>
<body>
<div class=\"info\">
<h1>My Chiness Nmae</h1>
<p class=\"name\">This is chinese</p>
</div>
</body>
</html>

 Consider the following HTML Solutioncolor of the p tag is powderblue for both quesitions. Because if you not change the color name only change the class top to

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site