Practicing
HTML Basics

Module 2

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet augue vel sem sollicitudin fermentum. Vivamus non nulla ac magna fermentum aliquet.

Screenshot of HTML code

Heading Elements

HTML provides six levels of headings (<h1> to <h6>). The <h1> is used for the main title, while the lower-level headings are used for sub-sections.

Line Breaks & HTML Entities

Use the <br> tag to insert a line break.
To display HTML characters as text, use entities such as &lt; for "<" and &gt; for ">".

Block vs Inline Elements

Block elements (like paragraphs, headings, and divs) start on a new line, while inline elements (such as span, strong, and em) flow within the line of text.

For example, this sentence includes emphasized and strong words, demonstrating inline elements.

Semantic HTML5 Elements

Semantic elements help describe the meaning and structure of your content. Common semantic elements include:

Hyperlinks

Hyperlinks are created using the anchor (<a>) tag.

External Links: Chess.com | Lichess | ChessBook

Relative Link: Main Index Page

Contact Links

Call: 541-250-2364

Email: [email protected]


Return to the top of the page

Lists

Unordered List Example

Ordered List Example

  1. First Step
  2. Second Step
  3. Third Step