Self-Closing Tags

Description

You can express empty elements more concisely by using a single tag, as shown in the following code.


I like <code/>  HTML and CSS.

You combine the start and end tag into one-the stroke character (/) It is used to signify the start of the end tag.

The code above has the same meaning with the following code.


I like <code></code>  HTML and CSS.

The single tag is a more concise way of expressing the empty element.





















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed