CSE 102 Introduction to Web Design and Programming

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Web Development & Design Foundations with XHTML
Chapter 2 HTML Basics Key Concepts
XP 1 Developing a Basic Web Site Tutorial 2: Web Site Structures & Links.
Developing a Web Site: Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down A user can select a link.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
© 2004, Robert K. Moniot Chapter 6 CSS : Cascading Style Sheets.
HTML Introduction (cont.) 10/01/ Lecture 8, MAT 279, Fall 2009.
LIST- HYPERLINK- IMAGES
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Announcement #1 1 Lecture 9. Announcement #2  Midterm exam will be on Oct. 12 (Tuesday)  pm – 1.45 pm  Exam will cover all materials till Oct.
Lecture 13. A Very Brief Introduction to HTML and XHTML, part II Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Chapter 14 Introduction to HTML
Links in HTML. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another web page on the same.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
HTML (Hypertext Markup Language ). Hyperlinks Hyperlinks from text to other sites Write the link, which is visible at the screen Example: Hyperlink to.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
XHTML Louise Soe updated September 2009.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
Tutorial #4 Formatting Text and Links. Tutorial #3 Review - CSS CSS format Selector { property1: value1; /* Comments */ } Embedded, In-Line, and External.
Web Site Design & Management Class Two. Agenda Attendance Questionnaire Setup/task Homework Review Screenshots Lists/Nested Lists Home Page Links Images.
Instructor: Mike Panitz HTML, Continued.
CIS 250 Advanced Computer Applications Internet/WWW Review.
Adding Links Learning Web Design: Chapter 6. Lesson Overview Using the anchor tag Linking to other pages with relative or absolute pathnames Linking to.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
INTRODUCTORY Tutorial 6 Using Links on a Web Page.
XP 1 HTML Tutorial 2: Developing a Basic Web Site.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Introduction to HTML UWWD. Agenda What do you need? What do you need? What are HTML, CSS, and tags? What are HTML, CSS, and tags? html, head, and body.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
XP 1 Charles Edeki AIU Live Chat for Unit 2 ITC0381.
CIS 228 The Internet Day 4, 9/8/11 Getting on the Internet.
This is a test Webpage Wow, I’m writing my first webpage.
Introduction to HTML Dave Edsall IAGenWeb County Coordinator’s Conference June 30, 2007.
Hyperlinks Links for Other Pages. Hyperlink (aka Link) Text (or image) user can click Takes user to different location In general, location can be: On.
HTML Hyper Text Markup Language. What is HTML HTML stands for the Hyper Text Markup Language. HTML stands for the Hyper Text Markup Language. HTML is.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links.
Finally getting to html and CSS… Tim Berners-Lee, the writer of the software program that makes him the inventor of the WWW, defines the Internet as a.
The Internet Day 4, 9/8/11 Getting on the Internet
4.01 How Web Pages Work.
>> HTML: Tags – Hyperlink, Media, Lists
Chapter 8 Introduction to HTML and Applets
4.01 How Web Pages Work.
Objective % Select and utilize tools to design and develop websites.
LAB Work 01 MBA 61062: E-Commerce
Marking Up with XHTML Tags describe how a web page should look
Hyperlink Anchor tag and its attributes Four Types of URL
Ordered & Unordered Lists in HTML
HTML Lists CS 1150 Fall 2016.
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Chapter 4 - Introduction to XHTML: Part 1
Objective % Select and utilize tools to design and develop websites.
COMPUTING FUNDAMENTALS
CS7026: Authoring for Digital Media HTML Authoring
The Internet 10/25/11 XHTML Tables
Hyperlinks, Images and Tables
CNIT 131 HTML5 – Anchor/Link.
Hyperlink Anchor tag and its attributes Four Types of URL
HTML ELEMENTS Ms. Olifer.
Introduction to HTML- Basics
HTML Lists CS 1150 Spring 2017.
Basics of Web Design Chapter 2 HTML Basics Key Concepts
COMS 161 Introduction to Computing
Digging in a little deeper
4.01 How Web Pages Work.
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Presentation transcript:

CSE 102 Introduction to Web Design and Programming XHTML: Lists & Hyperlinks

w3schools references http://www.w3schools.com Tryit Editor: http://www.w3schools.com/html/tryit.asp?filename =tryhtml_basic

Lists Block-level elements: Unordered list (bulleted): <ul> Ordered list (numbered): <ol> Both <ul> & <ol> have list items, <li>, for each element in a list Definition list: <dl> Each term is specified by a definition term element, <dt> Each definition is specified by a definition description element, <dd> Lists are formed according to hierarchical nesting All list tags require opening & closing tags with proper nesting

How would you get the following list? <li>East</li> <li>Central</li> <li>West</li> </ul> East Central West

How would you get the following list? <li>Yankees</li> <li>Red Sox</li> <li>Orioles</li> </ol> Yankees Red Sox Orioles

How would you get the following list? <li>East <ol> <li>Yankees</li> <li>Red Sox</li> <li>Orioles</li> </ol></li> <li>Central</li> <li>West</li> </ul> East Yankees Red Sox Orioles Central West

How would you get the following list? <li>Monday <li>Read <li>pgs 50 -100</li> <li>pgs 170 – 200</li> </ul></li> <li>Review <li>pgs 600-650</li> <li>pgs 680-700</li> <li>Tuesday</li> </ul> Monday Read pgs 50 -100 pgs 170 – 200 Review Pgs 600-640 Pgs 680-700 Tuesday

List Style Types Alabama Alaska Arizona Arkansas Specify using style attribute with list-style-type property. Possible values: circle, disc, square, none, custom image, decimal, lower-roman, upper-roman, lower-alpha, upper-alpha Ex: <ol style="list-style-type:upper-roman"> <li>Alabama</li> <li>Alaska</li> <li>Arizona</li> <li>Arkansas</li> </ol> Alabama Alaska Arizona Arkansas

More List Styles Alabama Alaska Arizona Arkansas list-style-image: url(imageURL) list-style-position outside or inside <ol style="list-style-image:url(http://www.leseptiemeart.com/cinema/pictos/bullit.gif)"> <li>Alabama</li> <li>Alaska</li> <li>Arizona</li> <li>Arkansas</li> </ol> Alabama Alaska Arizona Arkansas

How would you get the following Definition List? <dl> <dt style="font-style:italic">HTML</dt> <dd>Hypertext Markup Language</dd> <dt style="font-style:italic">HTTP</dt> <dd>Hypertext Transfer Protocol</dd> <dt style="font-style:italic">CSS</dt> <dd>Cascading Style Sheets</dd> </dl> HTML Hypertext Markup Language HTTP Hypertext Transfer Protocol CSS Cascading Style Sheets

Hyperlinks Inline element, must have 2 tags <a href=… specify clickable links to other Web or local documents Can be attached to text or images Can also be attached to a portion of an image Image map Can be tied to any portion of text: <p>Hello, my name is <a href="http://www.cs.sunysb.edu/people/faculty/AhmadEsmaili.html">Ahmad Esmaili</a>. Won't you be my friend?</p> Hello, my name is Ahmad Esmaili. Won't you be my friend? URLs can be to local or remote resources

Local Hyperlinks Use relative reference rather than absolute reference Relative to where the document with the link is ../ means in the directory above the current file ./ means in the same directory as the current file <p><a href="./lectures/HTMLBasics.ppt"> HTMLBasics.ppt </a></p> <p><a href="http://www.cs.sunysb.edu/~cse102/lectures/HTMLBasics.ppt"> Relative Reference Absolute Reference Relative reference is preferred. You should use it when possible. Why? When is it not possible?

Ids & Anchors You may link to a location inside a document id attribute can be used to identify a specific element #id then specifies where the browser should scroll to Can be used effectively for long Web pages Have links on top to places in the document (FAQ pages) Ex from inside same document (named doc.html): <p><a href="#middle">Go to middle</a></p> … <p id="middle">Some paragraph</p> Ex from another document: <p><a href="doc.html#middle">Go to middle</a></p>

Opening New Browser Windows When one clicks on a hyperlink, there are 2 options: Open the page in the current browser window Open the page in a new browser window For this, use the target attribute target specifies a named window Ex: <p><a href="http://www.nytimes.com" target="win1">The New York Times</a></p> <p><a href="http://www.newsday.com" target="win2">Newsday</a></p> <p><a href="http://www.latimes.com" target="win1">The LA Times</a></p>

Site Organization Web site – an organized group of Web pages working together To build a Web site on your computer: Organize the pages into a hierarchy of files & directories Avoid nonalphanumeric characters in file & directory names Place index.html (site home page) in the root directory Use images/ subdirectory to store Web page images There are other standard directory names for products, services, etc … Avoid making a site that is too deep or too shallow What are the pros & cons of deep & shallow sites? Design a navigation system that is clear & easy to use Keep it standard on all your site’s pages Use relative reference for all internal links Upload the entire site to any server

Linking to Services Email links, use: <a href="mailto:email-address ?SUBJECT=line&BODY=body &to=email-address&cc=email-address"> E Link</a> Ex: <a href="mailto:esmaili@cs.sunysb.edu ?SUBJECT=hw1&BODY=I want an A &to=joe@ic.sunysb.edu&cc=shmo@ic.sunysb.edu"> Ahmad Esmaili</a>

Linking to Services (continued) Download links, use: <a href="ftp:host:port/path-to-file"> FTP Link</a> If port is not given, standard FTP port 21 is assumed Ex: <p><a href="ftp://monkey.cs.kent.edu/package.zip"> <code>package.zip</code></a> (35439 bytes)</p>

Display Style for Hyperlinks Done with Style Sheets (we’ll see later) Custom colors for Unvisited links Visited links Active links Hover links