CCT260H5 Lecture Notes - Lecture 6: Bubble Wrap, Web Server, Semicolon
Document Summary
Exam: wed, april 11 at 9am to 12pm - ib120. Give the same class to multiple elements. Not all instances of the same element. You do not need to add a class to every paragraph to apply the colour red to all paragraph. Just apply it at an element level (ex. If you only want it to be certain elements. Multiple properties within one set of brackets, i. e. selector { If you must have a space, use a hyphen. You can apply multiple classes to the same element. You may not have spaces in id names or class names. Using tabs and other whitespace make your code more readable. Style tells you what something is - contain things in something that tells what text is. You have not put a class, therefore the rules do not apply. The rules only apply to the paragraphs in which the class has been declared. Code is read from top to bottom (ex.