HTML

Hypertext Markup Language (HTML) is a markup language used to create and link webpages. It defines the basic structure of a web page and contains meta-data about the page and a series of elements to be displayed on the web page. It uses predefined tags such as <table>, <form>, etc. to render different elements on the webpage. Each element requires a starting and ending tag with content inside it.
A marked-up document written in HTML is displayed by a web browser that interprets different tags and accordingly formats and structures the content of the document before displaying it. It can be written in a plain text editor and can be associated with styling sheets such as
CSS (Cascading Style Sheets)  and scripting languages such as JavaScript.

Example: Implementation of the basic structure of HTML code.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>HTML Example Code</title>
</head>
  
<body>
    <h1>w3wiki</h1>
    <p>A computer science portal for geeks</p>
</body>
  
</html>


Output:

Output of HTML Code

Features:

  • It is easy to learn
  • Platform-independent
  • Support audio, video, and images embedded web pages
  • Supported by all browsers
  • Can be integrated with styling and scripting languages

Drawbacks:

  • It can only create static web pages because of its static nature.
  • It offers limited security features.
  • It requires long code for creating even a simple web page.

Explain different markup languages other than HTML

Markup languages are computer languages that are used to structure, format, or define relationships between different parts of text documents with the help of symbols or tags inserted in the document. These languages are more readable than usual programming languages with strict syntax. There are several markup languages available but the most popular among them are as follows.

Table of Content

  • HTML
  • XML
  • XHTML
  • SGML

Similar Reads

HTML:

Hypertext Markup Language (HTML) is a markup language used to create and link webpages. It defines the basic structure of a web page and contains meta-data about the page and a series of elements to be displayed on the web page. It uses predefined tags such as

, , etc. to render different elements on the webpage. Each element requires a starting and ending tag with content inside it. A marked-up document written in HTML is displayed by a web browser that interprets different tags and accordingly formats and structures the content of the document before displaying it. It can be written in a plain text editor and can be associated with styling sheets such as CSS (Cascading Style Sheets)  and scripting languages such as JavaScript....

XML:

...

XHTML:

Extensible Markup Language (XML) is a markup language used for storing structured data. It uses custom tags to define the elements which support a wide range of elements. It was developed because HTML was unable to define new elements hence XML was introduced which was extensible to define custom elements. It was designed to store and transport data and contain information about the sender, receiver, heading, and message body. It is more focused on what data is rather than how data looks. It is used for representing documents, data, transactions, invoices, etc....

SGML:

...