XHTML Lesson 5 CSS

  1. What is CSS?
    • CSS stands for Cascading Style Sheet.
    • CSS allows web designers to set up pre-defined styles which can then be assigned to every page, or specific componants within that site.
  2. What types of CSS are there?
    • there are three styles of CSS:
    • Internal, external and inline.
  3. What order are styles applied?
    Browser, external CSS, internal CSS and inline.
  4. How are style rules formatted in the <head>?
    • <style type= text/css>
    • h1{font-size: 12; color: red}
    • </style>

    selector{property1: value; property2:value}
  5. What is a <div> tag and how is it used?
    • the <div> tag defines a division or section in a HTML document.
    • The <div> tag is often used to group block elements to format them with styles.
    • <div id="box">text in a box</div>
  6. .box {
    position: absolute;
    left: 100px;
    top: 150px;
    width:100%;
    height: 25%;
    border-style: dotted;
    border-color: blue;
    }
  7. The Box Model:
    • ---------
    • Margin
    • -----------
    • Border
    • -----------
    • Padding
    • -----------
    • Content
    • -----------
Author
mal808
ID
60252
Card Set
XHTML Lesson 5 CSS
Description
CSS notes from class
Updated