Introduction to HTML

Week 1 - Learning the basics of HTML

HTML Document Structure

HTML documents have a basic structure that includes elements like DOCTYPE, html, head, and body.

            <!DOCTYPE html>
            <html>
            <head>
                <title>Document Title</title>
            </head>
            <body>
                Content goes here
            </body>
            </html>
        

Basic HTML Tags

Headings

This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6

Paragraphs

This is a paragraph. HTML paragraphs are defined with the p tag.

This is another paragraph with a
line break inside it.

Links

This is a link to example.com.

This is a link to our About page.

Images

HTML5 Logo

Lists

Unordered List

Ordered List

  1. First item
  2. Second item
  3. Third item

Definition List

HTML
HyperText Markup Language
CSS
Cascading Style Sheets

Text Formatting

Bold text using strong.

Italic text using em.

Highlighted text using mark.

Small text using small.

Deleted text using del.

Inserted text using ins.

Subscript: H2O

Superscript: 23 = 8