Skip to content

Instantly share code, notes, and snippets.

@robyoung
robyoung / gist:1427786
Created December 3, 2011 18:37
First Web Page
<html>
<h1>Blackheath</h1>
<p>Blackheath is a district of London situated in the Boroughs of Lewisham and Greenwich.</p>
<p>
I don't know much about Blackheath so I've found some creative commons photos on Flickr. Apparently It has a heath with a pond which
sometimes freezes over, as we can see from the photo below.
</p>
<img src="http://farm5.staticflickr.com/4071/4268441849_277faacc1f.jpg">
<p>Blackheath also has a kite festival ocne a year. In 2009 there was a pedal sofa.</p>
<img src="http://farm4.staticflickr.com/3413/3622050203_1635d72578.jpg">
selector [, selector2] {
property: value;
[property2: value2;
...]
}
/* taken from Wikipedia */
@robyoung
robyoung / gist:1428232
Created December 3, 2011 21:39
css-rule-1
* {
font-family: Helvetica, sans-serif;
}
@robyoung
robyoung / gist:1428256
Created December 3, 2011 21:50
css-rule-2
div, p {
padding: 5px;
margin: 5px;
}
@robyoung
robyoung / gist:1428297
Created December 3, 2011 22:06
css-rule-3
div {
border: 3px solid #c00;
}
p {
border: 3px solid #0c0;
}
@robyoung
robyoung / gist:1428339
Created December 3, 2011 22:26
css-rule-4
.bar {
background-color: #9f9;
}
@robyoung
robyoung / gist:1428419
Created December 3, 2011 22:56
Web Page Week Two
<html>
<head>
<style>
body {
background-color: #ada;
font-family: Helvetica, sans-serif;
}
#content {
width: 800px;
@robyoung
robyoung / gist:1428445
Created December 3, 2011 23:09
css-rule-5
#foo {
background-color: #f99;
}
@robyoung
robyoung / gist:1428499
Created December 3, 2011 23:33
number-guessing-game-template
<!DOCTYPE html>
<html>
<body>
<h1>Amazing Number Guessing Game</h1>
<div id="result"></div>
<button id="reset">reset</button>
<input type="text" name="value" id="value">
<button id="ask">ask</button>
// alert("A commented out alert");
// this is a commend