Tutorial: Learn HTML – Introduction to HTML

What is HTML?

HTML stands for Hyper Text Markup Language. A markup language is a set of markup tags and each tag describes a different document.

Why we need HTML?

We need HTML to create web pages. Along with CSS (Cascading Style Sheet) and Javascript it becomes a very powerful technology to create web pages.

HTML code snippet


<!DOCTYPE html>
<html>
<head>
<title>Half Cup Coffee</title>
</head>
<body>

<h2>Hello World</h2>
<p>This my first HTML paragraph</p>

</body>
</html>


 

Snippet Explaination

♦ <!DOCTYPE html> – DOCTYPE defines the document type to be HTML

<html>….</html> – Everything between <html> and </html> describes as an HTML document.

<head>…</head> –  The text between <head> and </head> carries information about the document.

<title>…</title> – Text between <title> and </title> describes the title and shows up at the top of the browser.

<body>…</body> – The text between <body> and </body> is the visible content in web browser. That means what we see in a website is written in between <body> and </body>

<h2>…</h2> – The text between <h2> and </h2> describes a heading.

<p>…</p> – The text between <p> and </p> becomes a paragraph.

HTML tags

HTML tags are the Keywords written in the angle brackets such as <a>, <p> etc.

They always come in a pair like <h2> and </h2>. The  <h2> is called opening tag and the </h2> tag is called closing tag.

So, the syntax is <tagname> content </tagname>

This is it for now. See you in the next lesson.

- Love it? Share it! -

TUM

I am a Windows Phone Addict, a Windows Phone application Developer and co-founder of halfcupcoffee.