HTML5 Boilerplate (HTML skeleton or shell)
Tags: html
Published: 2020-12-15 04:29:48

<h1>Before we start</h1>
<p>Let's make sure we understand that HTML is not coding or scripting. HTML is simply a mark up language. HTML5 uses tags to control the structure and rendering of content in the browser.</p>
<p>Because there is no programming, HTML is not really that complicated. However, clean and well-written HTML is essential element for the implementation of CSS (cascading stylesheets) and JS (JavaScript).</p>
<p>To start writing HTML code, you only need a text editor.
If you are on Windows, I strongly recommend doing your Hello World with <strong>Notepad</strong>, and for Mac users, <strong>BBEdit</strong> (formerly TextWrangler).
You could also try to use TextEdit on the Mac, but there is a few things you need to <a rel="nofollow" href="https://www.radford.edu/~rstepno/326/textedit/index.html" target="_blank">set up in order to use it to edit HTML</a> (you may also need to turn off smart quotes on your keyboard settings).</p>
<ul>
<li><a rel="nofollow" href="https://www.w3schools.com/html/html_editors.asp" target="_blank">How to save a document using Notepad</a></li>
</ul>
<p>Once you feel comfortable with the most simple editors, there are many other options of enhanced text editors. My favorites are Atom, Brackets, and SublimeText, but there are plenty to choose. Please feel free to leave a comment if you would like to recommend one.</p>
<p>There are also some WYSIWYG editors like Dreamweaver, but I do not recommend their use until you grow your basic HTML legs.</p>
<p>A simple HTML5 boilerplate (with no content) looks like this:</p>
<pre>  <code>&lt;!doctype HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;The title of your page&lt;/title&gt;

&lt;/head&gt;
&lt;body&gt;
All displayed content goes between the body open and closing tags.
&lt;/body&gt;
&lt;/html&gt;
</code>
</pre>
<p>Let's take a few seconds to go over every line:</p>
<p></p><hr>
<header>
<h2>Basic Structure Elements of an HTML Document</h2>
</header>
<dl>
<dt><strong> &lt;!doctype html&gt; </strong></dt>
<dd>The document type declaration is not really a part of the HTML document. The document type tells the browser what HTML rules to use to render the mark-up.<br>If the document type declaration is not included, the browser renders the page in quirk mode, that is, it tries to render the page to the best of its abilities to maximize compatibility with older browsers, but the results are hard to predict.</dd><br>
<dt><strong> &lt;html&gt; </strong></dt>
<dd>The html tag is the container for all the rest of the HTML tags</dd><br>
<dt class="second-level"><strong> &lt;head&gt; </strong></dt>
<dd>The head section contains the title, meta tags, scripts, styles, and any other non-content tags</dd><br>
<dt class="third-level"><strong> &lt;title&gt; </strong></dt>
<dd>The title tag is required and provides a title for the document.
<ul>
<li>Defines the title in the browser bar</li>
<li>provides a name for the page when bookmarked</li>
<li>Displays the name of the page in search results</li>
</ul>
</dd><br>
<dt class="second-level"><strong> &lt;body&gt; </strong></dt>
<dd>The body is where all the content of a web page is displayed. This includes text, links, graphics, media, and everything else that will show on the browser</dd>
</dl>
<p>That is how an HTML5 boilerplate is built.<br>Now, go try it!</p>
<hr>
<footer>
<p>Definition Reference: <a rel="nofollow" href="https://www.w3schools.com/html/default.asp" target="_blank">www.w3schools.com</a></p>
</footer>