Jump to content
NoBoTo

Appearing out of nowhere <p> tag.

Recommended Posts

Hi Everybody!

 

I'm newbie in this forum. Forgive me my english, I'm still learning.
Look at this example: http://www.w3schools.com/cssref/tryit.asp?filename=trycss_anim_margin

When I added "p { border: 1px solid red; }" into the <style></style> I saw a red new line below the first paragraph.

So I checked it by google chrome tool for developer (Ctrl + Shift + I). There was an added <p></p> and I don't understand why, because it isn't into the code.
Any idea?

 

Regards: Marek :)

Edited by NoBoTo

Share this post


Link to post
Share on other sites

They have not closed the paragraph so the browser will try its best to render with what its given, in this case it closed the first paragraph with text, then added empty paragraph at end by closing the second.

 

 

Tooooo late :-)

Edited by dsonesuk

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...