Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Wei Zhang
Logistics
Logistics
Logistics
Logistics
Agenda
HTML Basics
Set up the development environment for this course HTML conventions HTML page structures Most used elements Your first page(s) Assignment
Internet
Interconnected network of computer networks ARPAnet
Advanced Research Project Agency 1969 four computers connected
NSFnet
National Science Foundation
Use of the Internet was originally limited to government, research and academic use 1991 Commercial ban lifted
The graphical user interface (GUI) to information stored on some of the computers connected to the Internet.
the client software program's user interface would be consistent across all types of computer platforms so that users could access information from many types of computers
http://www.hitmill.com/internet/web_history.html
Client Program
Response Message
Server Program
12
Web Client
Connected to the Internet when needed Usually runs web browser (client) software such as Internet Explorer or Firefox
But not all, many apps on your cell phone are web clients too
Uses HTTP (Hypertext Transfer Protocol) Requests web pages from server Receives web pages and files from server Interprets web pages and display them
Markup Languages
<html> <head> <title>Hello World</title> </head> <body> <h1>Hello World!</h1> </body> </html>
CSS
<html> <head> <title>Hello World</title> </head> <body> <h1>Hello World!</h1> </body> </html>
Different Browsers
Different Browsers
www.html5test.com
HTML5 Basics
Set up the development environment for this course HTML conventions HTML page structures Most used elements Your first page(s) Assignment
Development Environment
Adobe Dreamweaver
Aptana + Firefox
Both open source, legally free See Appendix A for information on installing and using Aptana and source codes from textbook
Use the FileOpen command with Internet Explorer or the FileFile Open command with Firefox. Use the features of your text editor or IDE.
Use the ViewSource or ViewPage Source command. Right-click on the page and select the Source, View Source, or View Page Source command.
HTML Elements
/>)
is not
<!DOCTYPE html> <!-This document displays the home page for the web site. --> <html> <head> <title>San Joaquin Valley Town Hall</title> </head> <body> <h1>San Joaquin Valley Town Hall</h1> <h2>Bringing cutting-edge speakers to the valley</h2> <!-- This comments out all of the unordered list <ul> <li>October 19, 2011: Jeffrey Toobin</li> <li>November 16, 2011: Andrew Ross Sorkin</li> ... </ul> The code after the end of this comment is active --> <p>Contact us by phone at (559) 444-2180 for ticket information </body> </html>
Use whitespace to indent lines of code and make them easier to read.
DOCTYPE declaration
head element
body element
<p> tag
Paragraph element <p> paragraph goes here </p>
Groups sentences and sections of text together. Configures a blank line above and below the paragraph
<h1>San Joaquin Valley Town Hall Programs</h1> <h2>Pre-lecture coffee at the Saroyan</h2> <p>Join us for a complimentary coffee hour, 9:15 to 10:15 a.m. on the day of each lecture. The speakers usually attend this very special event.</p> <h2>Post-lecture luncheon at the Saroyan</h2> <p>Extend the excitement of Town Hall by purchasing tickets to the luncheons</p>
<br> tag
monospaced font <p>Ernest Hemingway wrote:</p> <blockquote>Cowardice, as distinguished from panic, is almost always simply a lack of ability to suspend the functioning of the imagination. Quotations </blockquote>
<p>How to contact Mike Murach & Associates:</p> <address>1-800-221-5528<br> <a href="emailto:murachbooks@murach.com"> murachbooks@murach.com</a> </address> Contact information
<pre> </pre>
<blockquote> </blockquote>
<address> </address>
Inline Elements
Inline elements dont begin a For identifying new line content Use formatting elements abbr when no special meaning is cite implied code Use content elements when dfn used to convey meanings; em could be formatted with CSS kbd
b : bold
sub : subscript sup: superscript br
<p>If you don't get 78% or more on your final, <em>you won't pass.</em></p> <p>Save a bundle at our <strong>big yearend sale</strong>.</p> <p>When the dialog box is displayed, enter <kbd>brock21</kbd>.</p> <p>The chemical symbol for water is H<sub>2</sub>O.</p> <p><q>To sleep, perchance to dream-ay, there's the rub.</q></p>
Special characters
Entity & < > © ® ™ ¢ ° ± ‘ ’ “ ” Character & < > (opening single quote). (closing single quote or apostrophe). (opening double quote). (closing double quote).
<a> tag
href Attribute
Indicates the file name or URL, Web page document, photo, pdf, etc.
Automatically launch the default mail program configured for the browser
<a href=mailto:me@hotmail.com>me@hotmail.com</a>
40
Ordered List
Conveys information in an ordered fashion <ol>: Contains the ordered list
Unordered List
Displays information with bullet points <ul>: Contains the unordered list
type attribute determines the type of bullet point default type is disc (but depends on the browser used)
Semantic Elements
header section article nav aside footer hgroup time figure figcaption
<body> User <header> instead <div id="header"> <h1>San Joaquin Valley Town Hall</h1> </div> <div id="main"> <p><span id="welcome">Welcome to San Joaquin Valley Town Hall.</span> We have some fascinating speakers for you this season!</p> </div> <div id="footer"> <p>© Copyright 2012 San Joaquin Valley Town Hall.</p> </div> </body>
Current version of IE
Lab Assignment 1
Lab Assignment 1
Download and install Aptana Download, extract, and save All Book Files
http://www.murach.com/downloads/htm5.htm
Files used for Lab Assignment 1 are under folder exercises >> town_hall_1 File structure:
Make sure to send the whole folder , not just the index.html, to a zipped file
After Submission