Introduction

HTML is the standard markup language for creating Web pages.

What is HTML?

  • HTML stands for Hyper Text Markup Language
  • HTML is the standard markup language for creating Web pages
  • HTML describes the structure of a Web page
  • HTML consists of a series of elements
  • HTML elements tell the browser how to display the content
  • HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.
Basic

HTML headings are defined with the h1 to h6 tags.

  • h1 is used for heading
  • h2,h3,h4,h5,h6 are used for sub-headings
Elements

An HTML element is defined by a start tag, some content, and an end tag.

  • br - is used for line break
Attributes

HTML attributes provide additional information about HTML elements.

Headings

HTML headings are titles or subtitles that you want to display on a webpage.

Paragraphs

A paragraph always starts on a new line, and is usually a block of text.

The HTML p element defines a paragraph.

  • p - My first paragraph
Comments

HTML comments are not displayed in the browser, but they can help document your HTML source code.

Images

Images can improve the design and the appearance of a web page.

  • img - is used to embed an image
Tables

HTML tables allow web developers to arrange data into rows and columns.

Lists

HTML lists allow web developers to group a set of related items in lists.

  • ul - is used to create unordered lists
  • ol - is used to create ordered lists
Reference
  • All the documentation in this page is taken from W3Schools