by
<p>At <a href="http://www.sc.edu">Carolina</a> we learn about...</p>we call the whole thing an element
href
can be either absolute,
http://sc.edu
or relative, ../../index.html
. <a title="next page"
href="next.html">.
<a name="sec2"/>
with <a href="#sec2">...
. p
is for paragraph.h1 h2 h3 h4
are for headings.cite
is for inline citations. blockquote
is for quoting others. code
displays text in fixed width font. pre
uses fixed width and also preserves
newlines. sub
and sup
are for subscripts and
superscripts. center
centers text. <table align="center" border="1"> <thead> <tr> <th>Date</th> <th>Topic</th> <th>Other Readings</th> <th>Homework</th> </tr> </thead> <tbody> <tr> <td nowrap="nowrap">Jan. 13</td> <td>Class Overview</td> <td>Chapter 1</td> <td> </td> </tr> <tr> <td nowrap="nowrap">Jan. 15</td> <td><a href="../talks/internet/index.xml">Internet Basics</a></td> <td> </td> <td> </td> </tr> <tr> <td nowrap="nowrap">Jan. 20</td> <td><a href="../talks/xhtml/index.xml">XHTML</a></td> <td> <li><a href="http://www.w3.org/TR/xhtml1/">XHTML 1.0 The Extensible HyperText Markup Language</a></li> </td> <td> </td> </tr> </tbody> </table>
Date | Topic | Other Readings | Homework |
---|---|---|---|
Jan. 13 | Class Overview | Chapter 1 | |
Jan. 15 | Internet Basics | ||
Jan. 20 | XHTML |
|
div
and span
group together elements..div
defines a block while
span
is inline.class
or id
attributes to assign a CSS style.div
s to organize your Layout<html> <head>...</head> <body> <div id="header">...</div> <div id="menu">...</div> <div id="content">...</div> <div id="footer"></div> </body> </html>
title
attribute is the popup text. name
groups many elements under a name. id
gives a unique id to the
element. http://www.sc.edu/index.html#overview
.<a href="http://www.sc.edu" title="University of South Carolina" id="usclink" name="link">USC</a>
<img src="http://sc.edu/image.png"/>
width
and height
attributes (but, use CSS instead):
<img width="200" src="http://farm4.static.flickr.com/img.jpg"/>
<form action="http://www.google.com/search" method="get"> <p> Query: <input type="text" name="q" id="query"/><br/> <input type="radio" name="lr" value="lang_en"/>English<br/> <input type="radio" name="lr" value="lang_es"/>Spanish<br/> <input type="radio" name="lr" value="lang_ja"/>Japanese<br/> <input type="submit" value="Send"/> <input type="reset"/> </p> </form>
iframe
can insert another webpage within this one:
<iframe width="400" height="400" src="http://yahoo.com"/>
<!DOCTYPE html> <html> <head>...</head> <body> <div id="header">...</div> <div id="menu">...</div> <div id="content"> <h1>Main Heading</h2> <p>Some text in a paragraph. With a <strong>strong</strong> and an <em>emphasized</em> word.</p> <h2>A sub Heading</h2> <ul> <li>First item in a list</li> <li>Second item</li> </ul> </div> <div id="footer"></div> </body> </html>