Hello,
Thanks to your help here on the forum I did manage to get all the tests to pass.
But I can’t hand it in as the spacing is all weird on the page…my eyes are going weird just looking at all so much so just wondering if anyone can give me an idea of what I can be looking at to harmonise the text/questions on the page.
Why is there a good gap between Name and the input box but this does not appear for the Email and its input box?
I can live with the spacing of the questions but I would like less space between the questions and answer-options. I am not sure how I have even managed to do it.
If you can help in any small or large way , then I would much appreciate it.
The first thing is that you have to get rid of the html errors. Html errors can affect how your styles work sometimes. So I would run my code through the html validator and fix those errors.(You can ignore the messages about doctype, html tags) I would also get in the habit of formatting your code so you can find issues faster. Codepen has a format html tool
Once you fix those issues, and consistently write the labels and inputs all of the same way, then you can decrease the margins to create less space between elements.
Thank you. That’s amazing and a massive help. And yes I will run the code through too.
Of course, now I am looking at it on my laptop, it is all looking very different anyhow so guess I should put something in the code to address the responsive media issue.
Thanks again for your help.
Thank you…yes I realise it is all over the page even though I don’t know exactly what I am looking at…there are an embarrassing number of errors. I did manage to work through the errors for The Tribute Page but not so sure I can with this.
For example, it says with this line 1. <div class="text">↩ Error: No space between attributes. There is not much I can do about this as if i remove it then the page fails one of 17 tests…if i add or remove spaces then it makes no difference to the validator and still fails…
I had very briefly read about Flexbox as its touched upon in the code camp curriculum but havent recalled it so will be good to look again. I guess its all an iterative process.
Will just keep going …!
Thanks again for your help.
This <h1 id=title> is not the correct way to set an attribute
This <img id="image" src="https://miro.medium.com/max/3840/1*12ntdOERAn5lUjGRIFJ2ug.jpeg" width="600" height="300" alt="image of Audrey Heburn drinking a cup of tea> is not the correct way to set the alt attribute. (Something’s missing)
There are a lot of typo’s in your code. As a suggestion switch the Syntax Highlighting on Codepen to help catch errors. Go to your Codepen profile settings (not the setting for the pen, but for your profile). Switch the Syntax Highlighting to Oceanic Dark and save the setting. Go back to the pen and make sure your new setting is working. The code highlighting will be using different colors. Errors will now be marked in red.
After correcting typo’s then run your HTML code through the W3C validator and correct any syntax errors.
Edit: To help you visualize how you have your elements set up, temporarily add the following to the top of the CSS editor;
Yes this is the way I need to approach it in future. I think I will just start this page again as that will hopefully be better than trying to go through the 70+ errors on the validator. Thanks again so much for you help.