Hello there.
Do you have a question?
If so, please edit your post to include it in the Tell us whatâs happening section.
The more information you give us, the more likely we are to be able to help.
Hi
Just need some feedback on my tribute page and some guidance.
I added the element with âid=âtribute-linkââ with link to another site. test results cameback as failed.
I thought the img was responsive failed that as well.
Can you please give your code??
@davonwright1988, some things to revisit;
- Keep the test script when forking the pen (
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
)- The test script should be included, with all tests passing, when you submit your projects.
- Your page passes 5/10 user stories. Click the red button to see which test(s) are failing and text to help you correct the issue. (Be sure and read more than just the first line of the failing message.)
So more than just the two issues you mentioned. Regarding them, read more than just the first line in the failing message. It will tell you what itâs looking for and give you help on how to resolve it.
For instance, with the .tribute_link
the failing message says;
I 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 (i.e. target="_blank").
The target attribute should be set to "_blank", in order for the link to open in a new tab : expected 'blank' to equal '_blank'
AssertionError: The target attribute should be set to "_blank", in order for the link to open in a new tab : expected 'blank' to equal '_blank'
Do you see what the test is looking for versus what you have?
Thank you.
I fixed the issues updated tribute.
Did you save after making changes?
Iâm still seeing your page
- without the test script
- with 5/10 user stories passing
Looks better @davonwright1988. Some things to revisit;
- The test script should be included, with all tests passing, when you submit your projects.
- Your page passes 9/10 user stories. Click the red button to see which test(s) are failing and text to help you correct the issue. (Be sure and read more than just the first line of the failing message.)
- Codepen provides the boilerplate for you. It only expects the code youâd put within the
body
element in HTML. (No need to include thebody
tags). For anything you want to add to the<head>
element click on the âSettingsâ button, then HTML and add it into the âStuff for <head>â box.- The link to the font goes in the box labeled âStuff for <head>â
- Mentioning because you have elements out of order. The
head
element would not/should not be in thebody
. Review this for an understanding of the HTML boilerplate tags.
- Run your HTML code through the W3C validator.
- There are HTML coding errors you should be aware of and address.
- Since copy/paste from codepen you can ignore the first warning and first two errors.
- Accessibility is about being accessible to all users. Review the lesson about giving meaningful text to links.
-
Web Accessibility in Mind has a more thorough explanation.
- âhereâ is not accessible
-
Web Accessibility in Mind has a more thorough explanation.
Users are not seeing your page the way you intend.
- Not sure if you noticed but even though youâre using the
<strong>
tag the text on your page doesnât render as such. This is because when you imported your font you only selected one weight.
You should select the normal weight (400) and the bold weight (700) when you link your font. So for instance, the Raleway link would look like;
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap" rel="stylesheet">
On a side note, in the HTML and CSS sections click on the chevron (down arrow) in the upper right and then click âformatâ to make it easier for yourself and others to read your code.
Wow I overlooked so many things.
Thanks for looking over my code and the feedback.
No worries. Here to help.
Let us see it again when things are cleaned up.
Looks good, well done! Nice layout and design.
Good job cleaning things up @davonwright1988. The formatted code is much easier to read. Somethings to revisit;
- Run your code through the W3C validator again.
- Youâre using the
title
element incorrectly.title
is a reserved keyword that is only used in thehead
element. Maybe using anh1
element here to give your page a title is a better idea. A few other minor things to clean up too.
- Youâre using the
- The heavier weight is still not showing for your fonts. You need to select both font weights for your fonts if you want the browser to display the heavier weight.