Tillåtna HTML-taggar: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <h1> <h4> <h5> <img> <b> <i> <pre> <br> <p>
Denna webbplats tillåter innehåll med HTML. Att lära sig HTML kan kännas som en övermäktig uppgift, men att lära sig de enklaste HTML-taggarna är mycket enkelt. Denna tabell ger exempel för varje tagg som är aktiv på webbplatsen.
För mer information, se W3C:s HTML-specifikation eller använd en sökmotor för att hitta andra webbplatser som förklarar HTML.
| Taggbeskrivning | Du skriver | Du får |
|---|---|---|
| Ankare används för att skapa länkar till andra sidor. | <a href="http://www.piratpartiet.se">Piratpartiet</a> | Piratpartiet |
| Betonat/kursivt | <em>Betonat/kursivt</em> | Betonat/kursivt |
| Stark | <strong>Stark</strong> | Stark |
| Citerat | <cite>Citerat</cite> | Citerat |
| Kodad text som används för att visa programkällkod. | <code>Kodat</code> | Kodat |
| Onumrerad lista - använd <li> för att påbörja varje ny post i listan | <ul> <li>Första posten</li> <li>Andra posten</li> </ul> |
|
| Numrerad lista - använd <li> för att påbörja varje ny post i listan | <ol> <li>Första posten</li> <li>Andra posten</li> </ol> |
|
| Definitionslistor liknar andra listor i HTML. <dl> inleder listan, <dt> inleder definitionstermen och <dd> inleder definitionsbeskrivningen. | <dl> <dt>Första termen</dt> <dd>Första definitionen</dd> <dt>Andra termen</dt> <dd>Andra definitionen</dd> </dl> |
|
| Sidhuvud | <h2>Underrubrik</h2> | Underrubrik |
| Sidhuvud | <h3>Tredje rubrik</h3> | Tredje rubrik |
| Sidhuvud | <h1>Titel</h1> | Titel |
| Sidhuvud | <h4>Fjärde rubrik</h4> | Fjärde rubrik |
| Sidhuvud | <h5>Femte rubrik</h5> | Femte rubrik |
| Ingen hjälp finns tillgänglig för taggen img. | ||
| Fet | <b>Fet</b> | Fet |
| Kursiverat | <i>Kursiverat</i> | Kursiverat |
| Förformaterat | <pre>Förformaterat</pre> | Förformaterat |
| Som standard läggs radbrytningstaggar till automatiskt, så använd denna tagg för att lägga till flera. Den här taggen används lite annorlunda i och med att den inte har en start- och sluttagg som övriga taggar. Använd ett extra "/" inuti taggen för att behålla kompatibiliteten med XHTML 1.0. | Text med <br />radbrytning | Text med radbrytning |
| Som standard läggs stycketaggar till automatiskt. Använd denna tagg för att lägga till flera. | <p>Första stycket.</p> <p>Andra stycket.</p> | Första stycket. Andra stycket. |
De flesta ovanliga tecken kan skrivas in direkt utan problem.
Försök använda HTML-teckenenheter om du råkar ut för problem. Ett vanligt exempel är & för ett &-tecken. En komplett lista över teckenenheter ("entities") finns på HTML entities. Några av de tillgängliga tecknen är:
| Teckenbeskrivning | Du skriver | Du får |
|---|---|---|
| Tecknet & | & | & |
| Större än | > | > |
| Mindre än | < | < |
| Citationstecken | " | " |
Quoted content can be placed between [quote] tags in order to be displayed as an indented quote. Every [quote] tag must have a corresponding [/quote] tag. For example:
[quote]This is a simple quote.[/quote]is displayed as:
Additionally, there is an optional attribute which allows quotes to specify the original author.
[quote=Mr. Drupal]This is a quote with an attribution line.[/quote]is displayed as:
Finally, multiple [quote] tags can be nested within one another. Just remember that every [quote] tag must have a corresponding [/quote] tag.
[quote]I think she says it best... [quote=Ms. Quotation]This is a quote nested within another quote.[/quote] but you can't argue with [quote=Ms. Reply]The more quotes, the merrier. Just don't get too carried away.[/quote] And I have nothing more to say.[/quote]is displayed as:
Quoted content can be placed between [quote] tags in order to be displayed as an indented quote. Every [quote] tag must have a corresponding [/quote] tag. For example:
[quote]This is a simple quote.[/quote]is displayed as:
Additionally, there is an optional attribute which allows quotes to specify the original author.
[quote=Mr. Drupal]This is a quote with an attribution line.[/quote]is displayed as:
Finally, multiple [quote] tags can be nested within one another. Just remember that every [quote] tag must have a corresponding [/quote] tag.
[quote]I think she says it best... [quote=Ms. Quotation]This is a quote nested within another quote.[/quote] but you can't argue with [quote=Ms. Reply]The more quotes, the merrier. Just don't get too carried away.[/quote] And I have nothing more to say.[/quote]is displayed as: