Can someone help please, how to input require attribute

Make your text input a required field, so that your user can’t submit the form without completing this field.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

<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">
  <button type="submit">Submit</button>
  <input type="text" require="require>"

</form>
</main>
  **Your browser information:**

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

Challenge: Use HTML5 to Require a Field

Link to the challenge:

Hi,

the required attribute does not need any value. You can just write required at the end of your input tag (without the equal and value part).

I did the same but its shows error

Can you post your code as it is now?

<input type="require">

I posted it already probably is not showing

Whats require attribute please @MrSteelbreaker

Maybe you just misspelled it. In you code above you wrote require. Did you check in your current code if your wrote exactly: required ?
Probably thats the problem?

<input type="text" required="required">

I still cant get the output

If I was in your place I would press the reset all code button. And afterward just add required to the exisiting input element before the closing tag. That should usually do the trick.

Everything works perfectly thats my code but i cant go to the next stage it says Your text input element should have the required attribute
I dont know what it saying again

It is supposed to be required

And Make it like this
Required/>

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

You don’t need to create a new input.
Use the one they already gave you.

This is the input you are supposed to work with

    <input type="text" placeholder="cat photo URL">

Add the required attribute to that and it should pass.

Never mind! I found my mistake here!

Thanks, it went through… thanks for coming through

@jwilkins.oboe can you help please, im stuck again regarding the radio button, i did everything and it seems perfect to me but i couldnt move forward, below is my code

<label for="indoor"> 
  <input id="indoor" type="radio" name="indoor-outdoor">Indoor 
</label>

It would be best to create a new topic since this is a new challenge.

Also, it would be good to use the ask for help button which will generate your full code and challenge link so I can assist you better.

Alright thanks, i will do that right away