What is a form tag?

*Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>
<label for="indoor">
<input id="indoor" type="radio" name="indoor-outdoor">indoor
</label>
<a href="#"><img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
<label for="outdoor">
<input id="outdoor" type="radio" name="indoor-outdoor">outdoor
</label>
<p>Things cats love:</p>
<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>
<form action="https://www.freecatphotoapp.com/submit-cat-photo">
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
</main>
  **Your browser information:**

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Hi @cvandyk !

You ask, What is a form tag?

This is a form tag.

<form action="https://www.freecatphotoapp.com/submit-cat-photo">
  <input type="text" placeholder="cat photo URL" required>

RADIO BUTTONS GO INSIDE HERE
  <button type="submit">Submit</button>
</form>

“What is a form tag?”

This is something you should research but
An element is a set of opening and closing tags in use. Tags are labels you use to mark up the begining and end of an element . All tags have the same format: they begin with a less-than sign “<” and end with a greater-than sign “>”.

Example
<p> is the starting tag of a paragraph and </p> is the closing tag of the same paragraph but <p>This is paragraph</p> is a paragraph element

I assume you are referring to the test message

Each of your radio button elements should be added within the form tag.

It just means your radio button elements should be inside the form element.


Side note: In my opinion, the message should be corrected to say, “within the form element”, and not tag. Attributes go within the starting tag, child elements go within the parent element. But I can see this is not the only challenge where it is worded as such.

1 Like

thank you for the help

Thank you for the help.

Thank you for the help I will try that.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.