Computer Science, asked by malikahamed7894, 8 months ago

What is the difference between container and empty element

Answers

Answered by manjaykumardrcc95
0

Explanation:

Container Elements: HTML container elements require a starting as well as an ending tag. Empty Element: HTML empty elements require just a starting tag and not an ending tag.

Most HTML elements consist of a starting tag, an ending tag, and everything that comes between the two tags, which is known as the element's contents. Here's an example of an element with a starting tag, and ending tag, and content:

<p>Hello, world!</p>

When tags are part of an element that can have content, the tags are called container tags.

Some elements only have a single tag and therefore can't have any content. These elements are called empty elements or empty tags.

Similar questions