.


Divya

HTML5 Tutorial With Example


Hypertext Markup Language (HTML) is the standard markup language for creating web pages and web applications. Using HTML you can create your own website.

What is Hypertext Markup ?

  1. Hypertext is a special text or links through which we can move from one web page to another page.
  2. Markup means simply mark-up a text document with special meaningful text (called tags) that tells a web browser to display the contents in specified structure.

HTML Extension

HTML files have extension “.htm" and “.html" .

HTML Tags

HTML tags are surrounded by angle brackets (<>).

<tagname> Code goes here…</tagname>

Here is the opening tag and is the close tag.

HTML Page structure

<html>
<head>
<title>Page Title</title>
</head>
<body>
Page Content goes here…
</body>
</html>

Example of HTML file

Example

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p>My first HTML File.</p>
</body>
</html>

Run it yourself



.