2024: Domino Containers - The Next Step. News from the Domino Container commu...
Class 2 handout (1) adding a css stylesheet
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. ● 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. ● 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