style.css
index.html
body, section { padding: 20px; } section { background-color: gold; display: flex; justify-content: center; } img { display: block; width: 60%; }
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="/assets/styles/reset.css" rel="stylesheet"> <link href="style.css" rel="stylesheet"> </head> <body> <section> <img src="tim.jpg" alt="Tim Berners-Lee at a computer."> </section> </body> </html>