Topic 3E: Emmet: Creating a New HTML File

Free Emmet Tutorial

Explore our comprehensive Emmet tutorial that will guide you through creating a new HTML file, starting from creating a new file to coding within the body tag.

This exercise is excerpted from Noble Desktop’s front-end web development (Emmet coding tips) training materials and is compatible with updates through 2022. To continue learning web development with hands-on training, check out our coding bootcamps in NYC and live online.

Front End Web Design Certificate: Live & Hands-on, In NYC or Online, 0% Financing, 1-on-1 Mentoring, Free Retake, Job Prep. Named a Top Bootcamp by Forbes, Fortune, & Time Out. Noble Desktop. Learn More.

How to Create a New HTML File with Emmet

  1. Create a new file.
  2. Save the file as some-file-name.html so the app knows this is an HTML file.
  3. Type ! (that’s an exclamation point) and hit Tab to expand it.

    All the standard tags (like head and body) will be created.

  4. Hit Tab until the title is highlighted, then enter your title.
  5. Hit Tab again to jump into the body tag and you’re ready to code!
  6. You can delete the following line, which is old code for Internet Explorer:

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

photo of Dan Rodney

Dan Rodney

Dan Rodney has been a designer and web developer for over 20 years. He creates coursework for Noble Desktop and teaches classes. In his spare time Dan also writes scripts for InDesign (Make Book JacketProper Fraction Pro, and more). Dan teaches just about anything web, video, or print related: HTML, CSS, JavaScript, Figma, Adobe XD, After Effects, Premiere Pro, Photoshop, Illustrator, InDesign, and more.

More articles by Dan Rodney

How to Learn HTML & CSS

Master HTML and CSS with hands-on training. HTML (HyperText Markup Language) and CSS (Cascading Style Sheets) are used to build and style webpages.

Yelp Facebook LinkedIn YouTube Twitter Instagram