<!DOCTYPE html> <html> <head> <title>Endangered Species</title> <style> body {…
- User
<body> <h1>Endangered Animals</h1> <h2>Florida Panther</h2> <ul> <li>Scientific Name: *Puma concolor coryi*</li> <li>Location: Florida, USA</li> <li>Status: Endangered</li> </ul> <h2>Red Wolf</h2> <ul> <li>Scientific Name: *Canis rufus*</li> <li>Location: Southeastern USA</li> <li>Status: Endangered</li> </ul> <h2>Louisiana Black Bear</h2> <ul> <li>Scientific Name: *Ursus americanus luteolus*</li> <li>Location: Louisiana, Mississippi, Texas</li> <li>Status: Threatened</li> </ul> <h2>California Condor</h2> <ul> <li>Scientific Name: *Gymnogyps californianus*</li> <li>Location: California, Arizona, Utah</li> <li>Status: Endangered</li> </ul> </body>5 points Status: Not Submitted
Copy over the HTML from the Endangered Animals: Style the Headers assignment that you completed in the last lesson.
Add a Class to the “Endangered” or “Threatened” List Items Under each animal, the third list item should state whether the animal is “Endangered” or “Threatened”.
Give the list items that say “Endangered” the class endangered. Give the list items that say “Threatened” the class threatened.
Add a Class to the Scientific Name List Item One of the other list items should have the scientific name of the animal. Give that list item the class scientific-name.
Add Styles to the Classes Then, add a CSS rule for the classes endangered, threatened, and scientific-name. Make the font color for endangered red. Make the font color for threatened OrangeRed. Make the font style for scientific-name italic.
The result should be that the word “Endangered” will be red, the word “Threatened” will be a lighter red, and the scientific names will be italicized, like this:
1/6
Pass Test Message You must have a style tag Great! The list items that say "Endangered" should have the class "endangered" Try again! The list items that say "Threatened" should have the class "threatened" Try again! You should have at least one element with the class "endangered", and it should have the font color "red" Did you spell "endangered" correctly? You should have at least one element with the class "threatened", and it should have the font color "OrangeRed" Did you spell "threatened" correctly? You should have at 3 elements with the class "scientific-name", and it should have the "font-style" "italic" Did you spell "scientific-name" correctly? - Assistant