3 ms·
Another, less network intensive, way to quickly produce an html starting boilerplate, is to use a snippet tool in your editor, like Emmet, https://www.emmet.io/
by brianzelip 6y ago
Another, less network intensive, way to quickly produce an html starting boilerplate, is to use a snippet tool in your editor, like Emmet, https://www.emmet.io/ https://www.emmet.io/.
My bang snippet, `! + <tab>`, outputs:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="./css/main.css" />
<meta
name="description"
content="" />
<meta name="author" content="Brian Zelip" />
<link rel="author" href="https://zelip.me" />
</head>
<body>
</body>
</html>
```
- chrismorgan 6y agoFYI: the trailing slash is completely useless on HTML tags in the HTML serialisation. It doesn’t close HTML tags, it’s just ignored by the parser for XML compatibility. I advise against including it, because it’s simple visual noise, and misleading (people may come to think they can close tags that way, as in XML; but you can’t, and it’s only valid on empty elements like <meta>, <link> and <img>).