Computer scienceFrontendHTMLHTML element categories

Inline elements

Fix the bug

Report a typo

You and your peer programmer are playing a game where you must choose one HTML element from a given set of five elements and use it once to replace the existing <p> tag. Display the given quote on a single line without any additional styling or effects.

Five available HTML elements: <button>, <span>, <b>, <sup>, <sub>

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>Fix the bug</title>
</head>
<body>
<p>Java</p>
<p>is to</p>
<p>JavaScript</p>
<p>what car is to Carpet.</p>
</body>
</html>



Completed 1 of 2
You have chosen correct HTML element from the list above.
The code is valid.
___

Create a free account to access the full topic