PencilCoder

Web Pages 101!

Goals:

  • Build fixed-content web pages using HTML and CSS

Coding Snippets:

  • coding snippets
  • HTML and CSS are languages used to code the content/structure and appearance of a web page, respectively.
  • HTML consists of elements of various types (e.g., html, head, body, li). Some elements may be nested in other elements.
  • CSS specifies how a page should be presented on screen, i.e., rendered. CSS consists of formatting rules for HTML elements. In this example, the rules set color choices for all li and h1 elements.

Math and Computer Concepts:

  • HTML elements are programmed using tags, which typically consist of a start tag and an end tag. For example, <html> </html> denotes the html element, which contains the entire document.
  • Different elements serve different purposes. head stores information about the page, such as CSS formatting rules. body contains the visible content of the document, which may consist of headings (h1), paragraphs (p), list items (li), and more.
  • A CSS rule consists of a selector (which identifies the element or elements) and a declaration block (which specifies formatting rules).

Activities:

Save each of the following in a folder called WebPages.