Lecture Notes for CS142
Winter Quarter 2009
John Ousterhout
This article is a review of the book Dietary Preferences of Penguins, by Alice Jones and Bill Smith. Jones and Smith's controversial work makes three hard-to-swallow claims about penguins:
...
Introduction This article is a review of the book Dietary Preferences of Penguins, by Alice Jones and Bill Smith. Jones and Smith's controversial work makes two hard-to-swallow claims about penguins: First, that penguins actually prefer tropical foods such as bananas and pineapple to their traditional diet of fish Second, that tropical foods give penguins an odor that makes them unattractive to their traditional predators ...
<h1>Introduction</h1> <p> This article is a review of the book <i>Dietary Preferences of Penguins</i>, by Alice Jones and Bill Smith. Jones and Smith's controversial work makes three hard-to-swallow claims about penguins: <ul> <li> First, that penguins actually prefer tropical foods such as bananas and pineapple to their traditional diet of fish </li> <li> Second, that tropical foods give penguins an odor that makes them unattractive to their traditional predators </li> </ul> ...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Hello World</title> </head> <body> <p>Hello world!</p> </body> </html>
<img src="face.jpg"> <input type="text" value="94301" name="zip"> <div class="header">
< | Displays < |
> | Displays > |
& | Displays & |
" | Displays " |
| Nonbreaking space |
<select multiple>
<p><b>first</p><p>second</b> third</p>
<p> | New paragraph |
<br> | Force a line break within the same paragraph |
<h1>, <h2>, ... | Headings |
<b>, <i> | Boldface and italic |
<pre> | Typically used for code: indented with a fixed-width font, spaces are significant (e.g., newlines are preserved) |
<title> | Used in the <head> section to specify a title for the page, which will appear in the title bar for the browser window |
<img> | Images |
<table>, <tr>, <td> | Tables |
<ul>, <li> | Unordered list (with bullets) |
<ol>, <li> | Ordered list (numbered) |
<dl>, <dt>, <dd> | Definition list |
<a href="..."> | Hyperlink to another Web page |
<div> | Used for grouping related elements, where the group occupies entire lines (there's a forced line break before and after the <div>) |
<span> | Used for grouping related elements, where the group is within a single line (no forced line breaks) |
<frame>, <iframe> | Rectangular region with its own separate URL; allows you to create pages that combine content from several different sources (mashups) |
<form>, <input>, <textarea>, <select>, ... | Used to create forms where users can input data |
<script> | Used to add Javascript to a page for dynamic behaviors |
<link> | used in the <head> section to include CSS stylesheets |