Predložak:Em/doc

Izvor: Hrvatska internetska enciklopedija
Prijeđi na navigaciju Prijeđi na pretraživanje
Ovaj članak ili dio članka, djelomično ili uopće nije preveden s engleskog jezika.
Slobodno pomozite u prijevodu vodeći računa o stilu i pravopisu. Izvornik se možda nalazi na popisu drugih jezika.

Usage

{{|text to be emphasized}}

or, if the text to be emphasized contains an equals sign:

{{|1=text to be emphasized}}

These both render as:

text to be emphasized

This template puts intentional and explicit <em>...</em> (emphasis) [X]HTML markup around the text provided as the first parameter. It is safest to always use the |1=.

Optional parameters

Advanced HTML values can be passed through the template to the HTML code:

  • |role= takes a WAI-ARIA role; adds role="rolename" to the HTML code
  • |class= takes a class name (or multiple class names, separated by spaces); adds class="classname[s]" to the HTML code
  • |style= takes inline CSS input; adds style="CSS directive[s]" to the HTML code
  • |id= takes a valid, unique HTML id (must begin with an alphabetic letter); adds id="name" to the HTML code
  • |title= takes text, which cannot be marked up in any way, and displays it as a pop-up "tooltip" (in most browsers) when the cursor hovers over the span