Inline elements

The following elements can all wrap text- and block-level elements to give them functionality, style, and meaning.

a

The a element is the anchor element. This is where HTML gets the HyperText (HT), the syntax is as follows:

<a download href media ping rel target type></a>

Attributes

Here are the attributes that are used in the a element:

  • download: This attribute lets the browser know that the item should be downloaded. The dialog will default to the filename in this attribute.
  • href: This is the link target.
  • media: This states the media that the stylesheet should apply to based on a media query.
  • ping: This makes a URL to ping and notify if the link is followed.
  • rel: This states the relationship of the document being linked to.
  • target: This ...

Get Web Developer's Reference Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.