Monday, November 11, 2013

Week 11B Out of Class Work

For the structure of an HTML document, one must first indicate what type of document it is going to be, so the browser knows what’s going on. This is a practice that came with HTML5, write  <!DOCTYPE HTML>
Typical elements in HTML are:
<html>
<head>
<title>
</title>
</head>
<body>
<p>
</p>
</body>

</html>
There are also a series of elements that have become obsolete, like frame, plaintext, center, blink, space,... Now these elements or attributes are accomplished in CSS.

HTML handles whitespace in a particular way. One can put many lines in between the written information, and when it’s seen in the browser, it’s like no lines were there, so in order to show space one has to tag it as pre instead of p, which stands for Pre-Formatted Text.


These are guidelines for writing HTML:
  • Focus on writing clean, efficient code
  • Structure the HTML so that it ads meaning to the content
  • Don’t focus on styling when initially structuring code
  • Well-structure code is much easier to style

             Source: Lynda.com

CSS, Cascading Style Sheet, is a language created to control the appearance of pages of HTML. One could say they work together,  and it determines how items are going to be displayed. CSS contains formatting rules that will govern how elements are displayed.

No comments:

Post a Comment