HTML coding; Representing various code pages with special emphasis on Unicode; Formatting; Tables; Links; Multimedia content, and other bells and whistles, using ready-made software to design Web pages.
HW # 2 (due end of Week 2): Create a Web page in your personal space which contains non-English characters, tables, images (e.g., your mug shot), sounds (e.g., you cursing in an exotic language), and links. E-mail the link to your page to me
Other similar resources: www.quia.com, www.hotpotatoes.net
<book> - book starts <html> - html document starts
Text Content
</book> - book ends </html> - html document ends
<book>
<chapter1>
Text
</chapter1>
[...]
</book>
<html>
<head>
- for computers and computer nerds
</head>
<body>
- for humans
</body>
</html>
<TITLE>Title of the page in the upper left-hand corner</TITLE>
<H1>Heading</H1>
<BR> - new line (you do not have to close it)
<P> - new paragraph(not necessary to close)
<HR> - horizontal line (not necessary to close)
<META http-equiv="Content-Type" content="text/html; charset=windows-1251"> - sets character encoding (in this case Windows Cyrillic, ohter charsets are described at: www.iana.org/assignments/character-sets) <META NAME="language" content="ru"> - language defined as Russian <META http-equiv="Keywords" content="drills, language, Russian, genitive"> - keywords so that search engines can find your page (the example is for the Russian genitive drill) <META NAME="Author" content="Ivan the Terrible"> - your vanity pleased
See Dave Raggetts 10' guide to HTML at: www.w3c.org/MarkUp/Guide
Emphasizing <b>bold</b>, <i>italics</i>, <u>underlined</u> Adding a picture and determinig its size: <img src="yourpicture.jpg" width="200" height="150"> Adding a sound file <a href="sound.mp3">Click here to hear sounds of silence</a>Adding a link to another page
Click here to go to my home page
<a href="http://www.public.asu.edu/~dsipka">Click here to go to my home page</a>
Creating a bulleted list: <ul> <li>the first list item</li> <li>the second list item</li> <li>the third list item</li> </ul> Making the background blue: Change <body> into <body color="blue"> Changing the color of your text to yellow: <font color="yellow">
Tables:
| first row, first cell | first row, second cell |
| second row, first cell | second row, second cell |
<table> - open table; <tr> - open row; <td> - open cell <table border=1> <tr><td bgcolor=lightskyblue>first row, first cell</td><td>first row, second cell</td></tr> <tr><td>second row, first cell</td><td>second row, second cell</td></tr> </table>
Adding sounds:
A link to sound
Embedded sound
This is a picture surounded by text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text, and more text
<img src="cli.gif" align=left>
Forms:
<form action="mailto:Danko.Sipka@asu.edu" method="send" enctype="text/plain"> Field: <input name=coolfield size=65><p> Box: <textarea name=cooltext rows=5 cols=65></textarea><p> <input type=submit value="Send"> </form>
Flashy pages:
<a href="vitae.htm" onMouseOver='rollover1.src="picture2.gif"' onMouseOut='rollover1.src="picture1.gif"'> <img src="picture1.gif" name="rollover1" border="0"></a>
Cascading style sheets
One example. If you wish you links to not to be underlined but rather with a changed background (as on this page), you have two choices:
Either you put the following in the head section:
<STYLE TYPE="text/css">
<!--
A {text-decoration:none}
A:hover {background:blue; color:white}
//-->
</STYLE>
or, if you want to use the same style in several files, you create a file called, e.g., mystyle.css, which contains the following two lines:
A {text-decoration:none}
A:hover {background:blue; color:white}
and you put the following in the head section of your Web page
<LINK rel="stylesheet" href="mystyle.css" type="text/css">
You can get more bells and whistles using Macromedia Flash. Take a look at two examples here. Flash Tutorial is here.