HTML Language

HTML stands for HyperText Markup Language. HTML is a computer language devised for tagging text files to achieve font, color, graphics, and hyperlink effects on World Wide Web pages to create websites. Basically, it is a set of markup codes included in a file that is supposed to be displayed on the internet. HTML was developed by Berners-Lee in 1990.

It is relatively easy to learn, powerful in what it allows users to create, and also facilitates the sharing of scientific information between researchers. HTML pages consist of a series of HTML elements having a set of tags and attributes typed into a text file. Then the text is saved as an HTML file ending with a .html or .htm extension and viewed through a browser such as Internet Explorer.

This browser reads the HTML file, rendering its content and allowing internet users to view it. Opening tag, content, and closing tag are the three main parts of an element. HTML uses a special text called hyperlinks (hyper means not linear), which take users to new pages.

Why to Learn HTML?

HTML consists of tags that enable us to make a text big, small, bold, italic, or bullet form. They are keywords that help the content to be displayed. HTML tags are of three parts - opening tag, content, and closing tag. These tags help web browsers to differentiate between simple text and HTML text. Every HTML tags perform different tasks. They must be enclosed within < > these brackets. If an open tag < tag > is used then a close tag must be used </tag> . There are several HTML tags such as heading tags, paragraph tags, unclosed tags, HTML meta tags, HTML text tags, HTML link tags, HTML image and object tags ,etc.

What are HTML Elements?

An element in HTML includes the opening tag, a character, the content, and a closing tag. Some elements do not have a closing tag and are called empty elements. These elements have a link to content that you want to place on the particular web page. It tells a web browser how to structure and interpret a part of the HTML document. HTML elements add semantics and formatting to the document parts. Elements are not tags. You can put elements inside other elements also, this type of element is called nesting elements.

What is an HTML Attribute?

An HTML attribute is used to define the characteristics of an HTML element. They are special words that provide extra information about the elements. It defines the behavior of an element and is placed inside the element's opening tag. It modifies the HTML element and helps do things such as styling. An attribute is made up of two important parts - name and value. These are case sensitive, it should always be written in lowercase. The name is the property that the user wants to set while the value is what the user wants the value of the property to be set. If you want to add multiple attributes in a single HTML element, you can do it by giving space between the two attributes.

Are there different versions of HTML?

The very first version of HTML was developed by Tim Berners Lee in 1990. The version which was publicly available was released in 1991. HTML has many updates which reflect the advancement in technology. Different versions of HTML are HTML 1.0(in 1991), HTML 2.0(1995), HTML 3.2(in 1997), HTML 4.01(in 1999), XHTML(in 2000), HTML5(in 2014). The best version of HTML up till now is HTML5. It is a version with new functionalities with markup language with internet technologies.

What are the similarities and differences between HTML and XML?


1. XML and HTML both are markup languages. HTML stands for HyperText Markup Language and XML stands for Extensible Markup Language.
2. Both use tags. XML can have user-defined tags while HTML uses standard tags. They can be read by software, but users use internet browsers.
3. Both of the languages are derived from Standard Generalized Markup Language (SGML).
4. Both were released in the 90s and are used for responses either Direct Or by Alex.
5. Both of them are used for carrying information.


1. HTML is a markup language while XML provides a framework to define markup languages.
2. HTML is not case sensitive but XML is case sensitive.
3. HTML is static while XML is dynamic.
4. Tags in HTML are predefined whereas tags in XML are user-defined.
5. HTML is used for displaying data and XML is used for transferring data.
6. HTML does not preserve white spaces while XML does.
7. Closing tags in HTML are not necessary but in the case of XML, they are necessary.
8. Small errors can be ignored by HTML while XML does not allow errors.

Basic Structure of an HTML Document

<title> Write Your Title here <title>
<p> Write Your content here.</p>