Below is my tribute page attached, the first project I have worked on.
If you have any feedback on the project, feel free to express it!
Any help is much appreciated, thanks in advance.
Hi @sarah_kaal, nice page. However there are some things to fix:
Your page only passes 9/10 tests. It must pass all 10 tests to pass. To see which test you haven’t passed, click the red test button.
The DOCTYPE, html, head, and body tags are not required and shouldn’t be used in codepen. Instead, paste the code from the head in the ‘Stuff for head’ section of the pen settings.
In portrait mode on a mobile screen, the sentences ‘-Rumi, translated by Fereydoun Kia’ and ‘Read more on Rumi’s history’ overlap.
Your page looks good @sarah_kaal. Some things to revisit;
As mentioned, codepen provides the boilerplate for you. It only expects the code you’d put within the body element in HTML. (No need to include the body 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 again because you have elements out of order. Everything the browser renders belongs in the body element. You have a main element outside.
There are HTML coding errors you should be aware of and address.
Codepen provides validators for HTML, CSS and JS. Click on the down arrow in the upper right of each section and then click on the respective ‘Analyze’ link.
The one for CSS is good. Use it and address the issue(s).
(The one for HTML misses things which is why I recommend W3C)
Something to note. The style element is only used in the head element for internal styling.
You do not want to use the style element in the CSS section of codepen. It will cause problems.
Do not use the <br> element to force line breaks or spacing. That’s what CSS is for.