LWN.net Logo

Making some Beautiful Soup

Making some Beautiful Soup

Posted Jul 3, 2012 11:36 UTC (Tue) by robbe (guest, #16131)
Parent article: Making some Beautiful Soup

> Note that the unclosed paragraph tag was fixed.

One may omit the end tag of a P element in all versions of HTML¹. Thus there is no need to "fix" anything. Maybe you were thinking of XHTML, which requires end tags?

¹ In all the common cases, including the example given. See the specs for details.


(Log in to post comments)

Making some Beautiful Soup

Posted Jul 3, 2012 12:17 UTC (Tue) by hummassa (subscriber, #307) [Link]

One must always know where the (implicit) end tags are in order to construct the DOM.

Oh, and some of us have OCD and will burn your house if you forget the </p>.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds