What is HTML | HTML Basics

HTML is short for HyperText Markup Language. This is the standard language that is used in creating web pages and web applications. It is a markup language; that is, it makes use of tags and attributes to structure and organize content.

what is html


What is HTML 

1. HyperText:

HyperText is the use of links or hyperlinks connecting one page to another or to other resources like images, videos, and files.It enables easy navigation between web pages.

2. Markup Language:

A markup language is used to define the structure of content on a web page.

HTML uses elements and tags, such as <p> (paragraph), <h1> (heading), <a> (link), and <img> (image), to format and structure the content.

Structure of an HTML Document:

An HTML document follows a specific structure, as shown below:


<!DOCTYPE html>

<html>

<head>

<title>My Web Page</title>

</head>

<body>

<h1>Welcome to My Website</h1>

This is a sample paragraph of text.

Visit Example

<img src="image.jpg" alt="Sample Image">

</body>

</html>


1. DOCTYPE Declaration:

<!DOCTYPE html> indicates that this is a document that is made on HTML5.

2. HTML Element:

The most important root element that embeds all other elements to the page is the HTML tag.

3. Head Section:

Head contains metadata including Page Title (title) hyperlink to external stylesheets, external scripts etc.

4. Body Section:

 The <body> of the HTML page includes whatever is viewable to an end user, like images, links, and text.

There are many types of tags in HTML.

Structural Tags

<html>, <head>, <body>, <title>

Formatting Tags

<b> for making text bold, <i> for making text Italic, <u>for underlining.

Linking Tags

<a> or hyperlinks or anchor tag.

Media Tags

<img>or images, <video>, <audio>.

Table Tags

<table>,<tr> for a table row, <td> for table cell.

Attributes of HTML

HTML is very simple and easy to learn.

It has no relation with the machine it's being operated in . Platform Independent.

Foundation for Dynamic Web Pages:

HTML works with CSS and JavaScript to create dynamic and interactive web pages.

Evolve with Technology:

The newest versions like HTML5 come up with modern features supporting multimedia, graphics, and high-end web development.


Follow LaraAbouts for more ...

Post a Comment

Previous Post Next Post