vs code 2019 html css snippet code example

Example 1: html skeleton shortcut vs code

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

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

Example 2: how to add custom snippets in emmet in visual studio code

"Console log": {
    "prefix": "clog",
    "body": "console.log('$1');",
    "description": "Log output to console"
}