HTML Formatting Elements

Headings

For organizing content hierarchically:

This is a Heading 1

This is a Heading 2

This is a Heading 6

Paragraphs

This is a paragraph. It can contain many sentences.

Line Breaks

This is some text.
Now the text is on a new line.

Emphasis

This text is emphasized.
This text is strong.

Links

Visit our website

Lists

Unordered lists:

  • First item
  • Second item
  • Third item

Ordered lists:

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

Images

To embed images:

A description of the image

Quotations

Inline quotes:

This is an inline quote.

Block quotes:

This is a longer quote that might span several lines.

Code

Inline code:

This is a code snippet inside a sentence.

Code blocks:


const hello = "Hello, World!";
console.log(hello);

Horizontal Line

To separate content:


Remember, these are just basic formatting tags. HTML has a wide range of tags for various purposes, from forming tables to embedding multimedia. Also, while HTML provides the structure, CSS (Cascading Style Sheets) is typically used to provide the style. Together, they shape the appearance and functionality of web content.