Computer Science, asked by mayurvishwakarma1118, 13 hours ago

Class 7 Computer
Chapter - Introduction to HTML
Explain any two container tags and two Empty tags with example:

Answers

Answered by atulkum013
0

Explanation:

Empty Tags

The tags that do not contain any closing tags are known as empty tags. Empty tags contain only the opening tag but they perform some action in the webpage.

Example

<br>: Inerts a line break in a webpage wherever needed.

<hr>: Inserts a horizontal line wherever needed in the webpage.

Container tags

Container tags are generally divided into three parts, i.e., opening tag, content, and closing tag.

Example

<html>….</html>: This marks the beginning and ending of the webpage also it tells that the document is an HTML document. This contains all other tags in between these tags which are considered for making a webpage.

<head>…</head>: This tag is used to define the head part of the document which contains the information related to the webpage.

Similar questions