leafleafleafDocy banner shape 01Docy banner shape 02Man illustrationFlower illustration

HTML Basics – 4 Examples

Estimated reading: 1 minute 25 views

Don’t worry about the examples in this chapter that you haven’t learned yet.

You will learn them in the following chapters.

HTML title

HTML headings are defined by <h1> – <h6> tags.

example

<h1> This is a heading </h1>
<h2> This is a heading </h2>
<h3> This is a heading </h3>

HTML paragraph

HTML paragraphs are defined by the tag <p>.

example

<p> This is a paragraph. </p>
<p> This is another paragraph. </p>

HTML links are defined by the tag <a>.

example

<a href="https://www.coding180.com"> This is a link </a> 

Tip: Specify the link’s address in the href attribute.

(You’ll learn more about properties in a later chapter of this tutorial).

HTML images

HTML images are defined by the tag <img>.

example

<img src="/images/logo.png" width="258" height="39"/>

Note: The names and dimensions of the images are provided as attributes.

Leave a Comment

CONTENTS