HTML Basics - 4 Examples
Don't worry about the examples in this chapter that you haven't learned yet.
You will learn about them in the following chapters.
HTML heading
HTML headings are defined through the
-
tag.
Example
<
h1
This is a heading
h1
<
h2
This is a heading
h2
<
h3
This is a heading
h3
Try it »
HTML paragraph
HTML paragraphs are defined through the
tag.
Example
<
p
This is a paragraph.
p
<
p
This is another paragraph.
p
Try it »
HTML links
HTML links are defined through the tag.
Example
<
a
href
=
"
https://www.runoob.com
"This is a link
a
Try it »
**Tip:** Specify the link's address in the href attribute.
(You will learn more about attributes in later chapters of this tutorial).
HTML image
HTML images are defined through the tag.
Example
<
img
src
=
"
/images/logo.png
"
width
=
"
258
"
height
=
"
39
"
/>Try it »
Note: The image's name and size are provided in the form of attributes.