HTML Tutorial

What is HTML: Understanding HyperText Markup Language

What is HTML: Understanding HyperText Markup Language!

HTML stands for HyperText Markup Language and is used to create the structure and content of a webpage. It consists of elements, which are represented by tags, and attributes, which provide additional information about an element.

What is HTML

To create an HTML document, you will need a text editor (such as Notepad or Sublime Text) and a web browser (such as Google Chrome or Firefox).

First, create a new file in your text editor and save it with a .html extension (e.g. “mypage.html”).

To start an HTML document, you need to include the following elements:

To start an HTML document, you need to include the following elements:


					
				

The <!DOCTYPE html> declaration tells the web browser that this is an HTML document. The <html> element encloses the entire HTML document, while the <head> element contains information about the document, such as the title and any CSS or JavaScript files that are used.

The <title> element specifies the title of the webpage, which is displayed in the browser’s tab. The <body> element contains the content of the webpage.

To add content to the webpage, you can use various HTML elements. Some common elements include:

HTML elements & tages

<h1> to <h6> for headings

<p> for paragraphs

<div> for divisions or sections of the webpage

<img> for images

<a> for links


					
				

You can also add attributes to elements to provide additional information. For example, the src attribute in the <img> element specifies the source file for the image, and the alt attribute specifies an alternative text that is displayed if the image cannot be displayed. The href attribute in the <a> element specifies the link destination.

That’s a basic introduction to HTML! There are many more elements and attributes that you can use to create a webpage, but this should give you a good starting point.

You can find more information about HTML and web development on resources such as W3Schools and MDN Web Docs.

Also Read: What is CSS or Cascading Style Sheets & How Strong is it?

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top