poyribn/html-template
My personal HTML5 boilerplate
|
poyribn
520929ad85
Update README
I forgot to do that for a long Time — poppy ribbon (https://codeberg.org/poyribn) |
||
|---|---|---|
| index.html | Move meta charset to the Top of the metas | |
| LICENSE.txt | first commit | |
| README.md | Update README | |
HTML Template
My personal HTML5 Boilerplate.
This Project assumes that you have basic Knowledge of HTML5.
There are more than 1 Ways to write a HTML Boilerplate, so i explain my decisions when writing this Boilerplate:
Formatting
- Uses Indents to make the Structure clear
- Every indent is a Tab
- The major Sections (Header, Body) are separated by 2 blank Lines
- Sections inside the major Sections (Header, Body) are separated by 1 blank Line
<html> Tag
- The Language in the
<html>tag is set to English
because it’s the Language that Poppy writes most of his Websites in.
Header (<head>) Section
- The Character Set (charset) is set to UTF-8, of Course.
- The Charset is set before any other meta Tag, so that everything on the Page gets interpreted correctly.
- The
<meta name="robots">Tag is set to disallow scraping by Machine Learning Bots.
It is one of many Methods which rfm suggests to "bot-proofing your website",
though i highly recommend reading the whole Article. - The Tab title is set to
Tab Title, so that you can easily find where to change it. - The
<link rel="stylesheet">Tag links to a Stylesheet with the Filenameindex.css
so that when you create a stylesheet with the filenameindex.cssin the same Folder as the Webpage,
it gets instantly applied (after reloading the Page, of course). - The
<meta name="viewport">Tag makes the Website as wide or as narrow as is appropriate for the Device,
not limiting it to wide Desktop Widths.
Body (<body>) Section
- I put a Heading (
<h1>) and Paragraph (<p>) because most Websites start out with these Elements.
These haveHeading 1andParagraphas their default Text,
so that they stand out as something you should change. - The
<script>Tag references a JavaScript File namedindex.js,
so that when you create it in the same folder as the Webpage,
it instantly gets applied (after reloading the Page, of course).
I put it at the very End of the Page so that the Script won't have Trouble with Elements that it references not having loaded yet.