I can put this in a code snippet: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> <div id="box">Hello, World!</div> <!-- end snippet --> I can also do this: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> <!doctype html> <html> <head></head> <body> <div id="box">Hello, World!</div> </body> </html> <!-- end snippet --> Question: does the code snippet system automatically fill in the <html>, <head>, <body>, etc. or are you supposed to write that?