CSS Questions and Answers Latest
CSS Cascading Style Sheets control the appearance and placement of HTML elements on a page. selector The part of a CSS rule which specifies which element(s) are to be styled. declaration Property name and value separated by a colon and terminated with a semicolon, for example... Font-family: sans serif; property The part of a CSS rule which specifies WHICH TYPE of modification to apply to HTML elements. value The part of the CSS rule which specifies HOW the property/attribute will be modified ID Selector A selector that identifies only ONE element within an HTML document. Preceded by a # sign. Class Selector A selector that applies the same attribute to MULTIPLE HTML elements that reference it. Preceded by a . (period). Syntax Arrangement of words and symbols in a language. Inline CSS Style CSS coded IN THE BODY of the HTML code as a STYLE ATTRIBUTE h1 style="color:black;" in an HTML tag. Limited to styling one element at a time. Internal CSS Style CSS coded in the HEAD of the HTML code inside of style/style tags. Limited to that one HTML page. (also known as embedded)External Style Sheet CSS coded in a SEPARATE CSS FILE that controls the formatting of elements on any web page that links to the .css file. Rule A complete CSS style statement: selector, property, and value. Properties REQUIRED to make a border Style is required (width and color are optional) Property used to change the color of text Color Property used to fill a div or change the color behind your content Background-color Property used to make your text italic font-style Property used to make your text have Small Caps font-variant Property used to make your text bold font-weight Property used to make your text bigger/smaller font-size Property used to select the style/type of your font font-family Serif Font-family with decorative edges Sans-Serif Font-family without decorative edges Margin The space around an element, separating it from other elements Padding The space inside of an element, separating its contents from its outer edge
Información del documento
- Subido en
- 8 de mayo de 2024
- Número de páginas
- 4
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas