Links. Links Links Need to define two things: The destination Something to click on to get there Tag is <a href=…>click here</a> Can be text, special.

Slides:



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

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.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
CSS Link Styling. The Anchor Element: Link text between the opening and closing can be styled using CSS. Some of the properties that can be set are: font-family,
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links
Need to define two things: › The destination › Something to click on to get there  Tag is click here  Can be text, special character or image (next.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Chapter 8 Creating Style Sheets.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Ch. 5 Web Page Design – Templates and Style Sheets Mr. Ursone.
Design, Formatting, CSS, & Colors 27 February, 2011.
Design, Formatting, CSS, & Colors September 9, 2010.
Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.
Tags through Forms. This element is required for all HTML pages It must be at the top of every page of every website We’ll see later on why it is important.
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
Website design Feng Zhao College of Educatioin California State University, Northridge.
Creating A Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
Dreamweaver MX. 2 Creating External Style Sheets-1 (p. 400) n A style is a group of formatting attributes identified by a single name. n An ________ style.
Chapter 3 Dreamweaver: Part I The Web Warrior Guide to Web Design Technologies.
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.
Unit 4 – Creating A Web Site Instructor: Brent Presley.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 4: Creating Hyperlinks Kelly L.
Doman’s Sections Information in this presentation includes text and images from
Today’s objectives  Review  CSS | Rules | Declarations  HTML Structure document  Class asignment.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
How to get there from here. Lesson 5 – Unit E. Library.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
 Good navigation is consistent, clearly labeled, and reflects the needs of the site’s audience.  Navigation labels are short, clear, and user-friendly.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
Links in HTML What you need to know….. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another.
Microsoft Expression Web 3 – Illustrated Unit G: Designing Site Navigation.
Hyperlink ● Anchor tag and its attributes ● Four Types of URL ─ ─ Absolute addressing ─ Relative addressing ─ Intrapage ● Attributes -- link, vlink,
Company LOGO In the Name of Allah,The Most Gracious, The Most Merciful King Khalid University College of Computer and Information System Web pages Development.
COMP 143 Web Development with Adobe Dreamweaver CC.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links.
1 Cascading Style Sheets
More CSS.
CSS HTML and website development.
Cascading Style Sheets
Chapter 2 Developing a Web Page.
Cascading Style Sheets
Lecture 3 Sarsenova Zhibek.
Cascading Style Sheets
Cascading Style Sheets (Layout)
Cascading Style Sheets
Introduction to web design discussing which languages is used for website designing
Cascading Style Sheets
Unit F Inserting and Working with Links.
COMP 101 Review.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Google Fonts Selective Formatting
Hyperlinks, Images and Tables
Links.
Inserting and Working with Links
>> Dynamic CSS Selectors
More CSS.
Lesson 4 – Introduction to CSS
Links.
Hyperlinks, Images and Tables
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
HTML LINKS
Multipage Sites.
Styling Links.
Presentation transcript:

Links

Links Need to define two things: The destination Something to click on to get there Tag is <a href=…>click here</a> Can be text, special character or image (next week) Can change the text format

Linking to another page If it is another page in the same folder: <a href=“page.html”> If it is in a subfolder <a href=“folder/page.html”> If it is in a containing folder <a href=“../page.html”>

Linking to external pages Use full url <a href=“http://www.unc.edu">Link text</a> To force open in a new tab (window) <a href=“http://www.unc.edu” target="_blank">Link text</a> GOOD PRACTICE REQUIRED IN THIS CLASS

The destination: within a page Always link to an anchor point Implicit anchor point at top of page Anchor referenced as null (id=“” or id=“#”) Adding other anchor points Insert named anchor point id=“anchor” on any tag

Referencing the destination To point to an anchor point on SAME page <a href=“#anchor”>link text</a> <a href=“#”>top of page</a> In order to access anchor point on another page <a href=“page.html#anchorPoint”>Link text</a>

href formats summary To reference Use Another file in the same folder file.ext A file in a subfolder subfolder/file.ext index.html in a subfolder subfolder A file in a containing folder ../file.ext Anchor point on this page (need an id) #anchor The top of this page # Anchor point other page same folder file.ext#anchor An external page (target=“_blank”) http://www.complete.url

Formatting the Links Can use any formatting that you want Links have states (visited or not, hovering) Can change attributes for all states with a { property: value; }

Pseudo-classes Characteristics of tags that can have their own attributes Not reflected in HTML In CSS: tag:pseudo-classes Note only one : for a pseudo-class

Link Pseudo-classes Link states a:link -- a normal, unvisited link a:visited -- a link the user has visited a:hover -- a link when the user mouses over it a:active -- a link the moment it is clicked Note: CSS order important hover must come after link & visited active must come after hover LoVe HAte a:link { color: green; } a:visited { color: black;

On Page Navigation Long pages Avoid too much scrolling Links to subsections Link to top List of topics Use a “table of contents” of links

Basic page design header includes h1 title nav(igation) main footer Layout What do you want your website to look like? What are you putting on the site, and will you have enough space to do so? Simple Don’t overdue or overthink. Don’t add too many extraneous features. AKA. Don’t get carried away Header Contain title Navigation bars Search elements Important tidbits; not full on data or information – think of it like a thesis statement Next/back elements Body The meat of the webpage All the information and content Make it look nice and understandable Some next/back elements if necessary Footer Copyright information Location and address Contact information

Google fonts

External CSS: Google fonts! google.com/fonts 2 steps Link to font (second style sheet!) Use name in CSS