Download presentation
Presentation is loading. Please wait.
Published byAngela Skinner Modified over 8 years ago
1
BSS 301 Part 2
2
Personal Pages Companies, Organizations – (schools, universities, research centers, etc) News Networks Journals Events (conferences, international games, etc) Internet/Intranet Why Design Web pages & for Who?
3
HTML is a structured language – rules of nesting All WWW documents are written in HTML WWW – World Wide Web – Most popular Internet information service What is HTML?
4
What is Internet? – Worlds largest network – Collection of interconnected networks built on the Internet protocol TCP/IP – Growing at an amazing rate – Open system with decentralized management Estimated: 28.8 million people over 16 in the US have access, 16.4 million use the Internet and 11.5 million use the Web. What is Internet?
5
Client/Server Architecture Designed to make it easy for people to share information – Hides complexities of location of documents – Easy to distribute information – Fun to look at World Wide Web
6
Hyperlinks – Highlighted words or pictures – Item pointed to may be another document image, movie, sound clip etc World Wide Web
7
Example Visit NYSE city tours NY CITY TOURS NYSE sounds view sights sound audio Movie
8
Interpret HTTP as well as other protocols – ftp, mailto, telnet, gopher, etc. Display physical formatted HTML text – in-line images – hyperlinks WWW Browsers
9
Helper Applications – Programs on the user’s computer that can be used to display images, movies, sound, etc. that cannot be displayed on the browser itself Sound files Movies (MPEG) Mail Other file formats WWW browsers (contd..)
10
Everyone is a publisher – The architecture of the Internet allows almost anyone to become an information provider for a world wide audience WWW documents must be in HTML – To create your own home page you need to know some HTML Why learn HTML?
11
Not a must – Can use tools to create HTML – Conversion tools can be used to convert existing HTML documents Example: LaTeX2HTML Word documents can be saved in HTML FrameMaker documents too It is very easy to learn Why learn HTML? (contd..)
12
Requirements – Text or HTML Editor to enter TAGS – Graphics editors – Browser (Netscape, Internet Explorer, Lynx, etc.) Focus – Usable and Eye-catching documents – Images in Web pages – Animation Creating an HTML Page
13
HTML documents contain 3 things – Text +TAGS – External Multimedia such as graphics, sound, movies, etc. Example – Your Text Here – Types, used in pairs, or not in pairs – Tags can be nested HTML Basics
14
Mark text as – headings, paragraphs – formatting (physical, logical) – list – quotations, etc. Also for – creating hyperlinks – including images, making tables – fill-in forms, frames What are Tags?
15
KFUPM – display KFUPM as a level 1 heading, can go down from H1 to H6 A paragraph comes here Anchor for line breaks for horizontal line How do they look?
16
Basic Structure – – KFUPM – ….. ….. …… – HTML Document Structure
17
HTML= head + body – Body elements contain all the text and other material to be displayed Line breaks and indentation exist only for human readability Comment – for pre-formatted text HTML Document Structure
18
Physical Styles – bold – …. – Makes text subscripts – emphasized text – text in italics – changes font size – n=1,…,7 Character formatting Markup
19
... … ◦ UL specifies unordered list ◦ LI specifies list item OL specifies ordered list specified a definition list … ….. ◦ provides a definition list ◦ DT begins each item title ◦ DD begins each item definition unformatted text List Markup
20
Specify logical organization of document – not designed to be an editor like Word, FrameMaker etc.. Documents with sections of text marked as logical units – Titles – Paragraphs – Lists Design Goal
21
HTML elements – start tag and end tag …. Empty elements – Attributes for elements – tag names and attributes are case insensitive filename is case sensitive More on Tags
22
To create hot spots (or Anchors) you need two things – URLs (Uniform Resource Locator) – Links Anchors and Links allow readers to jump from place to place in the document URL is a fancy way of saying address or location for information on the Internet You need to jump to secure sites to do transactions for e-commerce Spinning your HTML Web
23
Example: http://www.ccse.kfupm.edu.sa/~sadiq/tut.html protocol indicator,hostname,directory/filename Types: – Absolute URLs (also called complete URLs) – Relative URLs (are incomplete URLs) Other Protocols (mailto, ftp, etc) ftp://ftp/pub/images/backgrounds/glosbgr.gif mailto:sadiq@ccse.kfupm.edu.sa URL Anatomy & Types
24
http://www.ccse.kfupm.edu.sa/~sadiq/tut.html <A HREF=“ mailto:sadiq@ccse.kfupm.edu.sa”> sadiq@ccse.kfupm.edu.sa Examples
25
Components required – The Tag: anchor_name – HREF: Indicates where to jump – NAME: Identifies an internal label HREF: Lets users jump to either material on the same Web site or to other material on the Internet NAME: Lets users jump to material within the same document Building Anchors
26
anchor_name – something = #name name=funny (for example) – something = filename.html[#name] tutorial.html – something = a Web site, for example http://www/uqu.edu.sa/~youssef/tutorial.html ftp://www/ksu.edu.sa/~ahmed/jokes.html Funny Named Anchor & Basic Links
27
Including Aligning Using them as links Making images load more quickly Using thumbnail images Using Images in Web Pages
28
Must include them as GIF or JPG graphics Use graphic editors, scanners, or, borrow Must use an Image Tag ALT="... " specifies text to be displayed if image not available BORDER=# of pixels, controls the thickness of the border Pictures can be aligned Left, Right, etc. Adding Images
29
Biography Dr. Sadiq M. Saits Biography <IMG SRC="sadiq.gif" ALT="Picture of Sadiq Sait " ALIGN=RIGHT HSPACE=20 HEIGHT=100 WIDTH=50> Picture of Sadiq M. Sait for his biography... Example of Image inclusion
30
Loading of images is made faster by telling the browser the size of the image Size is specified in pixels You can link by using images – Can have pictures with no borders You can use thumbnail images to link to larger images Making clickable images (image maps) Some notes on Images
31
<IMG SRC="sadiq.gif" ALT="Picture of Sadiq Sait" ALIGN=RIGHT HSPACE=20 HEIGHT=100 WIDTH=50 BORDER=0> Sadiq M. Sait was born in...... Pictures as Links
32
<IMG SRC="sadiqthumbnail.gif" ALT="Picture of Sadiq Sait"> Thumbnail of Sait’s picture…. Using Thumbnails
33
Enable readers to click on parts of images (e.g., click on a state or country in a map) HTML tag used in Define clickable areas Examples – Map a rectangle, circle or polygons Clickable Images
34
Choosing Colors – Background – Links (link, alink, vlink) – Text Colors can be chosen for tables, background etc. RGB concept (#FFFFFF=white) Choosing background (using images,.gif files) Other Attributes
35
CENTER, BLINK, HR, APPLET – SELECT, OPTION, TEXTAREA – TR, TH, TD, CAPTION FRAME – FRAMESET And many more…. Some More Tags
36
Tables, Forms, Frames, Simple animation Inclusion of Java Applets JavaScript CGI programs Beyond Simple HTML
37
What are they used for – Surveys – Collect addresses of visitors to your Homepage – Allow people to register for something Features – Submitted by mail – Security (Passwords) – Checkboxes and Radio buttons – Area for Text and Comments Require a CGI program on server to process data coming from the form submission 37 Forms on Web
38
… enclose form... ACTION=“…” identifies what should happen when the form is submitted identifies some type of input field CHECKED shows which item is selected by default (check box/radio button) TYPE indicates the type of field (text, password, radio, submit, reset, etc) VALUE indicates the value of the button HTML TAGS/Attributes
39
SRC: URL of documents to be displayed NAME: so this frame can be targeted by links in other documents Physical dimensions: Height, width etc. Other features: Scrolling, Resizing, etc. They are a complete HTML document or a page Frames
40
Compile the Java code (e.g., use javac) – example: javac Blinker Creates file with extension.class, – example Blinker.class Use the tags … Specify parameters such as speed, color (for background and text, etc.) Java Applet inclusion
41
Java Applet Inclusion (contd)
42
Java Applet Inclusion (contd..)
43
cgi-bin (JavaScript, Java, Helper Programs, Plug-ins) Executable: Example – people visited this page. Helper programs – to send mail – run audio/video applications – etc CGI (Common Gateway Interface)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.