Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
/* file: index.html */
<main id="main">
<title id="title">Mother teresea</main>
<div id="img-div">
<img id="image" src="https://www.biography.com/.image/t_share/MTE1ODA0OTcxODAxNTQ0MjA1/mother-teresa-9504160-1-402.jpg" alt="picture of mother teresa">
</div>
</main>
/* file: styles.css */
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Challenge: Build a Tribute Page
Link to the challenge:
HI @fort.baguio !
Your code is not working because of this part here
You have an opening title tag and a closing main tag which is incorrect.
You don’t want to use any of those tags here.
The title tags is the title that is shown in the browser’s title bar and belong in the head element.
The main element represents the main content of the page, and you are already using that here
fort.baguio:
<main id="main">
I would suggest using a heading element here
To learn more about title elements and the proper use of them you can read the docs here
1 Like
Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
/* file: index.html */
<main id="main">
<title id="title">Mother teresea</main>
<div id="img-div">
<img id="image" src="https://www.biography.com/.image/t_share/MTE1ODA0OTcxODAxNTQ0MjA1/mother-teresa-9504160-1-402.jpg" alt=" PICTRUE OF MOTHER TERESA"></img>
<h2 id="img-caption">
Mother teresa was born on 1910</h2>
</div>
</main>
/* file: styles.css */
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Challenge: Build a Tribute Page
Link to the challenge:
This part is still incorrect
img elements do not have end tags because they are self closing.
This is incorrect
fort.baguio:
</img>
The directions say you should have a figcaption
or div
element with an id
of img-caption
.
Right now you are using an h2
here which is incorrect
When I fix those things, then it passes.
system
Closed
December 19, 2022, 4:46am
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.