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

Mine doesn't do that, because it's unnecessary. All web browsers know that a "</TD>" block ends when another one begins or when TABLE object ends

Just because all most browsers will deal with erroneous HTML code is hardly an excuse to deliberately produce it.

Replies are listed 'Best First'.
Re^6: Convert BMP to HTML
by choroba (Cardinal) on Nov 02, 2022 at 10:48 UTC
    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]

      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

      Interesting...thank you :)

Re^6: Convert BMP to HTML
by Anonymous Monk on Oct 31, 2022 at 23:45 UTC
    please put your "</TD>" into code tags.