What is CSS?
CSS is a language that controls the way content on a web site appears. It uses rule-sets to change the look of a page. Each rule set has a selector, which specifies which elements on the page will be affected, and the rules, which explain how to display the elements. Each rule consists of a property and a value for that property.
- To add CSS style rules to an HTML page, you need to create a style sheet document.
- This is the style sheet.
- Link to your style sheet. The link goes inside the head tag of your HTML file and looks like this:
<link rel="stylesheet" href="style.css">
Image Source and Alternate Text
In order to tell the browser which file to use, extra information, called an attribute, is added to the image tag inside the brackets. The attribute src stands for source and tells the name of the image, and the attribute alt describes the image.
Digital Citizenship
Giving Credit
When you find an image or other media file you like, make sure that you not only get a copy of the file, but that you also keep track of the information you'll need to give credit to its creator. For every file you want to use, follow these steps:
- Download a copy to your computer (so that you can upload it to your website in the next step)
- Write down all information you can find about the author, such as
- Name, or screen name
- URL of the website (not URL of the image itself)
- Title of image