What is HTML?
HTML, short for HyperText Markup Language.
HTML is the standard markup language for creating web pages and web applications. With HTML, web developers can create structured documents by marking up the content of their documents using a set of tags. These tags describe the structure of the document, such as headings, paragraphs, images, and hyperlinks.
HTML is the foundation of the World Wide Web. It is a markup language that defines the structure and content of web pages. Understanding HTML is essential for anyone interested in web development, as it forms the basis for creating websites and web applications.
Whether you’re a beginner or an experienced developer looking to refresh your skills, this tutorial will take you on an exciting journey through the world of HTML.
A Simple HTML Example
<!DOCTYPE html>
<html>
<head>
<title> My Web Page Title </title>
</head>
<body>
<h1> Your first heading here. </h1>
<p> Your paragraph here. </p>
</body>
</html>
The above example explanation
- The
<!DOCTYPE html>
declaration defines that this document is an HTML5 document. - The
<html>
element is the root element of an HTML document. - The
<head>
element contains meta information about the HTML page. - The
<title>
element specifies a title for the HTML page (which is shown in the browser’s title bar or in the page’s tab). - The
<body>
element defines the document’s body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. - The
<h1>
element defines a largest heading. - The
<p>
element defines a paragraph.