3 ms·
Ask HN: Minimal html code to make a black page
This is totally pointless, but can you feed a browser any code smaller than the example below that will produce a fully black page?
The smallest code I could work out is:
<body bgcolor=black>
Although I'm fully aware bgcolor is deprecated since HTML 4.1 this still produces a black page in almost any browser today (2018).
- coderobe 8y agoYes. <body bgcolor=0>
- glaberficken 8y agoOh! nice =)
- rotoole 8y agoI haven't checked if this works, but using a HEX code for the color value would be slightly shorter: <body bgcolor=#000>