Adicionar um botão Enviar a um formulário

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>

 <a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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"></button>
 </form>
</main>
   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36

Challenge: Add a Submit Button to a Form

Link to the challenge:

Sorry I don’t speak Portuguese, but I think I understand your issues. The reason why this code fails the test is because types in html are not capitalized and there is no text within the button itself.

Hope this helps, Smeagol

1 Like

I understand, thanks for the help…

Olá, @baschiavetto33. Movi seu post para a seção de HTML e CSS em português em função do título. Espero que não se importe. Acredito que com a ajuda do colega em inglês a questão esteja resolvida. Caso precise de algum outro auxílio, fique à vontade para fazer suas perguntas em português, que conseguiremos respondê-las no fórum. Boa programação para você. :slight_smile:

1 Like

ola daniel td bem ? estou travada na parte de Criar um conjunto de caixas de seleção, poderia me ajudar ? segue :

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

<li>cat nip</li>

<li>laser pointers</li>

<li>lasagna</li>

Top 3 things cats hate:

    <li>flea treatment</li>
    
    <li>thunder</li>
    
    <li>other cats</li>
    
<label for="indoor"><input id="indoor" type="radio" name="indoor-outdoor"> Indoor</label>

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

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

<button type="submit">Submit</button>

<label for="personality"><input id="personality" type="personality" name="personality"> Loving</label>

Tranquilo, @baschiavetto33 . Do que eu pude ver, o problema inicial que temos está no “type”. É ali que você decide o tipo de input. Assim como, ali em cima, para os botões de opção, você colocou type=“radio”, para a caixa de seleção, o type seria “checkbox”. Mais um detalhe: precisam ser 3 caixas de seleção. Cada uma com um tipo de personalidade diferente. Isso já ajuda? Caso ainda tenha problemas, manda mais dúvidas que tentamos resolver por aqui. Boa programação. :slight_smile:

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