Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: Convert BMP to HTML

by choroba (Cardinal)
on Nov 02, 2022 at 10:48 UTC ( [id://11147910]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Convert BMP to HTML
in thread Convert BMP to HTML

The closing tags for TD and TR are optional by the spec, it's not "erroneous HTML".

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^7: Convert BMP to HTML
by afoken (Chancellor) on Nov 02, 2022 at 15:38 UTC

    With HTML5, you can omit A LOT of markup. This is perfectly valid HTML5, even without <head> and <body> elements (they are implicit), and without the closing </html>:

    <!DOCTYPE html> <html> <title>Valid HTML</title> <h1>Valid HTML</h1>

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      True, but is the monastery not much older than HTML5?

      Looking into the source I see (though chrome is graying it out)

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

      So I tried to find those specifications, but couldn't locate clear rules about closing tags in HTML4.

      But some examples clearly demonstrate omitted tags.

      <TABLE border="1"> <TR><TD>1 <TD rowspan="2">2 <TD>3 <TR><TD>4 <TD>6 <TR><TD>7 <TD>8 <TD>9 </TABLE>

      Cheers Rolf
      (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
      Wikisyntax for the Monastery

        > couldn't locate clear rules about closing tags in HTML4

        Check e.g. the TR section:

        Start tag: required, End tag: optional

        map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re^7: Convert BMP to HTML
by LanX (Saint) on Nov 02, 2022 at 11:27 UTC
Re^7: Convert BMP to HTML
by Bod (Parson) on Nov 02, 2022 at 22:32 UTC

    Interesting...thank you :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-28 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found