Hi there, fellow campers! I’m currently working through the “Full-Stack Engineer” course on W3Schools and have been stuck on a particular challenge, despite seemingly meeting all the requirements. Any help or resources on the error with my tags would be immensely appreciated.
Hi pkdvalis!
Thank you so much for taking the time to help me understand my error. The W3 elements coding challenge
Hopefully, the link works. Please let me know if it doesn’t.
Regards Friend
Have you tried removing the whitespace inside your code elements? If not, does it work without the pre elements around the code elements?
That particular part of the challenge was inside a paywall for me but I can see which bit hasn’t passed.
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
<p>Learn new tags</p>
<iframe src='https://www.example.com'></iframe>
<code>
let x = 10;
</code>
<p class='emoji'>😊</p>
First I apologize for the response delay. Thank you for the information about posting code in backticks for optimal readability, hopefully I did that properly. Also thank you very much for the suggestion of removing the whitespace within the code block, unfortunately it still isn’t passing.
As to running the block without the pre elements I actually tried that on my first few attempts I just thought it looked more efficient as output on its own separate line.
Any further help would be immensely appreciated as I think the code is really close to satisfying the requirement even if reattempting it feels like bordering on Einstein’s definition of insanity.
absolutely sorry so sorry again for the response delay
Requirements
Add an iframe that loads the URL 'https://www.example.com'.
Add a code block (inside <code> tags) with the text 'let x = 10;'.
Add a paragraph with a class 'emoji' that contains the emoji '😊'.
Thanks so much for the continued help and patience
Hello! Thank you for the suggestion I agree. Unfortunately even with the space within the block removed the 2nd requirement is still being counted as incorrect