150 likes | 250 Views
CS 195 Web Development I. HTML Basics. HTML Reference. Sizzling HTML Jalfrezi http://www.jalfrezi.com http://freespace.virgin.net/sizzling.jalfrezi/iniframe.htm. FYI: What is Jalfrezi?.
E N D
CS 195Web Development I HTML Basics
HTML Reference • Sizzling HTML Jalfrezi • http://www.jalfrezi.com • http://freespace.virgin.net/sizzling.jalfrezi/iniframe.htm
FYI: What is Jalfrezi? • "Jalfrezi" is a curry from India. The name comes from jhal frezi which means dry fry. The dish was traditionally made to use up the leftover scraps of meat in the Raj and chilies were added, especially in the hot South, to mask any 'odd' flavors. It is now a very popular dish (a particular favorite of the author of the Sizzling HTML Jalfrezi web site), served in just about all Indian restaurants in the UK.
What is HTML? • HyperText Markup Language • Web page formatting language • Consists of codes (called tags) that determines the layout of a web page. • Some determine the formatting and layout of text. • Some specify the inclusion and positioning of other objects found in other files (such as graphics).
Tag Syntax • Opening tag: <tagname parameters> • Ending tag: </tagname> • Parameter syntax parameterName=“value”
Two Notes: • HTML is NOT case sensitive. • HTML is NOT line sensitive.
Minimal HTML Framework <html> <head> -------stuff------- </head> <body> -------stuff------- </body> </html>
Two Primary <head> Tags <title>Page Title</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<body> Tag Parameters • Defines the page color scheme. bgcolor=“color-number-or-name” text =“color-number-or-name” link =“color-number-or-name” vlink =“color-number-or-name” alink =“color-number-or-name”
Specifying HTML Colors • Color Names • http://developer.netscape.com/docs/manuals/htmlguid/colortab.htm • Color Numbers • #rrggbb
The Normal Paragraph Tag • <p> … </p> • Parameter: • align=“left” (default) • align=“right” • align=“center” • Example: • <p align=“center”>Welcome!</p>
Heading Paragraph Tags • Six sizes … • Largest: <h1> … </h1> • Larger: <h2> … </h2> • Large: <h3> … </h3> • Small: <h4> … </h4> • Smaller: <h5> … </h5> • Smallest: <h6> … </h6>
Text Style Tags • Bold: <b> … </b> • Italic: <i> … </i> • Underline: <u> … </u> • Monospaced: <tt> … </tt>
Creating a Web Page • Create a folder for the web site. • Create HTML file with a text editor. • View it in browsers.