NoBoTo Posted November 30, 2015 Share Posted November 30, 2015 (edited) 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 November 30, 2015 by NoBoTo Link to comment Share on other sites More sharing options...
NoBoTo Posted November 30, 2015 Author Share Posted November 30, 2015 OK, now I understand. Ther is incorrect the end tag </p>. I have not noticed Link to comment Share on other sites More sharing options...
dsonesuk Posted November 30, 2015 Share Posted November 30, 2015 (edited) 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 November 30, 2015 by dsonesuk Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now