Site hosted by Angelfire.com: Build your free website today!

Skip's Linux Home Page
Brought to you by Skip

Random thoughts, musings and information

This page is dedicated to storing information for me that I might want to access at a later date.

Python

Html encoding/decoding

import urllib2
urllib2.quote("Some string")
urllib2.unquote("Some%20string")
        

HTML/CSS

CSS Class vs. ID
Tutorial: ID vs Class

Use IDs when there is only one occurence per page. Use classes when there are one or more occurences per page.
* ID = A person's Identification (ID) is unique to one person.
* Class = There are many people in a class.
CSS Code:

p#exampleID1 { background-color: white; } 
p#exampleID2 { text-transform: uppercase; } 

HTML Code:

<p id="ExampleID1">This paragraph has an ID name of
 "exampleID1" and has a white CSS defined background</p>

<p id="ExampleID2">This paragraph has an ID name of
 "exampleID2" and has had its text transformed to uppercase letters. </p>
        

HTML in VIM

Ideas to make HTML editing easier using VIM.