The HTML code below has an image. You have to set the width and height of the image using HTML attributes.
Input attributes
Set sizes
Report a typo
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>Set sizes</title>
</head>
<body>
<img
src="https://cdn.pixabay.com/photo/2015/04/23/17/41/javascript-736400_1280.png"
alt="JavaScript logo"
/>
</body>
</html>
Completed 1 of 3
Set the width of the image to 200px.
Set the height of the image to 200px
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.