HTML Basic Examples

TUTORIAL HOME
HTML Basic Examples
❮ Previous Next ❯
Don’t worry if these examples use tags you have not learned.

You will learn about them in the next chapters.

HTML Documents
All HTML documents must start with a document type declaration: .

The HTML document itself begins with and ends with .

The visible part of the HTML document is between and .

Example

My First Heading

My first paragraph.

»
HTML Headings
HTML headings are defined with the

  to

tags.

defines the most important heading.

defines the least important heading:

Example

This is heading 1

This is heading 2

This is heading 3

»
HTML Paragraphs
HTML paragraphs are defined with the

tag:

Example

This is a paragraph.

This is another paragraph.

»
HTML Links
HTML links are defined with the tag:

Example
<a href="
https://www.Omegas.com“>This is a link
»
The link’s destination is specified in the href attribute.

Attributes are used to provide additional information about HTML elements.

HTML Images
HTML images are defined with the   tag.

The source file (src), alternative text (alt), width, and height are provided as attributes:

Example
Omegas.com
»

❮ Previous Next ❯

Leave a comment