Tell us what’s happening:
Describe your issue in detail here.
I am currently at step 35 of the Responsive Web Design, and the issue i have is how to write the action attribute. i have followed all the instructions displayed on how to write the action attribute with the form but i am still not getting it.
**Your code so far**
<html>
<body>
<h1>CatPhotoApp</h1>
<h2>Cat photos</h2><paragraph>Click here to view more cat photos.</h2>
</body>
</html>
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 3
Hey! Welcome to the freeCodeCamp’s community forums.
So there are two major problems i can see in your code. first is that there is no tag named paragraph in HTML which is why its not working. If you need to add a paragraph to your webpage, you can use the p tag.
The second problem is that, most of the HTML tags are paired, meaning you need to have a closing as well as an opening tag and the content in between.
// opening tag content closing tag
| | |
<button> my button </button>
The action attribute indicates where form data should be sent. For example, <form action="/submit-url"></form> tells the browser that the form data should be sent to the path /submit-url.
Add an action attribute with the value https://freecatphotoapp.com/submit-cat-photo to the form element.