Friday, March 18, 2016

Void elements in HTML5.

Void elements in HTML5.


some elements cannot have content.These are called void elements. For example, the <br> tag represents a line break and cannot have any content.

The following is a list of void elements in HTML5.


  1.   <area> Defines a hyperlink area with some text in an image map
  2.   <base> Specifies the document’s base URL or target for all relative URLs in thedocument
  3.   <br> Represents a line break
  4.   <col> Defines the properties of one or more columns within a <colgroup> element
  5.   <command> Defines a command that can be invoked by a user
  6.   <hr> Specifies a thematic change in content
  7.   <img> Defines an image
  8.   <input> Defines a typed data field that allows the user to edit the data
  9.   <link> Defines a relationship between a document and an external resource such as
  10.   <keygen> Defines a key-pair generator control for forms that is used to encrypt data
  11. that will be passed to the server
  12.   <meta> Defines metadata that describes the HTML document KeyTerms
  13.   <param> Defines a parameter for an object
  14.   <source> Defines a multimedia resource for a
  15.  <video> 
  16.  <audio> 
  17.   <wbr> Optionally breaks up a large word at this element

No comments:

Post a Comment