HyperText Markup Language (HTML)
- HTML stands for Hyper Text Markup Language
- HTML was invented by Tim Berners-Lee in 1991.
- HTML is used for creating web pages and web applications.
- It is used to describe the structure of Web pages using markup tags.
Markup languages use sets of markup tags to characterize text elements within a document, which gives instructions to the web browsers on how the document should appear.
HTML is written in the form of HTML elements consisting of markup tags. These markup tags are the fundamental characteristic of HTML. Every markup tag is composed of a keyword, surrounded by angle brackets <tagname>content</tagname>.
- HTML tags normally come in pairs like <p> and </p>
- The first tag in a pair is the start tag, the second tag is the end tag.
- The end tag is written like the start tag, but with a slash before the tag name.
Basic Structure of HTML
Each HTML page consists of a set of tags or elements which are known as the building blocks of web pages. They create a hierarchy that structures the content into sections, paragraphs, headings, and other content blocks.
- The <html></html> tag is the highest level element that encloses every HTML page.
- The <head></head> tag holds meta information such as the page’s title and charset.
- The <body></body> tag encloses all the content that appears on the page.