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

Re^7: Convert BMP to HTML

by afoken (Chancellor)
on Nov 02, 2022 at 15:38 UTC ( [id://11147920]=note: print w/replies, xml ) Need Help??


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]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-03-29 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found