Text field and pla

Text field and pla
0

#1

Hello there
I am stuck in the Basic HTML,In the Basic HTML and HTML5: Add Placeholder Text to a Text Field
:-
it is giving error while i run this code

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

is there something wrong with it?while it is working on ATOM editors.
Please reply anyone if convenient .
Thanks


#2

Why do you have a . before the closing > ?


#3

Hello randeldawosn
Thanks for your reply.
Even if i remove the ". " still the same error.
Error says:-
Set the value of your placeholder attribute to “cat photo URL”.
please reply


#4

Can you post all of your code and not just the snippet?


#5
<main>
  <p>Click here to view more <a href="#">cat photos</a>.</p>
  
  <a href="#"><img src="https://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>
  <input type="text">
</main>


<input type= "text" 
placeholder= "https://bit.ly/fcc-relaxing-cat">

#6

I reverted to your last post, so I could explain what you have done incorrectly. Please do not edit the last post again.

You originally had the above code and I questioned why you added the extra dot before the > ?

Now you have the following:

<input type= "text" 
placeholder= "https://bit.ly/fcc-relaxing-cat">

Why did you take out the “cat photo URL” and replace it with “https://bit.ly/fcc-relaxing-cat”?


#7

Even if i try the code below ,it still give an error.While i tried on Atom ,it works.


#8