ATEC 3361 Lecture Notes - Lecture 5: Serif, Times New Roman, Cascading Style Sheets

37 views9 pages

Document Summary

Css describes how html elements are to be displayed on screen, paper, or in other media. It can control the layout of multiple web pages all at once. These websites use the same html structure, but different css code for styling. Css selectors are used to find (or select) html elements based on the following: The element selector selects elements based on the element name. You can select all elements on a page like this: p { text-align: center; color: red; In the above example, all elements will be center-aligned, with a red text color. The id selector uses the id attribute of an html element to select a specific element. The id of an element must be unique within a page, so the id selector is used to select one unique element! A page (cid:272)a(cid:374)"t ha(cid:448)e t(cid:449)o o(cid:396) (cid:373)o(cid:396)e ide(cid:374)ti(cid:272)al id"s. I(cid:374) othe(cid:396) (cid:449)o(cid:396)ds, (cid:455)ou (cid:272)a(cid:374)"t assig(cid:374) the sa(cid:373)e id to more than one element.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents