Tribute Page - Build a Tribute Page

Tell us what’s happening:
Hey, so I’m completing the tribute page challenge and the tests are failing on the img bits. As you can see in my CSS I have the required items in the css file but it’s not passing the test for some reason. It would be helpful to have a second set of eyes look over it. Many thanks!

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css">
    <title id="title">Lewis Hamilton</title>
    <main id="main">
        <h1>Lewis Hamilton 7 time Formula 1 World Champion</h1>
        <div id="img-div">
            <img src="" alt="lewishamilton" id="image">
            <div id="img-caption">Lewis Hamilton Confirmed to keep driving for Mercedes in 2022.</div>
        <div id="tribute-info">
            <h2>Lewis Hamilton</h2>
               Sir Lewis Carl Davidson Hamilton MBE HonFREng (born 7 January 1985) is a British racing driver currently competing in Formula One for Mercedes. In Formula One, Hamilton has won a joint-record seven World Drivers' Championship titles (tied with Michael Schumacher), and holds the records for the most wins (103), pole positions (103), and podium finishes (190), among others.
               Born and raised in Stevenage, Hertfordshire, Hamilton joined the McLaren young driver programme in 1998. This led to a Formula One drive with McLaren from 2007 to 2012, making Hamilton the first, and so far only, black driver to race in the series. In his inaugural season, Hamilton set numerous records as he finished runner-up to Kimi Räikkönen by one point. The following season, he won his maiden title in dramatic fashion—making a crucial overtake on the last lap of the last race of the season—to become the then-youngest Formula One World Champion in history. After six years with McLaren, Hamilton signed with Mercedes in 2013.
               Changes to the regulations for 2014 mandating the use of turbo-hybrid engines saw the start of a highly successful period for Hamilton, during which he has won six further drivers' titles. Consecutive titles came in 2014 and 2015 during an intense rivalry with teammate Nico Rosberg. Following Rosberg's retirement, Ferrari's Sebastian Vettel became Hamilton's closest rival in two championship battles, in which Hamilton twice overturned mid-season point deficits to claim consecutive titles again in 2017 and 2018. His third and fourth consecutive titles followed in 2019 and 2020 to equal Schumacher's record of seven drivers' titles.
               Hamilton has been credited with furthering Formula One's global following by appealing to a broader audience outside the sport, in part due to his high-profile lifestyle, environmental and social activism, and exploits in music and fashion. He has also become a prominent advocate in support of activism to combat racism and push for increased diversity in motorsport. Hamilton was listed in the 2020 issue of Time as one of the 100 most influential people globally, and was knighted in the 2021 New Year Honours.

       <a href="" id="tribute-link" target="_blank">More Info on LH44</a>
/* file: styles.css */
    display: block;
    max-width: 100%;
    height: auto;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

change this to img only as the test says “your img element” but does not say the element with id img.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.