Starting With Html.

·

2 min read

HTML stands for Hypertext Markup Language. This is used to create a skeleton of a webpage. It has an opening and closing tag such as <tag> </tag>. Some of them are self-closing tags i.e <br/>, <img/> and more.

A basic website can be built through HTML but it will not have a design and interaction thus it can be fulfilled by using CSS, javascript and other frameworks but being a basic foundation of a website it is important to build expertise in HTML.

A basic structure of an HTML is:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
 <!-- Main Content is here -->
</body>
</html>

The function of the following default tags are:

  1. <! doctype html> This is a tag used to describe the document type which is going to be written below i.e HTML.

  2. <html lang="en"> This tag is used to describe the language type in HTML i.e English.

  3. metadata This is the data used to tell about the content of HTML data. It is important for SEO (Search Engine Optimization).

  4. <title> Title is used to define the title of an HTML on the browser tab.

  5. <body> The Main content that will be visible on the screen will come here.

Besides this, other tags are frequently used in <body> of the HTML i.e <h1>, <div>, <p>, <hr>,<br>, <table> with their respective closing tags.

Let's write a basic HTML that will contain <h1>, <br>, <h1>, and <p> tags.