Anúncio
Anúncio

Mais conteúdo relacionado

Anúncio
Anúncio

(Fast) Introduction to HTML & CSS

  1. <h1></h1> , <h2> </h2> …… <h6> </h6>
  2. Paragraph: <p>Some text </p>
  3. Lists
  4. Ordered List <ol> <li>I’m a list item</li></ol>
  5. Unordered list <ul> <li>I’m a list item</li> </ul>
  6. Document Section <div></div> (Important for page layouts!)
  7. Image <img src=“../images/mypic.jpg” alt=“My Picture” title=“It’s me!” />
  8. Links <a href=“http://www.google.com”>Google</a>
  9. It allows document authors to specify the look of a web page (e.g. fonts, spacing, margins,etc.) separately from the structure of the web page (e.g. body, text, links, etc.)
  10. The Selector ~ tells the rule what elements it should apply to
  11. The Rule ~ does the formatting of the element
  12. Made up of a property:value pair
  13. p { color: #000000; }
  14. Doing this causes all the tags of that name (i.e.<p>) to be formatted according to the style rule declared.
  15. Possible to do this for multiple elements
  16. If the page you’re working with has 2 colours in its background, you need to put light text on the dark background, and dark text on the light background
  17. Classes are defined using a dot (.) and a given name, e.g.
  18. .lightText { color: #ffffff }
  19. To use the class in the document:
  20. If you need an element on a page presented in a particular way, you can use an Identifier (remember an element’s id attribute is unique to a page)
  21. Identifiers are defined using a hash (#) and a given name, e.g.
  22. #siteTitle{ font-family: ‘Times New Roman’, serif}
  23. To use the class in the document:
  24. customise & alter the look of multiple web pages
  25. ensure continuity of design throughout the website
  26. @davkell
  27. linkedin.com/in/davkell
  28. www.ambientage.com
  29. www.davidkelly.ie
  30. Slides & Footnotes
  31. www.ambientage.com/blog/091labs/
Anúncio