Blog Detail

Home Blog Detail

What is HTML and its Basics?

Blog Img
What is HTML?
  • HTML stands for – Hyper Text Markup Language.
  • Its an Client side scripting Language.
  • Its used to create a web pages & web applications
  • HTML uses tags and elements to define the structure of a web page, including headings, paragraphs, images, links, tables, and more.
HTML Structure:
<!DOCTYPE html>
<html>
	<head>
		<title>Think4U</title>
	</head>
	<body>
		<h1>Welcome To Think4U</h1>
		<p>This is the sample content...</p>
	</body>
</html>
Basics of HTML:

<html></html> -> HTML tag represents the root of an HTML document

<h1></h1> — <h6></h6> -> Heading Tags (H1 to H6)

<p></p> -> Paragraph Tag

<b></b> -> Bold Text Tag

<strong></strong> -> Its is used to define importance text

<ul></ul> -> Unorder List

<ol></ol> -> Order List

<li></li> -> List Item

<form></form> -> Form Tag

<table></table> -> Table Tag

<a href=”#”></a> -> Link Tag

<img src=”url”> -> Image Tag

<br> -> Line Break Tag

<hr> -> Horizontal Line Tag

Tags:

HTML tags are used to hold the HTML element. Its starts with < and ends with >

<p></p>
Elements:

HTML element holds the content.

<p>This is the sample Text </p>
Attributes:

Its Provide the additional information about HTML Element. all the HTML elements can have attributes.

<a href="#" title="Sample Text">Sample Text</a>
Images:

The HTML <img> tag is used to embed images on a webpage

<img src="image_url" alt="imagename">
Links:

An HTML link is used to link other web pages. When users click on links on web pages, they are brought to other web pages or websites.

<a href="https://think4u.in/" target="_blank"> Link Text </a>
List:

HTML lists are group or collection of items. The lists come in three main categories:

  • Unordered lists
  • Ordered lists
  • Definition lists

Unordered Lists:

<ul>
    <li>Item 1</li>
    <li>Item 2</li>
</ul>

Ordered Lists:

<ol>
    <li>Item 1</li>
    <li>Item 2</li>
</ol>

Definition List:

<dl>
  <dt>Heading 1</dt>
  <dd>- Item 1</dd>
  <dt>Heading 2</dt>
  <dd>- Item 2</dd>
</dl>

© 2025Think4u. All Rights Reserved.