This HTML tutorial provides basic and advanced concepts of HTML. This HTML tutorial is developed for beginners and professionals and every topic is given step-by-step so that you can learn it easily.
What is HTML?
HTML is a markup language using which you can create your website.
HTML stands for Hypertext Markup Language.
It contains elements and the elements are represented by tags.
You can create a static webpage by using HTML only.
Technically HTML is not a programming language it is a markup language.
Basic structure of the HTML code:
Example:
<!DOCTYPE html>
<html>
<head>
<title>Title of Page</title>
</head>
<body>
<h2>This indicates First Heading</h2>
<p>This indicates first paragraph.</p>
</body>
</html>
Explanation of the above code:
- The "!DOCTYPE html" defines this document to be HTML5
- The <html> tag indicates that it is the root element of an HTML Page
- The <head> tag contains meta-information about the document
- The <title> element defines a title for the document
- The <body> element contains the visible page content
- The <h2> element defines a large heading
- The <p> element defines a paragraph
Applications of HTML:
Following are some applications of HTML:
- Web pages development - It is used to create pages that are rendered over the web. Every webpage has HTML tags in it to render its detail in the browser.
- Internet Navigation - The tags provided by HTML are used to navigate from one page to another page and are mostly used in internet navigation.
- Responsive UI - The HTML pages work well on all platforms, mobile, tabs, desktop or laptops.
- Offline support - The HTML page once loaded can be made available offline on the machine without any need for the internet.
- Client-side storage - The user could not save the user's browser data earlier, to solve this problem server-side infrastructure has to be built or user’s cookies can be used. But in HTML5 client-side storage is possible using localStorage and IndexDB.
- Game development- The HTML5 has support for rich experience and it is now useful in the game development area as well.