0

What's wrong in my code?

<html> <head> <title>Product Name</title> </head> <body> <header><h1>New Awesome Product</h1></header> <main> <h1>Irving</h1> <img src="https://blob.sololearn.com/courses/np.png"> <p>Introducing our <b>lastest product</b>, designed to make your life easier and more efficient.</p> <!-- Here i have used <p> tag to use paragraph as description --> <ul> <li>Feature 1</li> <li>Feature 2</li> <li>Feature 3</li> </ul> <h2>Order Now!</h2> <form> <label for= "size">Size</label> <select id="size"> <option selected>Small</option> <option>Large</option> <option>XL</option> </select> <label for= "color" >Color</label> <select id="color"> <option selected>Red</option> <option>Green</option> <option>Yellow</option> </select><br> <label for= "name">Name</label> <input type="text" id="name"><br> <label for= "email">Email</label> <input type="email" id="email"><br> <input type="submit"> </form> </main> <footer> <p>Made with 3</p> </footer> </body> </html>

22nd Jul 2025, 2:43 AM
Irving Zamudio Badillo
Irving Zamudio Badillo - avatar
6 odpowiedzi
+ 1
Looks good to me . I tried it and it seems to be working. What is not working? What is the expected behavior vs what is actually happening?
22nd Jul 2025, 2:53 AM
Zvi
Zvi - avatar
+ 4
The only thing I see missing right off is the missing <!doctype html> The rest of the code appears to be working. Unless you are referring to the <select><option> as <select id="size"> <option value="small" selected>Small</option> <option value="large">Large</option> <option value="xl">XL</option> </select> <select id="color"> <option value="red" selected>Red</option> <option value="green">Green</option> <option value="yellow">Yellow</option> </select>
22nd Jul 2025, 3:29 AM
BroFar
BroFar - avatar
+ 2
Irving Zamudio Badillo try copying the html side ( cut ) then execute ( don't confirm ... ) then paste the html back ..
22nd Jul 2025, 3:42 AM
BroFar
BroFar - avatar
+ 1
It's my activity, but when I try to confirm it, an error pops up and won't let me advance to the next lesson.
22nd Jul 2025, 3:32 AM
Irving Zamudio Badillo
Irving Zamudio Badillo - avatar
0
Nothing is wrong with this, it's a valid HTML. Is there a specific unexpected behavior you see?
22nd Jul 2025, 2:50 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
0
Don't forget to add <!DOCTYPE html>
22nd Jul 2025, 7:38 AM
Nazwa Shabrina Zain
Nazwa Shabrina Zain - avatar