Team:Aachen/HTMLprimer

From 2014.igem.org

(Difference between revisions)
m
Line 22: Line 22:
<td class="contentcell" width="95%" align="center">  
<td class="contentcell" width="95%" align="center">  
<!-- TEXT STARTS HERE -->
<!-- TEXT STARTS HERE -->
 +
 +
<p><b>UPDATE:</b> Some things changed and the template got a lot easier. Now you can simply use:</br>
 +
<textarea rows="11" cols="20" disabled>
 +
__NOTOC__
 +
{{Team:Aachen/SlimHeader}}
 +
 +
 +
= Headline =
 +
This page is awaiting synthesis.
 +
 +
 +
{{Team:Aachen/SlimFooter}}
 +
</textarea>
 +
to create a page in our wiki.</br>
 +
If you want to use HTMl do it like this:</br>
 +
<textarea rows="11" cols="20" disabled>
 +
__NOTOC__
 +
{{Team:Aachen/SlimHeader}}
 +
 +
&lt;html&gt;
 +
 +
<h1>Headline</h1>
 +
<p>This page is awaiting synthesis.</p>
 +
 +
&lt;/html&gt;
 +
 +
{{Team:Aachen/SlimFooter}}
 +
</textarea>
 +
</p>
 +
</br></br></br></br></br>
 +
<h1>iGEM 2014 HTML Primer</h1>
<h1>iGEM 2014 HTML Primer</h1>

Revision as of 18:42, 24 June 2014

UPDATE: Some things changed and the template got a lot easier. Now you can simply use:
to create a page in our wiki.
If you want to use HTMl do it like this:






iGEM 2014 HTML Primer

everything a biologist1 needs to know

You will find an empty template of our website always here. Please do not alter that version. You can see who altered a file the last. So ^_^ beware!

Also for our all convenience, please restrict yourself to only edit text inbetween the following tags. If you happen to edit something other this is at your own risk, and most likely you will have to repair it on your own.
Please do not alter any of the include files like footer or header!

As a general side note. In HTML you must have (requirement!) a closing tag (</something>) for each opened tag (<something>)! I highly recommend to write the closing tag directly when you open a tag. That way you don't forget to add the closing tag ;). Also write the closing tags in the reverse order of the opening tags (just like the order of DNA): <a> <b> </b> </a>

There is the possibility to use MediaWiki syntax within the text area. Therefore simply change the above code to

but please keep in mind you shouldn't ask Markus to repair anything that's broken by using MediaWiki-Syntax. Known volunteers are so far: Michael.
Reverse argument: If you break anything in the opened HTML-scope, feel free to ask Markus.

Structuring your text

HTML knows some structuring elements. This section will tell you something about headings and paragraphs.

In HTML it is fairly easy to create a header. You can use the <h1> tags, where <h1> creates the biggest header, and <h6> is the smallest.

For creating line breaks simply use </br> - no opening tag is needed!
As in every scientific publiction you should not use too many line breaks. If you start a new paragraph, open a new paragraph instead.

Paragraphs, as in continuous text, should be within the <p> ... </p> tag.

Therefore a section in HTML could look like:

˰˰˰

Including Floats into your text

Including floats (figures, tables, etc.) into HTML unfortunately is not as straight forward as, for instance, in \LaTeX. Let's start with the least complicated stuff, and then get more involved. Therefore first we're linking websites, then including images, then tables and figures.

Linking (other) websites

In HTML there's no distinction between linking to some place on your own website, or to a foreign website. Everything uses the same construct (thank god!) which starts with <a ...></a>.
The address is either the name of an object (header, paragraph, block, ...) or the URL of a website, for instance http://2014.igem.org/Team:Aachen/. If you link to any of our sub-pages, please use the full URL. The text within the tag is the clickable link. You should keep that as short as possible, but as long as necessary!
Therefore a link to our start page would look like:
If you would like to specify the destination of the link, eg. loading in the same frame/windows/tab or in a new tab/window, you can choose between _blank for a new tab/window or _self for the current frame/window/tab.

Tables

Creating tables in HTML is a tedious task. Unfortunately you will most likely have quite a few tables. Therefore please use the following ( \LaTeX ) table generator, which also supports exporting the table as HTML. If you don't want the first row to be header-row, simply replace the <th></th> with <tr></tr>.

Please also change the start <table> to <class="contenttable"> such that the table gets represented as per our design. Consequently a table should look like:

header1 header2 header3
content1 content2 content3

Including Images

You can include images simply by using the following code:
Please upload images with fileformat Aachen_descr(_date).ext on the iGEM Server. descr stands for a short description together with an optional date in any of the allowed extensions.

Position your images adequatly. In most cases you will either need to align them left, right or as center. Please try to avoid having floating images as they usually get too small to see something. Please serve yourself with the example code:
If you want something special, google is your friend.

˰˰˰
˰˰˰
1. [In this sense, any biology related study program is meant.]?