a guide to conceiving, creating & publishing your own website
The most basic parts of a document's content is its headings and paragraphs. Without headings, there is no way to tell what part contains what information at a glance; without paragraphs, text becomes unreadable.
Paragraphs use the p tag to declare where they start and end. It would be hard to type the full word every time when paragraphs are such a fundamental building block, so shorthand is necessary.
<p>This is a paragraph. It can be as short or long as you want it to be.</p>
Headings and subheadings are important: they make things easier to read and navigate through. In HTML, there are six types of headings, written in the form of hX. You replace the X with whatever "rank" the heading has.
It is required in the HTML standards for every single HTML document to have a top-level heading (h1). In most cases, this is the title of the website, or the title of the page itself. There can be multiple top-level headings in one document.
Headings may be followed by a heading the same level or higher, or one level below it. A heading may not be followed by a heading more than one level below it, for example h1 followed by h3, as there is nothing that necessitates using a lower level.
All six headings, and what you might want to use them for in order...
<h1>Website title</h1>
<h2>Page title</h2>
<h3>Section heading</h3>
<h4>Subheading</h4>
<h5>The name of an example</h5>
<h6>I have no idea!</h6>
There is an empty element that allows you to insert a regular line break anywhere in your text, for things like poetry or lyrics: br. You should still aim to keep your line breaks inside of paragraphs where relevant.
As an empty element, described earlier, line breaks start and end in the same place. There is nothing that goes inside of a line break, after all. Only one tag is required.
<p>I’ll tear off the darkness and give it to you <br>
My complex, Thank you <br>
I will disappear and you will also die but <br>
For giving me hate, Thank you</p>