Workshop in Computational Bioskills

Workshop in Computational Bioskills - Spring 2008

Briefly on HTTP and HTML

HTTP - HyperText Transfer Protocol : We went over this briefly in Lesson 6 

HTML - HyperText Markup Language



Basics
Attributes
Images and Links
Lists and Tables
Frames
Forms
Your First Steps




Let's write a simple HTML document 

An HTML document contains two distinct parts - the head and the body. The head contains information about the document that is not displayed. The body contains the content displayed on the screen.

example 1 and the source code.

Tags define entities, and each entity has attributes that characterize it. Here's a partial list of entities:

* <html>
* <head>
* <body>
* <title>
* <h1> to <h6> : headers style
* < font >
* < strong >: strong
* < b >: bold
* < u >: underline
* < i >: italic
* < p >: paragraph
* < br >: line break
* < hr >: horizontal line
* < pre >: keep break lines and spaces

example:
<h1> This is a header </h1>
< !-- This is a comment -- >

Attributes

Each tag can contain attributes which describe the characters of the displayed information. Attributes may appear in several entities. Here's a list for the most common attributes:

example 2 and the source code Images and Links

The HTML links enables you actually to traverse the web. There are different types of links: local - in the same file, and external - to another file (any accessible file). Images can be a link too!

 example of local link
 and example of absolute link. see code.
 example of external link . see code


Images and Links have additional attributes

Lists and Tables

HTML has special entities that describe lists (ordered or not) and tables.

example of a list  see code 
example of a table see code 

Frames

Instead of a body, the document can have a frameset element, which split the page into several frames, each shows a different document. Frames can hold other frames.

example of a simple frame see code Forms

Forms enables the user to send information to the server. The server processes the information using a program which is specified in the form definition. Forms include text boxes, radio buttons, submit buttons etc.

example of a form see code Your First Steps

In order to create your own web page, you should have the directory www in your home directory. File index.html is the file that is called by default when browsing to "http://www.cs.huji.ac.il/~login". This lesson gives only basic information. You can learn a lot from looking at web pages sources. In addition, there are many "learning HTML" sources on the web. A clear and convenient one is www.w3schools.com. If you want to learn more, you can also look at dbi first few lessons.

Good Luck!