It's a responsive tribute page that is the second challenge project of Responsive Web Design | FreeCodeCamp.
- Your tribute page should have a
main
element with a correspondingid
ofmain
, which contains all other elements - You should see an element with an
id
oftitle
, 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
figure
or adiv
element with anid
ofimg-div
- Within the
#img-div
element, you should see animg
element with a correspondingid="image"
- Within the
#img-div
element, 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
a
element 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 oftarget
and set it to_blank
in order for your link to open in a new tab - Your
#image
should usemax-width
andheight
properties to resize responsively, relative to the width of its parent element, without exceeding its original size - Your
img
element 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
main
element with anid
ofmain
. - Waiting:Your
#img-div
,#image
,#img-caption
,#tribute-info
, and#tribute-link
should all be descendants of#main
. - Waiting:You should have an element with an
id
oftitle
. - Waiting:Your
#title
should not be empty. - Waiting:You should have a
figure
ordiv
element with anid
ofimg-div
. - Waiting:You should have an
img
element with anid
ofimage
. - Waiting:Your
#image
should be a descendant of#img-div
. - Waiting:You should have a
figcaption
ordiv
element with anid
ofimg-caption
. - Waiting:Your
#img-caption
should be a descendant of#img-div
. - Waiting:Your
#img-caption
should not be empty. - Waiting:You should have an element with an
id
oftribute-info
. - Waiting:Your
#tribute-info
should not be empty. - Waiting:You should have an
a
element with anid
oftribute-link
. - Waiting:Your
#tribute-link
should have anhref
attribute and value. - Waiting:Your
#tribute-link
should have atarget
attribute set to_blank
. - Waiting:Your
img
element should have adisplay
ofblock
. - Waiting:Your
#image
should have amax-width
of100%
. - Waiting:Your
#image
should have aheight
ofauto
. - Waiting:Your
#image
should be centered within its parent.