It's a responsive tribute page that is the second challenge project of Responsive Web Design | FreeCodeCamp.
- Your tribute page should have a
mainelement with a correspondingidofmain, which contains all other elements - You should see an element with an
idoftitle, which contains a string (i.e. text), that describes the subject of the tribute page (e.g. "Dr. Norman Borlaug") - You should see either a
figureor adivelement with anidofimg-div - Within the
#img-divelement, you should see animgelement with a correspondingid="image" - Within the
#img-divelement, you should see an element with a correspondingid="img-caption"that contains textual content describing the image shown in#img-div - You should see an element with a corresponding
id="tribute-info", which contains textual content describing the subject of the tribute page - You should see an
aelement with a correspondingid="tribute-link", which links to an outside site, that contains additional information about the subject of the tribute page. HINT: You must give your element an attribute oftargetand set it to_blankin order for your link to open in a new tab - Your
#imageshould usemax-widthandheightproperties to resize responsively, relative to the width of its parent element, without exceeding its original size - Your
imgelement should be centered within its parent element
Fulfill the user stories and pass all the tests below to complete this project. Give it your own personal style. Happy Coding!
Note: Be sure to add <link rel="stylesheet" href="styles.css"> in your HTML to link your stylesheet and apply your CSS
- Waiting:You should have a
mainelement with anidofmain. - Waiting:Your
#img-div,#image,#img-caption,#tribute-info, and#tribute-linkshould all be descendants of#main. - Waiting:You should have an element with an
idoftitle. - Waiting:Your
#titleshould not be empty. - Waiting:You should have a
figureordivelement with anidofimg-div. - Waiting:You should have an
imgelement with anidofimage. - Waiting:Your
#imageshould be a descendant of#img-div. - Waiting:You should have a
figcaptionordivelement with anidofimg-caption. - Waiting:Your
#img-captionshould be a descendant of#img-div. - Waiting:Your
#img-captionshould not be empty. - Waiting:You should have an element with an
idoftribute-info. - Waiting:Your
#tribute-infoshould not be empty. - Waiting:You should have an
aelement with anidoftribute-link. - Waiting:Your
#tribute-linkshould have anhrefattribute and value. - Waiting:Your
#tribute-linkshould have atargetattribute set to_blank. - Waiting:Your
imgelement should have adisplayofblock. - Waiting:Your
#imageshould have amax-widthof100%. - Waiting:Your
#imageshould have aheightofauto. - Waiting:Your
#imageshould be centered within its parent.