Computer scienceFrontendHTMLHTML IntroText formatting

<samp>, <kbd>, <code> tags

Add computer code

Report a typo

In the HTML code given below, enclose the "text-color" CSS property inside the correct semantic tag so that it represents a piece of computer code.

Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Computer code</title>
</head>
<body>
<h1>CSS property</h1>
<p>
The text-color CSS property is used to set the color of the HTML text.
</p>
</body>
</html>

Completed 1 of 2
Enclose the text-color inside the correct semantic tag
The code is valid
___

Create a free account to access the full topic