HTML Basics - 4 Examples
Don't worry about the examples you haven't learned in this chapter.
You will learn them in the following sections.
HTML Headings
HTML headings are defined with the <h1>
to <h6>
tags.
Example
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
HTML Paragraphs
HTML paragraphs are defined with the <p>
tag.
Example
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
HTML Links
HTML links are defined with the <a>
tag.
Example
<a href="https://www.tutorialpro.org">This is a link</a>
Tip: Specify the link address in the href
attribute.
(You will learn more about attributes later in this tutorial).
HTML Images
HTML images are defined with the <img>
tag.
Example
<img decoding="async" src="/images/logo.png" width="258" height="39" />
Note: The image name and dimensions are provided as attributes.