Several declarations

Report a typo

Add the width property with the value of 250 pixels and the height property with the value of 300 pixels to all <img> elements.

Then add the text-align property with the value of center to the <body> element. This property aligns the content in the center.

Write HTML and CSS code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Basic syntax</title>
</head>
<body>
<h1>Art gallery</h1>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Meisje_met_de_parel.jpg/800px-Meisje_met_de_parel.jpg">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/20/Johannes_Vermeer_-_Het_melkmeisje_-_Google_Art_Project.jpg/800px-Johannes_Vermeer_-_Het_melkmeisje_-_Google_Art_Project.jpg">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Johannes_Vermeer_-_The_Astronomer_-_WGA24685.jpg/300px-Johannes_Vermeer_-_The_Astronomer_-_WGA24685.jpg">
</body>
</html>
Completed 1 of 4
Images on a web page have width equal to 250 pixels
Images on a web page have height equal to 300 pixels
___

Create a free account to access the full topic