-
Notifications
You must be signed in to change notification settings - Fork 0
Build a Tribute Page
Missy edited this page May 15, 2023
·
3 revisions
Objective: Build an app that is functionally similar to https://tribute-page.freecodecamp.rocks/
User Stories:
- Your tribute page should have a main element with a corresponding id of main, which contains all other elements
- You should see an element with an id of title, 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 a div element with an id of img-div
- Within the #img-div element, you should see an img element with a corresponding id=“image”
- Within the #img-div element, you should see an element with a corresponding id=“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 corresponding id=“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 of target and set it to _blank in order for your link to open in a new tab
- Your #image should use max-width and height 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
Tests
- Waiting: You should have a main element with an id of main.
- 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 of title.
- Waiting: Your #title should not be empty.
- Waiting: You should have a figure or div element with an id of img-div.
- Waiting: You should have an img element with an id of image.
- Waiting: Your #image should be a descendant of #img-div.
- Waiting: You should have a figcaption or div element with an id of img-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 of tribute-info.
- Waiting: Your #tribute-info should not be empty.
- Waiting: You should have an a element with an id of tribute-link.
- Waiting: Your #tribute-link should have an href attribute and value.
- Waiting: Your #tribute-link should have a target attribute set to _blank.
- Waiting: Your img element should have a display of block.
- Waiting: Your #image should have a max-width of 100%.
- Waiting: Your #image should have a height of auto.
- Waiting: Your #image should be centered within its parent.
- Responsive Web Design Certification
- JavaScript Algorithms and Data Structures (Beta) Certification
- Front End Development Libraries Certification
- Data Visualization Certification
- Relational Database Certification
- Back End Development and APIs Certification
- Quality Assurance Certification
- Scientific Computing with Python (Beta) Certification
- Data Analysis with Python Certification
- Information Security Certification
- Machine Learning with Python Certification
- College Algebra with Python Certification
- A2 English for Developers (Beta) Certification
- (New) Foundational C# with Microsoft Certification
- The Odin Project (Beta)
- Coding Interview Prep
- Project Euler
- Rosetta Code
- Legacy Responsive Web Design Challenges
- JavaScript Algorithms and Data Structures Certification
- Legacy Python for Everybody