Class 2 handout (1) adding a css stylesheet

942 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
942
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
31
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Class 2 handout (1) adding a css stylesheet

  1. 1. Intro to HTML/CSS Class 2 Handout: Adding a CSS Page● Now that we have our HTML page, we need to add a CSS page. ○ Click File->New from Template->CSS->Blank File● Click File->Save As and save the file in a Project 1
  2. 2. ● Choose the project that you just created, and save the file as “style.css” and click Ok.● You should now have two files open in Aptana: index.html and style.css.● In the <head> of index.html, add a link element ○ <link rel="stylesheet" href="style.css"> 2
  3. 3. ● We are going to add a body element selector to our style.css page, and change the background color.● Now we can make sure that both index.html and style.css are saved, and we can click the “Preview” icon to make sure our CSS and HTML page are linked correctly. 3

×