Thursday 18 May 2017

Self Closing Elements In HTML

Let's check out the self-closing elements present in Hypertext MarkUp Language (HTML).

In the previous case, the <meta>component had just a single tag and did exclude a closing tag. Fear not, this was deliberate. Not all elements comprise of opening and closing tags. A few elements essentially get their content or behavior from attributes inside a solitary tag. The <meta>element is one of these components. The content of the past <meta> element is relegated with the utilization of the charset attribute and value. Other basic self-closing elements incorporate.
  • <br>

  • <meta>

  • <img>

  • <link>

There are a few more which you can check out.

These are widely used in the HTML code.

The remaining elements apart from these have both opening and closing tags. E.g.<body></body>
Here as you can see, there is a separate opening and a closing tag that form the part of syntax.

Featured post

A Look At the CSS Selectors

A Look At the CSS Selectors As seen earlier, now we know that a Cascading Style Sheet (CSS) forms an integral part of web design . In th...

Search This Blog

Translate