Basic Example of HTML code
<!DOCTYPE html>
<html>
<head>
<title>HTML Web Page</title>
</head>
<body>
<h1>w3wiki</h1>
<p>A computer science portal for geeks</p>
</body>
</html>
Output:
The HTML basic structure with their descriptions are given below:
Components | Description |
---|---|
The declaration is not an HTML tag. This is an info to the browser about what document type to expect. | |
It means element is the root element of an HTML page. | |
It contains meta-information about the HTML page. | |
The element give the information about the title of HTML page (which is shown in the browser’s title bar or in the page’s tab). | |
The element describes the document’s body, and it contains all the visible contents that you see in a webpage, such as headings, paragraphs, images, hyperlinks, tables, lists, etc of the web page. | |
They are the basic structure of an HTML document that surrounds the content and applies meaning to it. Tags are enclosed within angle braces <tag name>. Most of the tags have their corresponding closing tags except few tags. | |
An attribute is used to define the characteristics of an HTML element that appears inside the opening tag and their values used inside the quotation marks. | |
It is a collection of start and end tags with the content inserted in between them. | |
It is used to define the headings of a page. There are six levels of headings defined by HTML. These 6 heading elements are h1, h2, h3, h4, h5, and h6; with h1 being the highest level and h6 being the least. |
What is HTML ?
HTML, or Hypertext Markup Language, is the standard language for creating web pages. It defines the structure and content of web documents using tags and attributes to format text, embed images, create links, and build interactive elements, facilitating communication between web browsers and servers.
HTML was invented by Tim Berners-Lee who was founded in 1990, a physicist at the CERN research institute in Switzerland. When working with HTML, we just use a simple code structure that contains tags and attributes to build the structure of a webpage, and it is displayed as such by the browser.
Table of Content
- HTML Structure
- Example of HTML Code
- Features of HTML
- Advantages and Disadvantages of HTML