"; foreach ($arr as $key=>$val){ if (startsWith($val, "divider_")) $divider=str_replace("divider_","",$val); else $divider=false; if (!$divider){ $html .= "
".htmlentities($val)."\n
HTML Quick List adapted from W3Schools. Print it, fold it, and put it in your pocket.
Here are some great tutorial sites:
For more in depth, you can also check out the 'how to upload' pdf tutorial
The web settings are as follows:Hostname (Server): | ftp.dialup.mit.edu |
Username: | [KERBEROS USERNAME] |
Connection type: | SFTP |
Password: | [KERBEROS PASSWORD] |
Default Dir: | /afs/athena.mit.edu/user/[1st character username]/[2nd character username]/[username]/www/ |
Public URL: | http://web.mit.edu/[username]/www |
My default directory would be...
/ afs / athena.mit.edu / user / c / m / cmalcolm / www
My website is stored at:
http://web.mit.edu/cmalcolm/www
Below is the basic structure of an HTML page, HTML uses a nested tags syntax. a Tag is represented by open tags: <[tag type]> and closed tags: </[tag type]>. Sometimes tags do not have closed tags such as images.
Within a tag you may have attributes to define additional information. An attribute looks like [attribute]='value' and is within the open tag. See below for examples.
<!DOCTYPE html> <html> <head> <title>Title of Document goes here</title> </head> <body> Visible text goes here! </body> </html>
To explain above. Typically. to create an html page, You have a doctype tag to tell the browser what type a file it is. Then you have an html tag that surrounds two main components: The head and the body tag. The head tag stores information that is not directly visible to the end user, but instead has reference data (CSS and javascript files) and meta data such as the title of the page. This appears as your tab/window name. In the body, this is where all html goes and is directly visible to user. You can write plain text or html (links, images, etc) here.
If you copy the above code and paste it into a text editor and save as a .html file type..you will be able to then open it into a browser and see the following...
Woohoo.
Paragraphs.
They can be created with the 'p' tag!
Tableheader | Tableheader |
---|---|
Sometext | Sometext |
Title of Document goes here Visible text goes here! Here is some contentBut here is some content that is special and has been styled differently.Ok no more special treatment, I'm not styled...becuase i don't have a class! Im just in the container.Hey look at me Im also in a special box!! There can be multiple elements with the same class. And hey don't forget we also have different default links . Hover over this link!");?>By default this would show like this.
But by adding css, which we will go over in the next section, you can completely change how it looks. Below is the result of adding some CSS to the top of the page, but no extra html was added to the body. This seperates the styles from the content.
CSS Basic Structure
With CSS, you specify styles( colors, borders, widths, paddings, etc) by referencing elements in usually 1 of 3 ways.
- IDs: One is giving your html object an id attribute. Then with css, you can style that object, using the
#[name of id] identifier.- Classes: Second way is to give your object a class attribute . Then with css, you can style that object, with the .[name of class] identifier. The difference between id's and classes is that Id's are meant for one object and it should be unique. Classes can be shared between multiple objects (like maybe you have a sequence of images with the same class). A single element could also have multiple classes
- Plain Elements: You can also override normal elements like the anchor tag or body tag. Here you would just specify the name of the tag, like a for links shown below.
Below you can see some typical css
Using CSS
To use css, you can do so in usually 1 of two typical ways.
1. In document: One way is to place css between a Style tag like below
Title of Document goes here Visible text goes here! Here is some contentBut here is some content that is special and has been styled differently.Ok no more special treatment, I'm not styled...becuase i don't have a class! Im just in the container.Hey look at me Im also in a special box!! There can be multiple elements with the same class. And hey don't forget we also have different default links . Hover over this link!");?>2. Reference File: You can save the raw css in a seperate file ..maybe name it style.css or something and then reference it like a link. This also would be put in the head tag as show below. This would normally be used for css that is shared across multiple pages.
Title of Document goes here Visible text goes here! Here is some contentBut here is some content that is special and has been styled differently.Ok no more special treatment, I'm not styled...becuase i don't have a class! Im just in the container.Hey look at me Im also in a special box!! There can be multiple elements with the same class. And hey don't forget we also have different default links . Hover over this link!");?>