Site Organization. The Need to Organize Site Files Thus far, we have placed all our site files into the main (root) website folder. As a website becomes.

Slides:



Advertisements
Similar presentations
XHTML Basics.
Advertisements

 To create page, Komodo Editor  To share web page, UNC SERVER, ISIS (  To transfer page to ISIS,
Absolute vs. Relative Paths/Links
Links and Comments.
Topics in this presentation: The Web and how it works Difference between Web pages and web sites Web browsers and Web servers HTML purpose and structure.
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.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 14 Introduction to HTML
Hypertext Markup Language (HTML) Created by Sarah Dooley & Amanda Foster Edited and presented by Caroline Hallam September 9, 2014.
Using Cascading Style Sheets (CSS) Dept. of Computer Science and Computer Information CSCI N-100.
Images: HTML and CSS. The Bells page without images in Source View and Design View.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 2: Working with Webpage Files.
Getting Started with Dreamweaver
Intro to MIS – MGS351 Building a Webpage. Chapter Overview m The World Wide Web – Web servers, Web browsers and Web pages m HTML Introduction m Using.
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
IPUB 100 Lesson 2 Instructor Mark Lamontagne Homework Review.
INTRODUCTION TO DREAMWEAVER 8. What we already know…  Design basics  Contrast  Repetition  Alignment  Repetition  HTML.
Ch 5 HTML and CSS Web Standards Solutions A Web Standardistas’ Approach.
IT Introduction to Website Development Welcome!
Hyperlinks. Linking pages…Hyperlinks 2 Lecture 8  Hyperlink “A clickable HTML element that will direct the web browser to display a different Web page.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
Dbwebsites 1.1 Making Database backed Websites Session 1 Building a simple website by hand.
CM143Web Week 8 Review of Assignment 1 Revision & Elaboration.
 cascade Style Sheets (CSS) is a mark-up language that was first proposed in 1994 by Håkon Wium Lie. CSS works in conjunction with HTML to greatly increase.
The WWW and Web Page Design Kin 260 Jackie Kiwata.
How the Web Works Digital Histories Workshop Adam Crymble.
IS1825: Developing Multimedia Applications for Business Lecture 1: Introduction to CSS Rob Gleasure
Introduction to web development and HTML MGMT 230 LAB.
How to upload files to Altervista Overview:
Planning your site/organization on the Web Please use speaker notes for additional information!
HTML Basics BCIS 3680 Enterprise Programming. Web Client/Server Architecture 2  Your browser (the client) requests a Web page from a remote computer.
Definition CSS “Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how.
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
INTRODUCTION TO CSS. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features of CSS Features of CSS  Creating Style Sheet Creating Style Sheet.
How the Web Works Building a Website – Lesson 1. How People Access the Web Browsers People access websites using software called a web browser. To view.
FUNDAMENTALS OF HTML, XHTML & CSS Lesson 4. THE OBJECTIVES -  In this lesson you will begin coding in HTML to provide the structure  You will learn.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Web Foundations THURSDAY, SEPTEMBER 26, 2013 LECTURE 2: WORKING WITH HTML FILES, HTML BASICS, LINKING.
CSCI N241: Fundamentals of Web Development Copyright ©2006  Department of Computer & Information Science Navigation, Links & Images.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
PATHNAMES LINKS BACKGROUND.  Pathnames in hyperlinks & image tags  Absolute pathnames: for links to web addresses  Relative pathnames: for links to.
IN THIS LESSON, WE WILL BECOME FAMILIAR WITH HTML AND BEGIN CREATING A WEB PAGE IN YOUR COMPUTER HTML – the foundation.
File Paths *referenced from
© ExplorNet’s Centers for Quality Teaching and Learning 1 Objective % Understand advanced production methods for web-based digital media.
CSU - DCE Introduction to CSS CSS URLs - Fort Collins, CO Copyright © XTR Systems, LLC Cascading Style Sheets - Specifying URLs Instructor: Joseph.
HTML HyperText Markup Language Victoria E. Kozlek.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
Validation. What is Validation? Removing errors improves the consistency of how our pages look to a wide variety of browsers and devices. Ensuring that.
Lecture 8 Introduction to Web Programming. Announcement  First In-class exam will be on Oct. 10 (Wednesday)  2.50pm – 4.05pm  Exam will cover all materials.
Glencoe Introduction to Web Design Chapter 4 XHTML Basics 1 Review Do you remember the vocabulary terms from this chapter? Use the following slides to.
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.
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.
Web Basics: HTML/CSS/JavaScript What are they?
4.01 How Web Pages Work.
Dreamweaver – Setting up a Site and Page Layouts
Objective % Select and utilize tools to design and develop websites.
Site Organization.
Internal and External Links
Using the HTML and CSS Validation Services
Fundamentals of HTML, XHTML & CSS
Objective % Select and utilize tools to design and develop websites.
Relative Paths.
Site Organization.
How files are organized
Starting to develop a website
Presentation transcript:

Site Organization

The Need to Organize Site Files Thus far, we have placed all our site files into the main (root) website folder. As a website becomes larger and more sophisticated, a single folder becomes too cluttered to manage effectively. To better organize our site, we can group similar files, such as images and CSS files, into their own dedicated subfolders.

Relative Paths Once we move site files to subfolders, we need a way to tell the browser where to find them. To do this, we use relative paths: The path is always relative to the file making the reference. In this case, the path is relative to the location of index.html. Always use the forward slash (/) in file paths, never the backslash (\).

Absolute Paths A common mistake committed by novice web designers is to copy and paste the full path to a local file in their markup: This can be a frustrating error, as the browser on our own computer can locate and display the image. But when the site is uploaded to a live web server, the image won't appear, since the location is no longer valid. These paths, since they are not relative to the current location, are known as absolute paths.

External CSS Style Sheets Our earlier example of an external CSS style sheet assumed the actual CSS file was in the same directory as the XHTML file. Now that we are better organizing our site, we should move the CSS file to its own folder:... Complex websites can have dozens of style sheet files in the CSS folder.

Relative Paths in Style Sheets As we know, CSS style sheets can set background images for elements. Now that the style sheet is in its own folder, we need a way to point the CSS file to an image that is located up one folder level and then down into a different subfolder: body { background-image: url('../images/orange.jpg'); } This is the mycss.css file. Remember, the path is always relative to the file making the reference. In this case, that file is the CSS file in its own subfolder. The two periods and forward slash instruct the browser to "go up one folder level".