Skip to main content
Noble Desktop/1 min read

Quickly Start an HTML File in Sublime Text

HTML Boilerplate via Emmet

1

Open a Blank .html File

Sublime Text recognizes the language by extension.

2

Type !

Just an exclamation mark on a blank line.

3

Press Tab

Emmet expands to a complete HTML5 boilerplate.

4

Customize

Replace lang, charset, title, and start writing inside the body.

Master Web Development at Noble Desktop

Noble Desktop's Full-Stack Web Development Certificate covers HTML, CSS, JavaScript, and the modern web stack.

To start a new HTML page, first create a new file in Sublime Text and save it with the .html extension. This will set the syntax of your document to HTML. Then type ! (that’s an exclamation point) and hit Tab to expand it. Emmet will create the HTML page structure for you, allowing you to get right to work.

Ct html page

Note: This coding tip requires Emmet to be installed in Sublime Text. For instructions on how to install Emmet, download our Sublime Text Enhancements Installation Guide.

Learn more . These coding tips are covered in our hands-on coding classes and bootcamps in NYC.