Survey Form - Build a Survey Form

Tell us what’s happening:

So i actually managed to land this in my first attempt but the thing is, when i download the file it opens as a plaint text. I changed the extension to html and openef it in a new tab but it loaded without the styles i’ve created.

Your code so far

<!-- file: index.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/133.0.0.0 Safari/537.36

Challenge Information:

Survey Form - Build a Survey Form

Welcome to the forum

Please share your code.

Does this happen only locally or on the fCC platform as well?

1 Like

Hey! I’m completly new to the whole coding stuff so yeah. I can see the form i created just fine in this site but when i try to download it only index.html gets downloaded without the style.css. I’m not sure how to share my code with you

If I get it right, the CSS code is below your html code, so you have to copy the CSS code to another file. Let me know if this is the issue.

I think that’s what i just did. i coied the css file into a note in my pc and put it together with the html code in one file and it worked. though now when i opens it on my browser it has this ugly “start of undefined and end of undefined” with a bunch of codes at the bottom

You should end up with 2 separate files, one for your html code (whatevername.html) and one for your CSS code (styles.css) in the same folder. Get rid of those “** start of undefined **” and ** end of undefined ** anywhere in your code. Let me know if you already did that.

1 Like

It worked! i hade to copy both files manually but it worked. shout out to u and the other guy. i had to ask though is this how it works usually? i mean if i ever wanted to download my projects? or is there a program i can install to make things faster

1 Like

Welcome! I use Vscode, with it it’s easier to deal with multiple files, copy and paste code, edit code, work with a live server while you code, etc. There are plenty of alternatives and, as you can imagine, picking one depends on what you want to do.

1 Like