What is HTML used for?

Experience Level: Junior
Tags: HTML

Answer

HTML is a markup language for creating web pages. Using HTML you can define web page structure and content.

The HTML consists of elements which enclose the content. The elements define how the content appears and how it behaves.

HTML is a shortcut for Hypertext Markup Language.

Example
<p>This is a paragraph</p>
<p>This is a paragraph with <strong>bold</strong> word.</p>

The code above will appear like this:

This is a paragraph

This is a paragraph with bold word.


The first part <p> is called opening tag. The third part </p> is called closing tag. The middle part This is a paragraph is content.

Related HTML job interview questions
HTML for beginners
HTML for beginners

Are you learning HTML? Try our test we designed to help you progress faster.

Test yourself