Create a Form Element Student

Hello. :slight_smile
Looking for sum help code problem. student learning.

**Nest your text input element within a form element. **
This part of the code I did OK.

Put I have other problem > Make sure your form has an action attribute which is set to /submit-cat-photo

<link href="" rel="stylesheet" type="text/css">
  .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;

<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='//'></a>

<form action="/ cat-to-submit-cat- action=" data-form/>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<input type="text" placeholder="cat photo URL">

I’ve edited your post for readability. When you enter a code block into the forum, 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.


Hints Below:

#1) The instructions want you to nest the text box in the form element. The text box is the following html:

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

#2) Form elements need a </form>.

#3) There should only be one action attribute in the form element and it should be assigned “/submit-cat-photo”

1 Like