HTML Brief Intro ๐Ÿ˜Ž

ยท

2 min read

HTML (Hypertext markup language) is the reason behind creating web pages and is often called the skeleton of a webpage. HTML is generally a collection of tags known as HTML elements, which define the structure of the webpage.

A webpage is basically made up of two parts: the head tag and the body tag. The head tag contains meta tags, as well as other link tags to CSS and JavaScript files. This section is hidden and not displayed on the webpage itself. They are used for search engine optimization and other purposes like providing information about the page. On the other hand, the body tag represents the visible content of the webpage. It includes tags like paragraphs and heading tags such as. Both the head and body tags are nested within the HTML tags, which serve as the root tags. This is how HTML is utilized to structure the content on a webpage.

HTML tags are used to display content on the webpage. For example, paragraph tag <p> Hello World! <p> Enclose the content to be displayed as a paragraph. Notice that HTML tags consist of an opening and closing tag, with the content placed in between. However, some HTML tags do not require a closing tag, like the <br> tag which is used to create a line break.

HTML elements can also have attributes used to style or add properties to the HTML tag. For instance, the image tag has characteristics like height and width, which define the dimensions of the image to be displayed on the screen. These attributes are specified within the opening tag of the element. Here are some common HTML tags:

<h1> Heading tag with the largest size.

<h2> Heading tag with a size smaller than h1.

<p> Used to create paragraphs.

<img> Image tags are used to display images on the screen.

<a> Anchor tags create hyperlinks that link to other web pages or documents.

<ul> creates an unordered list.

<table> used to display data in tabular format.

ย