Povolené HTML značky
- Webové a e-mailové adresy jsou automaticky převedeny na odkazy.
- Řádky a odstavce se rozeznávají automaticky . Automaticky se vloží značky pro zalomení řádku <br />, začátek <p> a konec </p> odstavce. Pokud nejsou odstavce rozeznány, jednoduše přidejte pár prázdných řádků.
Povolené HTML značky: <a> <b> <big> <blocquote> <br> <center> <cite> <div> <em> <h3> <h4> <h5> <h6> <hr> <img> <li> <ol> <p> <pre> <small> <span> <strike> <strong> <style> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <tt> <u> <ul>
Tento web povoluje HTML obsah. Učení se HTML zní děsivě, ale naučit se používat několik málo nejzákladnějších HTML „značek“ je velice snadné. Tato tabulka poskytuje příklady pro každou značku povolenou na tomto webu.
Více informací lze nalézt ve specifikaci HTML u W3C nebo ve vyhledávači.
Popis značky Napíšete Získáte Odkazy na jiné stránky <a href="http://web.natur.cuni.cz/student">Studentský web</a>Studentský web Tučné <b>Tučné</b>Tučné Chybí nápověda pro značku big. Chybí nápověda pro značku blocquote. Implicitně se zalomení řádku vkládá automaticky, takže touto značkou přidáte další. Tato značka se liší, protože nemá otevírací a ukončovací značku jako ostatní. Pro kompatibilitu s XHTML 1.0 vložte do značky navíc „ /“. Text s <br />zalomením řádkuText s
zalomením řádkuChybí nápověda pro značku center. Citace <cite>Citace</cite>Citace Chybí nápověda pro značku div. Zvýrazněné <em>Zvýrazněné</em>Zvýrazněné Hlavička <h3>Podnadpis tři</h3>Podnadpis tři
Hlavička <h4>Podnadpis čtyři</h4>Podnadpis čtyři
Hlavička <h5>Podnadpis pět</h5>Podnadpis pět
Hlavička <h6>Podnadpis šest</h6>Podnadpis šest
Chybí nápověda pro značku hr. Chybí nápověda pro značku img. Číslovaný seznam - použijte <li> na začátku každé položky seznamu <ol> <li>První položka</li> <li>Druhá položka</li> </ol>- První položka
- Druhá položka
Implicitně se odstavce přidávají automaticky, takže touto značkou přidáte další. <p>Odstavec jedna.</p> <p>Odstavec dvě.</p>Odstavec jedna.
Odstavec dvě.
Předformátované <pre>Předformátované</pre>Předformátované
Chybí nápověda pro značku small. Chybí nápověda pro značku span. Chybí nápověda pro značku strike. Tučné <strong>Tučné</strong>Tučné Chybí nápověda pro značku style. Dolní index <sub>Dolní</sub> indexDolní index Horní index <sup>Horní</sup> indexHorní index Tabulka <table> <tr><th>Záhlaví tabulky</th></tr> <tr><td>Buňka tabulky</td></tr> </table>Záhlaví tabulky Buňka tabulky Chybí nápověda pro značku tbody. Chybí nápověda pro značku tfoot. Chybí nápověda pro značku thead. Chybí nápověda pro značku tt. Podtržené <u>Podtržené</u>Podtržené Nečíslovaný seznam - použijte <li> na začátku každé položky seznamu <ul> <li>První položka</li> <li>Druhá položka</li> </ul>- První položka
- Druhá položka
Většinu neobvyklých znaků můžete zadávat bez problémů.
Pokud narazíte na problémy, zkuste použít HTML entity. Např. zapište & pro znak ampersandu &. Kompletní seznam HTML entit naleznete na stránce entit. Mezi nejpoužívanější patří:
Popis znaku Napíšete Získáte Ampersand && Větší než >> Menší než << Uvozovky "" To add a lightbox to your images, add rel="lightbox" attribute to any link tag to activate the lightbox. For example:
<a href="image-1.jpg" rel="lightbox">image #1</a><a href="image-1.jpg" rel="lightbox[][my caption]">image #1</a>To show a caption either use the title attribute or put in the second set of square brackets of the rel attribute.
If you have a set of related images that you would like to group, then you will need to include a group name between square brackets in the rel attribute. For example:
<a href="image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="image-2.jpg" rel="lightbox[roadtrip][caption 2]">image #2</a>
<a href="image-3.jpg" rel="lightbox[roadtrip][caption 3]">image #3</a>
There are no limits to the number of image sets per page or how many images are allowed in each set.
If you wish to turn the caption into a link, format your caption in the following way:
<a href="image-1.jpg" rel='lightbox[][<a href="http://www.yourlink.com">View Image Details</a>]' >image #1</a>To add a lightbox slideshow to your images, add rel="lightshow[slideshowname][slide caption]" attribute to any link tag to activate the slideshow. For example:
<a href="image-1.jpg" rel="lightshow[show1]">image #1</a>
<a href="image-2.jpg" rel="lightshow[show1]">image #2</a>
<a href="image-3.jpg" rel="lightshow[show1]">image #3</a>
The title attribute in the link tag is optional. The addition of this attribute enables the display of a caption with the image displayed in the lightbox.
There are no limits to the number of slideshow image sets per page or how many images are allowed in each slideshow.
If you wish to turn the caption into a link, format your caption in the following way:
<a href="image-1.jpg" rel='lightshow[show1][<a href="http://www.yourlink.com">View Image Details</a>]'>image #1</a>It's possible to show webpage content in the lightbox, using iframes. In this case the "rel" attribute should be set to "lightframe". Again it's possible to group the content, (e.g.
lightframe[search][caption]) but in addition to that, it's possible to control some of the iframe properties. It's possible to set the "width", "height" and "scrolling" properties of the iframe. The properties are separated from the group name by a|, for examplelightframe[search|width:100px;][caption]. If no grouping is being used, then the|is still used and the format would belightframe[|width:100px;]. The properties should all be of the format "property: value;" - note the closing semi-colon. If no iframe properties are set, then the default width and height of 400px will be used. See below for more detailed examples.Basic example:
<a href="http://www.google.com" rel="lightframe">Search google</a>Grouped example:
<a href="http://www.google.com" rel="lightframe[search][caption]">Search google</a>
<a href="http://www.yahoo.com" rel="lightframe[search]">Search yahoo</a>Controlling iframe property example:
<a href="http://www.google.com" rel="lightframe[|width:400px; height:300px; scrolling: auto;][caption]">Search google</a>Controlling iframe property when grouped example:
<a href="http://www.google.com" rel="lightframe[search|width:400px; height:300px; scrolling: auto;]">Search google</a>
<a href="http://www.yahoo.com" rel="lightframe[search|width:400px; height:300px;]">Search yahoo</a>It's possible to show video content in the lightbox. In this case the "rel" attribute should be set to
lightvideo. It's possible to group videos and to control the size of the lightbox by setting the "width" and "height" properties. The properties can be configured likelightvideo[group|width:300px; height: 200px;][caption]. The properties should all be of the format "property: value;" - note the closing semi-colon. If no properties are set, then the default width and height of 400px will be used. See below for more detailed examples.Basic example:
<a href="http://video.google.com/videoplay?docid=1811233136844420765" rel="lightvideo">Google video example - default size</a>Controlling lightbox size example:
<a href="http://video.google.com/videoplay?docid=1811233136844420765" rel="lightvideo[group|width:400px; height:300px;][caption]">Google video example - custom size</a>Supported video formats include asx, wmv, mov and swf. A number of online video providers are also supported, including YouTube and Google Video. For a full list of the current supported video providers please see the documentation on drupal.org.
It's possible to show HTML snippets in the lightbox, that is on the same domain. In this case the "rel" attribute should be set to "lightmodal". Again it's possible to group the content, (e.g.
lightmodal[group][caption]) but in addition to that, it's possible to control some of the modal properties. It's possible to set the "width", "height" and "scrolling" properties of the modal. The properties are separated from the group name by a|, for examplelightmodal[group|width:100px;][caption]. If no grouping is being used, then the|is still used and the format would belightmodal[|width:100px;]. The properties should all be of the format "property: value;" - note the closing semi-colon. If no modal properties are set, then the default width and height of 400px will be used. See below for more detailed examples.Basic example:
<a href="search.php" rel="lightmodal">Search</a>Grouped example:
<a href="search.php" rel="lightmodal[search][caption 1]">Search</a>
<a href="search.php?status=1" rel="lightmodal[search]">Search published</a>Controlling modal property example:
<a href="search.php" rel="lightmodal[|width:400px; height:300px; scrolling: auto;][caption]">Search</a>Controlling modal property when grouped example:
<a href="search.php" rel="lightmodal[search|width:400px; height:300px; scrolling: auto;]">Search</a>
<a href="search.php?status=1" rel="lightmodal[search|width:400px; height:300px;]">Search published</a>- If you include a textual smiley in your post (see chart below), it will be replaced by a graphical smiley.
- Typogrify.module brings the typographic refinements of Typogrify to Drupal.
- Wraps ampersands (the $ldquo;&” character) with <span class=\"amp\">&</span>.
- Prevents single words from wrapping onto their own line using Shaun Inman's Widont technique.
- Converts straight quotation marks to typographer's quotation marks, using SmartyPants.
- Converts multiple hyphens to en dashes and em dashes (according to your preferences), using SmartyPants.
- Wraps multiple capital letters with <span class=\"caps\">CAPS</span>.
- Wraps initial quotation marks with <span class=\"quo\"></span> or <span class=\"dquo\"></span>.
- Adds a css style sheet that uses the <span> tags to substitute a showy ampersand in headlines, switch caps to small caps, and hang initial quotation marks.


