Ask HN: Minimal html code to make a black page

2 points by glaberficken ↗ HN
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).

3 comments

[ 3.4 ms ] story [ 20.5 ms ] thread
I haven't checked if this works, but using a HEX code for the color value would be slightly shorter:

<body bgcolor=#000>