Team:Evry/wiki-guidelines
From 2012.igem.org
(Difference between revisions)
Line 44: | Line 44: | ||
Use the em tag to put your text in italic: | Use the em tag to put your text in italic: | ||
- | <pre><em> text in italic</em></pre> | + | <pre><em>text in italic</em></pre> |
Use the strong tag to put your text in bold: | Use the strong tag to put your text in bold: | ||
- | <pre><strong> text in bold</strong></pre> | + | <pre><strong>text in bold</strong></pre> |
<h2> Example </h2> | <h2> Example </h2> | ||
Line 96: | Line 96: | ||
<li> .. </li> | <li> .. </li> | ||
</ol> | </ol> | ||
+ | |||
+ | <h1> Arrays </h1> | ||
+ | |||
+ | <ol> | ||
+ | <li> Use the table tag to create an array;</li> | ||
+ | <li>Inside the table tag use the tr tag to create a line;</li> | ||
+ | <li>Inside the tr tag use the td tag to create a new cell.</li> | ||
+ | </ol> | ||
+ | |||
+ | <pre> | ||
+ | <table> | ||
+ | &lr;tr> | ||
+ | &lr;td>cell1&lr;/td> | ||
+ | &lr;td>cell2&lr;/td> | ||
+ | ... | ||
+ | &lr;/tr> | ||
+ | &lr;tr> | ||
+ | ... | ||
+ | &lr;/tr> | ||
+ | ... | ||
+ | &lr;/table> | ||
+ | </pre> | ||
<h1> Links </h1> | <h1> Links </h1> |
Revision as of 09:43, 15 July 2012
In order to keep our wiki clean please follow these guidelines when writing HTML code:
HTML tag and template
First of all, specify the template and put the html tag around your document:{{:Team:Evry/template_v1}} <html> your page goes here </html>
Titles
To put a title use the h1,h2,h3 tags:<h1> put your title here </h1>
Examples
h1 title
h2 title
h3 title
New line
If you want to end the current line use the br tag:<br/>
Example
line1line2
Bold/Italic
Use the em tag to put your text in italic:<em>text in italic</em>Use the strong tag to put your text in bold:
<strong>text in bold</strong>
Example
coucou <- italiccoucou <- bold
Lists
Dotted
Use the ul to create a list and the li tag to add an item:<ul> <li> item 1 <li> item 2 .. </ul>
Example
- item 1
- item 2
- ..
Numbered
Use the ol to create a list and the li tag to add an item:<ol> <li> item 1 <li> item 2 .. </ol>
Example
- item 1
- item 2
- ..
Arrays
- Use the table tag to create an array;
- Inside the table tag use the tr tag to create a line;
- Inside the tr tag use the td tag to create a new cell.
<table> &lr;tr> &lr;td>cell1&lr;/td> &lr;td>cell2&lr;/td> ... &lr;/tr> &lr;tr> ... &lr;/tr> ... &lr;/table>
Links
To add a link use the a tag:<a href="url to link">link name</a>
Example
Go checkout our wiki.Images
The two steps to add an image are:- Upload the image file using this page:here
- Use the img tag
<img src="localisation of the image" alt="text to print if image not found" />
Examples
- Url of the image: https://2012.igem.org/File:FrenchTouch.jpg
- The image: