[WEBINAR] Bulletproof: How Today's Business Leaders Stay on Top

Self-Closing Tag

Definition - What does Self-Closing Tag mean?

A self-closing tag is an element of HTML code that has evolved in the language. Typically, the self-closing tag makes use of a “/” character in order to effectively close out a beginning tag enclosed in sideways carets.

Techopedia explains Self-Closing Tag

The story of the self-closing tag has to do with the ways that HTML has been evolved throughout its use since the late 1980s. A conventional HTML tag had an opening tag and a closing tag. However, there are elements in HTML called void elements, such as images and links, that do not strictly require closing tags because of their inherent structure. Experts claim that things like images and links do not need and cannot have content – they are just kind of pointers to an element that is installed in the page.

In more recent variations of HTML such as XHTML, instead of including individual opening and closing tags, developers use a self-closing tag that includes a “/” within the carets: for example – <img src="img/circle" alt="" />

Now, with HTML 5, even that slash character is considered obsolete. W3C rules and other standards show that developers no longer need to include the character to indicate a closing tag, because it is understood that those void elements do not need any closing at all. Significant questions come up on sites around the Internet about how HTML and W3C standards deal with self-closing tag syntax.

Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.