Notification texts go here. Contact Us Buy Now!

Html tags and attributes


HTML tags are keywords (tag names) surrounded by angle brackets:

  • HTML tags normally come in pairs like <p> and </p>
  • The first tag in a pair is the start tag; the second tag is the end tag.
  • The end tag is written like the start tag, but with a slash before the tag name.


Tags can also have attributes, which are extra bits of information. Attributes appear inside the opening tag and their values sit inside quotation marks. They look something like:

<tag attribute="value">Margarine</tag>


Elements are the bits that make up web pages.

Example 1:

<body> The quick brown fox jumps over the lazy dog. </body> 

everything that is in between (and includes) <body> and </body> tags is the body element.

Example 2:

<title>Rumple Stiltskin</title>

“<title>” and “</title>” are tags, “<title>Rumple Stiltskin</title>” is a title element

Below are the few essential HTML tags:

<!DOCTYPE>This tag defines the document type and HTML version
<html>This tag encloses the complete HTML document and mainly comprises of document header which is represented by <head>...</head> and document body which is represented By <body>...</body> tags.
<head>This tag represents the document's header which can keep other HTML tags like <title>, <link> etc.
<title>The <title> tag is used inside the <head> tag to mention the Document title.
<body>This tag represents the document's body which keeps other HTML tags like <h1>, <div>, <p> etc.
<!-- … -->Defines a comment.

Getting Info...

About the Author

i am Sushil founder of this blog is a website to provide tips related to Blogging, SEO, Social Media, Business Idea, Marketing Tips, Make Money Online, Education, Interesting Facts, Top 10, Life Hacks, Marketing, Review, Health, Ins…

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.