What is Container and Empty Tag in HTML | Container vs Empty Tag

Опубликовано: 22 Апрель 2026
на канале: A2IT InternEdge
614
9

What is Container and Empty Tag in HTML | Container vs Empty Tag

#HTMLTags #HTMLTutorial

In this video, you will learn about how to create HTML Structure in a text editor(notepad).
HTML is used to create your website by using different types of tags. We used HTML to create the structure of our Website. Further, when you want to add formatting to your website then we use CSS.
Container tags are those tags In which you need to add starting and ending tags.
Empty Tags are those tags in which only we need to add starting tags. There are no ending tags in empty tags.
The web browser reads an HTML document, the browser reads it in the hierarchy and left to right. HTML tags help to create HTML documents and give them their formats. Each HTML tag has different layouts.
The HTML file must have important tags so that the web browser can distinguish between simple text and HTML text. You can use as many tags as you want to depend on your code requirement.
The head tag uses the HTML document header section that contains the most useful information about the document. Used between HTML tag and body tag.

The title tag is not displayed in the browser when loading the page. But it has many details such as document title, text, styles, meta details, link, NoScript, background, and more.

Now Get Free Video Courses, E-Books, Event Updates & Class Notes Anywhere Anytime
LEARN ANYWHERE WITH A2IT IOS AND ANDROID APP
https://a2itsoft.com/free-app
Free Download Educational App with Step-by-Step Guide To Learn or Teach in Smarter Way

our Websites:
https://www.a2itonline.com
  / a2itonline  

Container tags are usually divided into three categories opening tag, content (to be displayed in the browser), and closing tag. In the Content section, they may contain other tags. These opening and closing tags are used in pairs which are the starting and ending tags, often called the ON and OFF tags. If you forget to close the container marker, the browser applies the result of the opening tag to the end of the page. So be careful when working with container tags. Most tags are in HTML with container tags.
Container Tags are HTML, HEAD, BODY, P, DIV, SECTION, TITLE, ANCHOR TAG etc.

Empty Tags without tags are known as blank tags. Empty tags contain not only an unmarked tag but also a specific action on a web page.

Syntax:

tag_name

Some of the most widely used blank tags are:

br: Adds a line break to a web page where needed.
hr Insert a horizontal line where necessary on a web page.
img: This tag is used to display images on a web page provided in the tag src attribute.
input: This is mostly used for forms to take input from the user and can also define the input type.
link: When we store our CSS in an external file this can be used to link external files and text to a web page and is widely used to link CSS files.
meta: Contains all web metadata. Metadata is data about data and is defined in the header tag.
source: When required external media source to be included on a web page. The source tag is used to include any media source such as audio, video, etc .. on our web page.


Distinguish between the container and blank HTML content.
The tag container contains an opening tag + content + closure tag. They are used to close text and images. The container tag always comes with content. Empty objects are used to insert content. Empty tags can be used inside container tags.