HTML Basic Tutorial

  • Previous Page WWW
  • Next Page CSS

Example

<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>

Try it yourself

What is HTML?

HTML is a language used to describe web pages.

  • HTML stands for HyperText Markup Language (Hyper TText MMarkup LLanguage)
  • HTML is not a programming language, but amarkup language (markup language)
  • A markup language is a set ofmarkup tags (markup tag)
  • HTML usesmarkup tagsto describe webpages

HTML tags

HTML markup tags are usually referred to as HTML tags (HTML tag).

  • HTML tags are made up ofangle bracketsenclosing keywords, such as <html>
  • HTML tags are usuallyappear in pairssuch as <b> and </b>
  • The first tag in a tag pair isStart tags, the second tag isEnd tags
  • Start and end tags are also known asOpening tagsandClosing tags

HTML documents = web pages

  • HTML documentsdescribe webpages
  • HTML documentscontaining HTML tagsand plain text
  • HTML documents are also known asWeb Page

The role of a web browser is to read HTML documents and display them as web pages. Browsers do not display HTML tags, but use tags to interpret the content of the page:

<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>

Example Explanation

  • Text between <html> and </html> describes a webpage
  • Text between <body> and </body> is visible page content
  • Text between <h1> and </h1> is displayed as a heading
  • Text between <p> and </p> is displayed as a paragraph
  • Previous Page WWW
  • Next Page CSS