Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: How to parse not closed HTML tags that don't have any attributes? (updated)

by tobyink (Canon)
on Mar 08, 2021 at 13:24 UTC ( #11129328=note: print w/replies, xml ) Need Help??


in reply to Re: How to parse not closed HTML tags that don't have any attributes? (updated)
in thread How to parse not closed HTML tags that don't have any attributes?

The HTML looks fine to me. Many HTML elements have optional end tags. <p> is one of them. The following is valid HTML:

<p>I like: <ul> <li>Chocolate <li>Pizza <li>Mexican food </ul> <p>Yet I don't like Mexican chocolate pizza!

Replies are listed 'Best First'.
Re^3: How to parse not closed HTML tags that don't have any attributes?
by haukex (Bishop) on Mar 08, 2021 at 15:30 UTC
    Many HTML elements have optional end tags.

    Yes, I know - the reason I called it "broken", which admittedly was probably too strong a word (parent updated), is because of the inconsistent closing tags, suggesting at the very least that not very much attention to detail was paid in the production of the HTML.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11129328]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2021-10-26 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (91 votes). Check out past polls.

    Notices?