Web Page Introduction
What is a web page? A web page is a text file containing markup language tags. –A markup language combines text and extra information about the text's structure or presentation using markup, which is intermingled with the primary text. – Britain calls for direct talks with Iran
Types of Web pages Static page: –The contents of a web page is predefined by HTML tags. Example: david chao’s home page. Dynamic page –A web page includes contents produced by a programming language when the page is opened. –Examples: Pages that display current date/time, visitor counter –Yahoo home page Pages that display results based on a database query. –Yahoo’s Finance/Enter symbol/Historical prices
Technologies for Creating Dynamic Pages Client-side technology – JavaScript Server-side technology – Microsoft.Net – PHP – Java – Others
Hyper Text MarkUp Language, HTML History: – Standard – The World Wide Web Consortium (W3C) HTML 5:
HTML Tags (Elements) Heading section –,,,, etc. Body section –, – : large text – : smallest text – Reference tag: – : Paragraph tag – Image tag – Table:, : a new row in table, : a new cell in a table row. – Form:,,
Example David Chao HTML Demo Welcome to David Chao’s Home Page Click here to see a cake picture
Online Resources for Learning HTML w3schools.com – Example: –Learn HTML5
HTML 5 New INPUT types with build-in validation INPUT type="number" INPUT type="range” Other types: – , url, tel, etc Age: Satisfaction:
HTML5 Multimedia Video Audio Youtube Etc.
HTML5 Geolocation Latitude Logitude Static map
Google Maps Maps basic Maps overlays
XML, Extensible Markup Language User-defined tags: – John Smith –Ex: c:\inetpub\wwwroot\facoritebook.xml –Cascade Style Sheet, CSS Demo: –C:\Inetpub\wwwroot\favoritebookStyle.xml
XML with Stylesheet Example My Favorite Book John Smith Peter Chen $45.00 This is a grerat book My Second Favorite Book Adam Smith $25.00 This is a second great book
Style Sheet Example btitle{ display:block; font-family: Aerial, Helvetica; font-weight: bold; font-size: 20pt; color: #9370db; text-align: center; } ISBN{ display:block; font-family: Aerial, Helvetica; font-weight: bold; font-size: 12pt; color: #c71585; text-align: left; } Authors{ display:inline; font-family: Aerial, Helvetica; font-style: italic; font-size: 10pt; color: #9370db; text-align: left; } Price{ display:block; font-family: Aerial, Helvetica; font-size: 12pt; color: #ff1010; text-align: left; } Description { display:block; font-family: Aerial, Helvetica; font-size: 12pt; color: #ff1010; text-align: left; }
Web Page Editors DreamWeaver and many others –With support to develop dynamic page with script languages MS Word Open a new document Save As: Web Page Internet free editor: –Wix free website builder –
Creating Web Page with MS Word Text: –Alignment, Size, Font, Bold Link –Existing page, place in document, Table: links, photos, multiple columns List BookMark BackGround –Page layout/Page Color Picture mailto: Address
Creating Website Using WIX Create –Choose a template –View: Desktop view/Mobile view –Edit button: Desktop editor/Mobile editor –Save –Preview Back to Editor button My Account: –Saved websites
Edit button: Desktop editor/Mobile editor Page: rearrange the order, add page, page transition Design: background, colors Add: –text, image, gallery, media, etc. –Apps: Google map, form, HTML (website or HTML code) –Social Wix App market
Typical Web Site Contents About Us Company organization Mission Products/Services Partner organizations Clients Information for users Links to relevant sites Contact Us
Publishing Web Pages Web server –Default directory, default home page Creating web pages using editor Transfer web pages to web server: –FTP, File Transfer Program