HTML Elements with Sub-elements Contents

Q

What Are the HTML Elements Defined with Sub-elements Contents?

✍: FYIcenter.com

A

The following HTML elements are defined to use the sub-element content model:

  • <html> - The root element of the document.
  • <head> - Element to provide head information to the document.
  • <ul> - Element to provide an un-numbered list.
  • <ol> - Element to provide an ordered list.
  • <form> - Element to provide an input form.
  • <select> - Element to provide a selection control in a form.
  • <table> - Element to provide a table structure in the document.
  • <tr> - Element to provide a row to a table.

Remember that sub-element content elements can only have other HTML elements in their contents. You can not include any test strings directly in their contents.

 

HTML Elements with Mixed Contents

HTML Elements with PCDATA Contents

Introduction of HTML Element Content Syntax

⇑⇑ HTML Tutorials

2024-04-14, 1090🔥, 0💬