Riverview Church

ELEMENTS

Elements structure web pages.

SYNTAX

VOID

<start-tag>

Void elements have a start tag.

<start-tag> = <tag-name attribute-name="attribute-value">

The start tag must have a tag name and may have attributes with a name and value.

NON-VOID

<start-tag>content</end-tag>

Non-void elements have a start tag, content, and an end tag.

<start-tag> = <tag-name attribute-name="attribute-value">

The start tag must have a tag name and may have attributes with a name and value.

content

The content may have characters, comments, and/or other elements.

</end-tag> = </tag-name>

The end tag must have a tag name.

EXAMPLES

VOID

NON-VOID

Web Hypertext Application Technology Working Group (WHATWG)