Code it ALL
HTML Basic Tags - CodeGK
♦ HTML Basic Tags

♣ About HTML Basic Tags

We will see few basic HTML tags in this chapter.
These tags are fundamental and are used in almost all website layouts.

♣ Example1: <html> tag in HTML

In this example: <html> tag outlines whole code in a file, everything is defined inside these tags.

♣ Example2: <head> in HTML

The "head" element contains meta information about the document
Some meta information examples are
  • title: ElementalPage
  • meta: name="viewport" content="width=device-width, initial-scale=1"
  • link: rel="stylesheet" type="text/css" href="styles.css"
In this example: 3 types of meta information is defined.
Output: Title tag is displayed in tab, and rest two tags will function upon adding relevant code coresponding to them.

♣ Example3: <title> in HTML

In this example: It is a text which is displayed in tab of browser.
Input: Demonstration of Title
Output: Zoom in at tab of browser to see ElementalPage as displayed on tab of browser.

♣ Example4: <body> in HTML

In this example: Body tag is illustrated.
Input: Initialize n-dimensional array with value k
Output: This text was defined inside body.