Tell us what’s happening:
So basically I just finished my tribute page using this code but am having trouble finding out the issue of the tests. It asked me that #img-div
, #image
, #img-caption
, #tribute-info
, and #tribute-link
should all be descendants of #main
Can you check my code so far to figure out the issue so that I can fix it thank you
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main id="main"></main>
<div class="header">
<h1 id="title">Martin Luther King </h1>
<p>The man who wrote my dream speech</p>
<main id="main"></main>
</header>
<div id="img-div">
<div id="img-bk">
<Img id="image" src="https://media.npr.org/assets/img/2017/01/15/king-speech_custom-55a36ccca2c18277f6560b860375bd766a40c22d-s800-c85.webp">
<a href="https://media.npr.org/assets/img/2017/01/15/king-speech_custom-55a36ccca2c18277f6560b860375bd766a40c22d-s800-c85.webp" target="_blank" id="tribute-link">For 5 Electrifying Facts About MLK!</a>
<div id="img-caption"
<p>Martin Luther king from the right,waving to many freedom activists.</p>
</div>
</div>
</div>
<div>
<div id="info">
<h2>Here are some biography of Martin Luther king's life</h2>
<section> <p><ul><li><strong> 1925</strong> - Born in Atlanta, Georgia
<p><ul><li><strong>1951</strong>-
King began doctoral studies in systematic theology at Boston University,[88] and worked as an assistant minister at Boston's historic Twelfth Baptist Church with William Hunter Hester. <p><ul><li><strong>1945</strong> - the lynchings of five African-Americans in Georgia made national headlines and pricked the conscience of a Morehouse College student. </li></ul></p>
<p><ul><li><strong>1950</strong>
In the mid-1950s, King led the movement to end segregation and counter prejudice in the United States through the means of peaceful protest.
<p><ul><li><strong>1953</strong> - While in Boston he met Coretta Scott, a young singer from Alabama who was studying at the New England Conservatory of Music. The couple wed in 1953 and settled in Montgomery, Alabama, where King became pastor of the Dexter Avenue Baptist Church..</li></ul></p>
<p><ul><li><strong>1960</strong> -Got assasinated by James Earl Ray</li></ul></p>
<p id="tribute-info">Martin Luther King, Jr.'s contributions continue to inspire generations, reminding us of the power of peaceful protest and the pursuit of a more just and equal society.
<p id="tribute-info">-- Former pastor and activist</p>
</div>
<footer>
<p ><strong>Read this in your freetime for more info about Martin Jr because it is important to learn about this incredibly, courageous, key person in our history</strong></p>
</div>
</main>
</body>
</html>
/* file: styles.css */
#image{
width: 100%;
height: auto;
display:block;
max-width:100%
}
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Challenge Information:
Tribute Page - Build a Tribute Page