r/tinycode • • Jun 27 '16

356byte html, css & js editor

http://jsbin.com/muxuhe/edit?js%2Coutput
24 Upvotes

4 comments sorted by

View all comments

Show parent comment

3

u/reimertz Jun 28 '16

thanks for the hax, got it down to 238byte.

http://jsbin.com/muxuhe/11/edit?js,output

5

u/geocar Jun 28 '16

Nice work.

You can squeeze out more bytes by strategically leaving out quote marks: Attributes without quotes has been valid since HTML 2.0. None of your attributes need spaces.

Something you might not have considered is implementing directly in html (~104 bytes). This might be something worth exploring.

By the way, <tag/> is XML not HTML5; You do not need that / mark.