149k views
2 votes
Next, let's examine what happens when you apply a style to an element that contains other elements. The body element in the HTML file contains all the elements that are displayed. Clear the existing code from the style sheet, and set the color of the body element to green. Write the code for the style change and record what you observe.

User Babbata
by
4.4k points

1 Answer

4 votes

Answer:

When the body element CSS color style was changed, The color of all the text in the HTML file changed to the specified color, the same goes for font-size, font-weight, etc.

Step-by-step explanation:

HTML or hypertext markup language is a markup language used in web development to implement the position and structure of the web page. It has no style, so, CSS or cascading style sheet is used to style the HTML elements in the web page.

User Contra
by
4.6k points