Applying attributes

Report a typo

One and the same tag can contain the id attribute and the class attribute simultaneously.

Let's see for ourselves: add to the h1 element id item with big value and the class with italic value. You should also complement the HTML markup.

Write HTML and CSS code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Golden Autumn</title>
</head>
<body>
<h1>Golden Autumn</h1>
<p class="italic">Autumn is often called golden and it is easy to guess why: leaves on trees change their color from green to different shades of yellow. It is impossible to cover all the variety of these colors: red copper, yellow ochre, brownish bronze, pale and orange gold. These colors always remind us of autumn.</p>
</body>
</html>

Completed 1 of 2
The <h1> element has id and class
The code is valid
___

Create a free account to access the full topic