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

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". ;-)

Replies are listed 'Best First'.
Re^8: Convert BMP to HTML
by LanX (Saint) on Nov 03, 2022 at 10:05 UTC
    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]