Survey Form - Build a Survey Form: Run the tests and Metadata

Tell us what’s happening:

Describe your issue in detail here.

Hi! So I wrote the Metadata for the project and tried to run the test on it… I was confused, because most of my code appeared in red as I wrote it in, so I wondered if FreeCodeCamp was reading it as wrong somehow… Does the ‘Run the tests’ function only work for code directly related to the user stories? Obviously, when I run the tests, I am seeing I left blank all user stories so far, so I see a cross next to each user story (‘You should have an h1 element with an id of title, Your title should not be empty’ etc… ) But I just assumed ‘Run the tests’ would indicate if my Metadata codes were wrong, and I am confused at all the code being marked in red. I then wondered if I didn’t need the Metadata because of how FreeCodeCamp works, but I still had to have one to link my HTML file to its CSS with <link rel="stylesheet" href="styles.css"> but when I took off my entire Metadata and just left the linking HTML and CSS one, that particular line of code displayed in red for me… So are we meant to write the full Metadata as I did below? Is my code wrong and is this why everything seems to display in red? Am I just supposed to like my HTML with my CSS and dispense with the entire Metadata? And any clues on how the ‘Run the tests’ function works: am I using it wrong? As if I am, I’d need to learn how to use it, since this is my first Certification project but I hope to complete them all in time… Also, as I create this post, please note LESS of my code is displayed in red here, but on the main platform most of it is. Thank you! :sweat_smile:

Your code so far

<!-- file: index.html -->
    <!DOCTYPE html>
   <html>
        <head>
    <meta charset=“UTF-8”>
    <meta name=“survey” content=“Mercury Airlines satisfaction survey”>
    <meta name=“keywords” content=“satisfaction survey, Mercury Airlines, travel, Tourism”>
      <meta name=“author” content=“Judith Rekassa”>
      <title>Are you happy with us?</title>
     <meta name=“viewport” content=“width=device-width, initial-scale=1.0”>
     <link rel=“stylesheet” href=“styles.css”>
      </head>
         <body>
         </body>
         </html>


/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 AVG/121.0.0.0

Challenge Information:

Survey Form - Build a Survey Form

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

And the system tells me I haven’t edited the template. I totally have, and it’s displaying properly, so no idea what this is about! :sweat_smile:

Hi @Judith83

You code appears to use funky quotes. Try using regular quote marks.

Happy coding

1 Like

Hi Teller, actually, these are the quotes that are placed by any browser I use on any device I use for HTML. When I type the = sign, my browser(s) go: "" , and it’s up to me to write the correct attribute in there. I have worked so far with five devices, at least four browsers, FreeCodeCamp and three code editors, and all do that for me. Reading your comment I checked, and apparently single quotation marks , like 'attribute' , work but according to Stackoverflow can be used interchangeably with double quotation marks. My point is, code editors totally accept my quotation marks and what I code properly displays on my webpages. And also, I have passed all steps on the four non-compulsory projects in FreeCodeCamp before the first certification project, so definitely, FreeCodeCamp accepts my quotation marks. I really am getting more a sense that maybe FreeCodeCamp is not accepting my Metadata, so my question is more: if I am trying to write code because it’s best practice but it isn’t part of the User Stories for the certification project, is this causing issues with FreeCodeCamp? Am I supposed to dispense with any Metadata, or maybe just link my HTML file to the CSS and dispense with the rest? Thank you!

These are indeed the wrong quotation marks. You have to use "" or '' and not “”

Using the wrong quotes can break all of your syntax. I would start by fixing all of the quotation marks and posting your updated code.

I have used those on every project so far though, since these are the ones suggested by the browser when I am coding, and they systematically passed on the four projects before the certification project? This is still not telling me whether FreeCodeCamp would actually accept Metadata for certification projects themselves? I can make sure to take off the quotes they suggest and type my own… But that shouldn’t make a difference if FreeCodeCamp doesn’t want my Metadata in the first place…

Please stop posting your replies twice.

My account is broken Jeremy: if I post a reply once, it doesn’t mark it as a reply. I post twice because I can find no way around this, in like one year since I’ve started using this forum.

Please don’t post twice.

I literally posted just once just now and explained, please see my last comment.

I saw your last post. I’m saying that no matter what reason you have, please only post replies once, not twice.


I’d start with fixing the quotes in your code first. Remove that problem first.

OK but I don’t know who I should ask, who I should write to, in terms of getting that problem with not being able to reply to the person who posted from the first go: it’s one thing when the person I am talking to is online at the same time as me, but if they’re not and reply doesn’t tag them in the reply, then that breaks the flow of conversation. Who should I notify about this? Re the quotation marks, noted, I’ll try. Not sure how, since my browser seems intent on using THOSE quotation marks, but I’ll try manually. Thank you.

I would assume you are using Apple? That OS is the worst about inserting the wrong quotation marks automatically.


If you click the Reply button, your post will show as a reply.
image

is there a way you can turn smart quotes off in the settings?

1 Like

Maybe it’s my end that, as soon as I post, it looks like it wasn’t a reply. Maybe your end it shows that I am responding twice, in which case there’s no need for me to post twice indeed since the person was tagged first time, but that wasn’t what I was seeing my end. Is there a place, in the forum or anywhere else on the FreeCodeCamp, where it is explained how to fix the issue, if it’s my end, or pertaining to my account? And no, my devices are all either Windows 11 or Windows 10, I don’t own any Apple / Mac computer.

Excellent idea, thank you! I’ll have a look! Thank you!

1 Like

The forum software shows you making two replies.

If you use the Reply button, trust the Reply button.

I had deleted my first post because it posted without replying to you, and I couldn’t get it to reply to you through just editing my post. Right now it seems to be working again, but I’ve had this problem since May. Since I think a lot of you guys are probably in the US and I’m in Europe, it’s a problem if the user I am talking to is not online when I reply, as they would miss my reply.