CSS demonstration

Exercise 6 - Three style sheets on the same page

  1. In Notepad, replace the first <p> tag in exercise5.html with:
    <p style = "background-color: white; margin-right: 435px">
  2. Save the changed file, under the same name, and Open exercise5.html in your browser window.
    Notice how the background-color and margin-right properties are inherited from the inline style sheet.

Home page

Copyright