Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 ( [id://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 (Archbishop) 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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-18 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found