HTML - Tag

DETAILS

This tag specifies additional details that the user can open and close on demand.

DFN

The <dfn> tag stands for the "definition element", and it specifies a term that is going to be defined within the content.


The nearest parent of the <dfn> tag must also contain the definition/explanation for the term.

DIALOG

This tag defines a dialog box or sub window.

FIELDSET

This tag is used to group related elements in a form.

FIGURE

The <figure> tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.


While the content of the <figure> element is related to the main flow, its position is independent of the main flow, and if removed it should not affect the flow of the document.


Tip: The <figcaption> element is used to add a caption for the <figure> element.

IMG

The tag is used to embed an image in an HTML page.


Attributes:

  • width - set the width of any image.
  • height - set the height of any image.
  • border - specify the border thickness in pixels.
  • alignment - align the image.

INS

This tag defines a text that has been inserted into a document. Browsers will usually underline inserted text.

KBD

This tag is used to define keyboard input. The content inside is displayed in the browser's default monospace font.

LEGEND

This tag defines a caption for the <fieldset> element.

MAP

The <map> tag is used to define an image map. An image map is an image with clickable areas.


The required name attribute of the <map> element is associated with the <img>'s usemap attribute and creates a relationship between the image and the map.


The <map> element contains a number of <area> elements, that defines the clickable areas in the image map.

MARK

This tag defines text that should be marked or highlighted.

MARQUEE

This tag is a container tag of HTML is implemented for creating scrollable text or images within a web page from either left to right or vice versa, or top to bottom or vice versa.