Ajuda:HTML en text wiki/apèndix
Aparença
Sempre que sigui possible, en lloc d'utilitzar el codi HTML és preferible utilitzar el codi wiki o si no l'equivalent CSS, per exemple en el format <span style="CSS;">
. Les etiquetes HTML desfasades s'haurien d'evitar.
HTML | Codi wiki | Equivalent CSS | Notes | ||
---|---|---|---|---|---|
Format de paràgrafs | |||||
<blockquote>…</blockquote> |
| ||||
<br> o millor <br /> | línia en blanc | salt de línia | |||
<center>…</center> | text-align: center | desfasada per <div> | |||
<cite>…</cite> | citació literal d'un text (no confondre amb citació bibliogràfica) | ||||
<h1>…</h1> <h6>…</h6> |
=…= ======…====== |
Encapçalaments
| |||
<hr> | ---- | línia horitzontal
| |||
<p>…</p> | crea un paràgraf | ||||
<!-- … --> | <!-- comentari ocult -->
| ||||
Format de text | |||||
<b>…</b> <strong>…</strong> |
'''…''' | font-weight: bold | text en negreta | ||
<i>…</i> <em>…</em> |
''…'' | font-weight: italics | text en cursiva | ||
<big>…</big> | font-size: larger | text gran <big> és desfasada | |||
<small>…</small> | font-size: smaller | text petit | |||
<del>…</del> <s>…</s> <strike>…</strike> |
text-decoration: line-through | text text ratllat (la majoria de navegadors ho mostren igual) <strike> és desfasada | |||
<ins>…</ins> <u>…</u> |
text-decoration: underline | text afegit text subratllat (la majoria de navegadors ho mostren igual) | |||
<sub>…</sub> | vertical-align: sub; font-size: smaller |
text en subíndex i petit | |||
<sup>…</sup> | vertical-align: super; font-size: smaller |
text en superíndex i petit | |||
<code>…</code> <tt>…</tt> |
font-family: monospace | codi font amb espaiat uniforme <tt> és desfasada (vegeu Plantilla:Mono) | |||
<font>…</font> <font size="N"> <font color="red"> <font face="Courier"> |
font-size: Yunitat color: red font-family: Courier |
desfasada per <span> text de mida 1.3 em text vermell text en font Courier | |||
Llistes | |||||
<dl> <dt>…</dt> <dd>…</dd> </dl> |
; … : … |
| |||
<ol> <li>…</li> </ol> |
# # |
list-style-type: decimal |
| ||
<ul> <li>…</li> </ul> |
* * |
list-style-type: square |
| ||
Taules | |||||
<table> <caption>…</caption> <th>…</th> <tr>…</tr> <td>…</td> </table> |
{| |+ ! |- | |} |
|