Jump to content

Appearing out of nowhere <p> tag.


NoBoTo

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
Link to comment
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
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...