Plz help me Create a Form Element

Plz help me Create a Form Element
0.0 0

#1

Tell us what’s happening:

Your code so far

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back. " src="https://bit.ly/fcc-relaxing-cat"></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>

<input type="text" placeholder="cat photo URL">
<form action=/submit-cat-photo"></form>
form action=/submit-cat-photo
input type="text"placeholder="cat photo URL" 

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Linux; Android 7.0; TECNO P904 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.83 Safari/537.36.

Link to the challenge:


Please i need help , what he want in form ? am typing cat photo but he refuse Create a Form Element
#2

Let’s breakdown this challenge into small pieces. To save space, I am going to only describe what should go below the section below:

<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>

The instructions refer to your text field. It is shown at the bottom of the challenge code:

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

You are supposed to nest the above text field inside something that looks like:

<form action="/url-where-you-want-to-submit-form-data">
  // put the text field code here
</form>

Additionally, the instructions specifies what should replace url-where-you-want-to-submit-form-data. They want you to use submit-cat-photo for the action.

See if you can complete this challenge with the hints I have given you.


#3

Plz help me I want to give background color to a Div element

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }
 div }  
  background-colour: siver; 
} 

</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back. " src="https://bit.ly/fcc-relaxing-cat"></a>

<div class="silver-background">
  
<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>
</div>

<form action="/submit-cat-photo">
  <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
  <label><input type="checkbox" name="personality" checked> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> Energetic</label>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>

#4

I’ve edited your post for readability. When you enter a code block into the forum, remember to precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


#5

If you want to add a silver background to the div element, then you need to first need to create a div selector in your CSS. Your current code is close, but you have to have an open { and a close } surrounding the properties you want to define for the selector. So you should have:

div {

}

Now, you change the background color of the div, you must use the background-color property. You currently have a typo on yours. Also, if you want to make the background silver, then you must correct another typo. You have siver instead of silver; Fixing these will create the silver background you want. You do not even need the class=“silver-background” you put in the div if you do I what I suggest above. If instead you want to keep the class=“silver-background” inside the div element, then you would replace div in the css section with .silver-background Notice the dot before the silver-background. That means you are creating a class with the name silver-background.