Computer scienceFrontendCSSSelectors in Depth

Attribute selectors and Universal selector

Dolphin

Report a typo

Underline the entry "dolphin" using a combination of selectors and text-decoration: underline.

Write HTML and CSS code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Animals</title>
</head>
<body>
<h2 class="mammal" title="terrestrial"> Terrestrial mammals </h2>
<p class="mammal" title="terrestrial"> Cat </p>
<p class="mammal" title="terrestrial"> Dog </p>
<h2 class="insect" title="terrestrial"> Insects </h2>
<p class="insect" title="terrestrial"> Fly </p>
<p class="insect" title="terrestrial"> Ant </p>
<h2 class="mammal" title="aquatic"> Aquatic mammals </h2>
<p class="mammal" title="aquatic"> Dolphin </p>
</body>
</html>
Completed 3 of 4
Dolphin is underlined
"Aquatic mammals" is not underlined.
___

Create a free account to access the full topic