Tribute Page - Build a Tribute Page

Tell us what’s happening:

I do not know why I can’t pass some tests. I get these errors
image

Your code so far

This is my html code

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vangelis Tribute Page</title>
    <link rel="stylesheet" href="styles/styles.css">
</head>
<body>
    <!-- Main section -->
    <main id="main">
        <!-- Title Section -->
        <h1 id="title">VANGELIS PAPATHANASSIOU</h1>
        </h1>
        <p>The best electronic music composer of all time</p>
        <!-- Image section -->
        <figure id="img-div">
            <img id="image" src="images/Vangelis.png" alt="Vangelis portrait">
            <figcaption id="img-caption">Vangelis Papathanassiou</figcaption>
        </figure>


and in css I have this 

body {
font-size: 1.6rem;
line-height: 1.5;
text-align: center;
margin: 0;
color: #333;
}

p {
margin-top: -40px;
margin-bottom: 40px;
}

#image {
display: block;
max-width: 100%;
height: auto;
margin: 0 auto;

}

ul {
max-width: 90%;
margin: 0 auto 50px auto;
text-align: left;
list-style-type: disc;
}

li {
margin-bottom: 20px;
}

Thx for your help.

`type or paste code here`

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge Information:

Tribute Page - Build a Tribute Page

Hello!
You linked the CSS wrong. Your href is suppsed to be styles.css not styles/styles.css

In addition to what @zuhameer6 said,
You closed the <h1> tag twice in your HTML.

For target _blank, You need an anchor element in your tribute page.

You need img element selector with property value display block.

You need #img-div selector with margin 0 auto.

Thx, I wrote the code in Visual Studio, that’s why. Now is working. Thx again to all of you, guys.

1 Like

Oh, makes sense. You are welcome. Happy coding.

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