Class Notes (839,092)
Canada (511,185)
CMPT 165 (21)


5 Pages

Computing Science
Course Code
CMPT 165
Colin Stewart

This preview shows pages 1 and half of page 2. Sign up to view the full 5 pages of the document.
CSS Stylesheets are used to specify the appearance style of a web page They can specify what each h1 h2 p etc looks like They are saved with a css file extension and they can be applied to any HTML file To specify a style for all h2 tags you write something like this h2color 00A651And similarly for all p tags pbackgroundcolor 8C6239Also note how the stylesheet is connected to the HTML file link relstylesheet typetextcss hrefchoccss The link tag must go in an HTML files headerthat is as contents of the head tag head link relstylesheet typetextcss hrefchoccss head The link tag has three required attributes rel relationship specifies the relationship of the linked file to the HTML page stylesheet in this case typethe MIME type always textcss for stylesheets hrefthe file name for the stylesheet The order of the attributes within the link tag doesnt matterCSS Properties There are dozens of CSS properties such ascolor font colour backgroundcolor fontfamily fontsize etc fontstyle Possible values normal default or italic italic has the same effect as the i tag Eg fontstyle italic fontweight Possible values normal default or bold bold has the same effect as the b tag Eg fontweight bold textdecoration Possible values none default underline overline linethrough underline has the same effect as the u tag
More Less
Unlock Document

Only pages 1 and half of page 2 are available for preview. Some parts have been intentionally blurred.

Unlock Document
You're Reading a Preview

Unlock to view full version

Unlock Document

Log In


Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.