What Is a Sub-element in HTML?

Q

What Is a Sub-element in HTML?

✍: FYIcenter.com

A

A sub-element is an HTML element that is included inside the content of another HTML element. The inner element is called the sub-element or child element. The outer element is called the parent element. Together they are called nested elements.

Note that which element is allowed to be included inside another element is defined by the XHTML specification. For example, element "p" is allowed inside "body", but it is not allowed inside "head".

 

Two HTML Elements Overlapping Each Other

What Is CDATA in HTML Documents?

Introduction of HTML Element Content Syntax

⇑⇑ HTML Tutorials

2024-02-28, 1337🔥, 0💬