Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

html
community creator

What is HTML?

Dhanush

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

HTML stands for hyper text markup language – it is used to display web pages on the browser. In order to create web pages, one should learn HTML.

As its name suggests, HTML is a markup language, not a programming language. This means that we do not write programs using HTML; instead, markup language is mainly used to apply layout and formatting conventions to a text document. In other words, markup language makes text more interactive and dynamic.

Let’s dive deeper to learn more about HTML.

HTML Tags

One of the main parts of HTML is HTML tags – HTML tags are like keywords that define how a web browser will format and display content. There are more than 100 tags in HTML.

Let’s see an example:

<!DOCTYPE html> is a tag used to tell the browser the version of html that you are using.

HTML tags contain three main parts:

  1. opening tag
  2. content
  3. closing tag

Opening tag

  • Begins the section of a page

  • All opening tags are enclosed in <>

Content

  • The matter written in between the opening and closing tags.

  • <> content </>.

Closing tag

  • It ends the section of a page.

  • All closing tags are enclosed with, </>.

Most HTML tags are paired tags, very few tags are unpaired.

Paired tags

Paired tags have both opening and closing tags.

Example:

1) <html> </html>
2) <p> </p>
3) <b> </b>
4) <strong> </strong>

Unpaired tags

Unpaired tags have no ending or closing tags.

Example:

1) <br>
2) <hr>
3) <img>

Now, let’s write a code to create a webpage using some basic tags:

And that’s it – we have created our first webpage using some basic tags!

RELATED TAGS

html
community creator

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring