Check out example codes for "visual studio code html template shortcut". It will help you in understanding the concepts better.

Code Example 1

type "!" (exclamation mark) and press enter in vs code.

//below code will be generated
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

Code Example 2

First set HTML to the language
Then type:


And hit Tab

Voila, HTML Template in your favorite code editor!

Learn ReactJs, React Native from