INTRO TO WEB DEVELOPMENT

Slides:



Advertisements
Similar presentations
Introduction to HTML & CSS
Advertisements

Intro To Cascading Style Sheets By Mario Yannakakis.
Cascading Style Sheets (CSS). Cascading Style Sheets With the explosive growth of the World Wide Web, designers and programmers quickly explored and reached.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Website Design.
Cascading Style Sheets
Cascading Style Sheets (CSS) “Styles” for short. Pg. 418.
CSS Digital Media: Communication and design 2007.
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
XHTML Basics.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
กระบวนวิชา 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.
XP Introducing Cascading Style Sheets With Cascading Style Sheets (CSS), you can create one or more documents that control the appearance of some or all.
Tutorial 3 Introducing Cascading Style Sheets. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Learn about Cascading Style Sheets Write.
CS428 Web Engineering Lecture 06 Introduction (Cascading Style Sheet) 1.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
4.01 Cascading Style Sheets
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.
Hypertext Markup Language (HTML) Created by Sarah Dooley & Amanda Foster Edited and presented by Caroline Hallam September 9, 2014.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
Review HTML  What is HTML?  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
Creating a Simple Page: HTML Overview
Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
 ult.htm ult.htm  This website illustrates the use of CCS (style sheets)
CSS Style Rules Guang Tong, Zhan L;lo’p[ Css Style Rule Guang Tong Zhan Three ways to insert CSS 1 External style sheet 2 Internal style sheet 3 Inline.
Cascading style sheets (CSS)
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Bare bones notes. Suggested organization for main folder. REQUIRED organization for the 115 folder.
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.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
I NTRO TO CSS IAT100 Spring I NTRO TO CSS Covered in this lesson: Overview What is CSS? Why to use CSS? CSS for Skinning your Website Structure.
Introduction To CSS.. HTML Review What is HTML used for? Give some examples of formatting tags in HTML? HTML is the most widely used language on the Web.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
INTRODUCTION TO CSS. OBJECTIVES: D EFINE WHAT CSS IS. K NOW THE HISTORY OF CSS. K NOW THE REASON WHY CSS IS USED. CSS SYNTAX. CSS ID AND CLASS.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
CSS Basic (cascading style sheets)
Bare bones slide show. The format is text files, with.htm or.html extension. Hard returns, tabs, and extra spaces are ignored. DO NOT use spaces in file.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
IS1825: Developing Multimedia Applications for Business Lecture 1: Introduction to CSS Rob Gleasure
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
DIV, Span, CSS.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Are You Smarter Than a 5 th Grader? 1,000,000 5th Grade HTML 5th Grade Syntax 4th Grade HTML 4th Grade Syntax 3rd Grade HTML 3rd Grade Syntax 2nd Grade.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
CSS Cascading Style Sheets *referenced from
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
CASCADING STYLE SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
Introduction To CSS. Lesson 1: History of CSS CSS was proposed in 1994 as a web styling language. To helps solve some of the problems HTML 4. There were.
4.01 Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
Cascading Style Sheets - Building a stylesheet
Software Engineering for Internet Applications
What are Cascading Stylesheets (CSS)?
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Cascading Style Sheets - Building a stylesheet
4.01 Cascading Style Sheets
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
Web Programming and Design
Presentation transcript:

INTRO TO WEB DEVELOPMENT

Overview Structure of the Internet Web site structure Site planning Web page editors Intro to HTML Intro to CSS Publishing to your PSU web space Further Resources

1. Structure of the Internet The internet is a network of server computers and client computers: Servers: Where web content is stored Clients: Regular computers

1. Structure of the Internet The internet is a network of server computers and client computers: I need to look at www.pdx.edu. Where is its server? Domain Name Server Client (regular computer)

1. Structure of the Internet The internet is a network of server computers and client computers: Over here. Domain Name Server Client (regular computer) PSU Web Server

1. Structure of the Internet The internet is a network of server computers and client computers: Give me www.pdx.edu Client (regular computer) PSU Web Server

2. Web Site Structure Web page: a single document that contains text, images and other media Web site: a collection of web pages linked together Web pages end in .html or .htm. Every web page has web address, or URL.

2. Web Site Structure Everything must be inside the root folder Give files and folders lowercase names using letters, numbers and underscores only

2. Web Site Structure Updating a page: Make the edits to the local files on your computer Upload the edited files to the server, where they replace the older remote versions

Upload process for PSU servers: 2. Web Site Structure Upload process for PSU servers: FTP/Upload index.html index.html page2.html page2.html odinID /images /images public_html website_name /subfolder /subfolder

3. Site Planning Consider: in advance! Purpose Scope Audience Design Complexity in advance!

4. Web Page Editors

5. Intro to HTML Essential parts of a web page: Doctype, <html> tags head section body section

<i>Italic sentence</i> 5. Intro to HTML HTML is a markup language, not a programming language. Text consists of intermingled regular text and markup. HTML markup consists of tags: <i>Italic sentence</i> written in the HTML code shows up as Italic sentence in a browser. Individual tags are also called elements.

5. Intro to HTML Two types of HTML tags: Paired tags enclose other content: Unpaired tags stand alone: <p>This is a paragraph. The browser will display it as a block of text with a little space above and below it, just like a paragraph in Microsoft Word. </p> <br /> inserts a forced line break <img /> inserts an image

5. Intro to HTML Two display options for HTML tags: Block-level tags display as separate entities: Inline tags stay within their parent element: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus <p>magna magna,</p> sagittis non eleifend non, elementum vitae nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus magna magna, sagittis non eleifend non, elementum vitae nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus <em>magna magna,</em> sagittis non eleifend non, elementum vitae nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus magna magna, sagittis non eleifend non, elementum vitae nisi.

5. Intro to HTML You can use as many tags as you like, but make sure to nest them properly: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus <p><em><strong>magna magna, </strong></em></p> sagittis non eleifend non, elementum vitae nisi. magna magna,

5. Intro to HTML More than one space in the code is ignored: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus <em> magna magna,</em> sagittis non eleifend non, elementum vitae nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus magna magna, sagittis non eleifend non, elementum vitae nisi.

5. Intro to HTML Tags have attributes. Some are optional, some are mandatory. <p align=“right”> This text will be aligned right instead of the default left. </p> This text will be aligned right instead of the default left. <img src=”images/garter_snake.jpg” />

5. Intro to HTML Specifying Colors on the Web There are only 147 named colors: blue linen indianred slategrey ???

5. Intro to HTML Specifying Colors on the Web There are only 147 named colors: For more options, use hex codes: blue linen indianred slategrey ??? #0000FF #FAF0E6 #CD5C5C #708090 #5000000 #CC6633

5. Intro to HTML Specifying Colors on the Web Original: Abbreviated: Note: you may see hex codes with the pattern ‘aabbcc’ abbreviated with a hex triplet, like this: Original: Abbreviated: #0000FF #FAF0E6 #CD5C5C #708090 #5000000 #CC6633 #00F #FAF0E6 #CD5C5C #708090 #500 #CC6633

5. Intro to HTML Specifying Colors on the Web Particularly in CSS, colors are often specified using RGB values: Use whichever color system works best for you. rgb(0,0,255) rgb(250,240,230) rgb(205,92,92) rgb(112,128,144) rgb(85,0,0) rgb(80,40,20)

5. Intro to HTML Measurements on the Web Pixels Ems Percentages

Exercise: building a simple web page 5. Intro to HTML Exercise: building a simple web page

6. Intro to CSS CSS = Cascading Stylesheet = a set of rules that redefines how HTML tags display themselves by default. In other words: HTML tells what to display, CSS tells how to display it. HTML defines structure, CSS defines style You can put the CSS rules in a few places: Within the HTML page’s head section As an external file that you link to in the head section As an inline style

6. Intro to CSS Including CSS in the head section of your HTML: <title>Practice Page</title> <style type="text/css"> (CSS rules go here) </style> </head> Use this when you only need the styles for one page (example)

6. Intro to CSS Linking to a separate CSS file (an “external style sheet”): <head> <title>Practice Page</title> <link rel=“stylesheet” type=“text/css” href=“mystyles.css” /> </head> This way, you can apply the same set of styles to many web pages. (example)

6. Intro to CSS Anatomy of a CSS rule: <head> <title>Practice Page</title> <style type="text/css"> body { background-color: slategrey; } </style> </head>

6. Intro to CSS Anatomy of a CSS rule: The selector: the name of the HTML tag this rule will affect. Here: everything on the page unless otherwise specified. Anatomy of a CSS rule: <head> <title>Practice Page</title> <style type="text/css"> body { background-color: slategrey; } </style> </head>

6. Intro to CSS Anatomy of a CSS rule: The selector: the name of the HTML tag this rule will affect. Here: everything on the page unless otherwise specified. Anatomy of a CSS rule: <head> <title>Practice Page</title> <style type="text/css"> body { background-color: slategrey; } </style> </head> The property: the characteristic of the HTML tag you want to change

6. Intro to CSS Anatomy of a CSS rule: The selector: the name of the HTML tag this rule will affect. Here: everything on the page unless otherwise specified. Anatomy of a CSS rule: <head> <title>Practice Page</title> <style type="text/css"> body { background-color: slategrey; } </style> </head> The value: the new value for the property you chose The property: the characteristic of the HTML tag you want to change

6. Intro to CSS Syntax is important! <head> <title>Practice Page</title> <style type="text/css"> body { background-color: slategrey; } </style> </head>

6. Intro to CSS Syntax is important! <head> <title>Practice Page</title> <style type="text/css"> body { background-color: slategrey; } </style> </head> Enclose all the rules for one tag with curly braces

6. Intro to CSS Syntax is important! <head> <title>Practice Page</title> <style type="text/css"> body { background-color: slategrey; } </style> </head> Put a colon (:) after the name of the property you’re changing Enclose all the rules for one tag with curly braces

6. Intro to CSS Syntax is important! <head> <title>Practice Page</title> <style type="text/css"> body { background-color: slategrey; } </style> </head> Put a colon (:) after the name of the property you’re changing Put a semicolon (;)after each single rule Enclose all the rules for one tag with curly braces

6. Intro to CSS You can add as many rules as you want. Conventional spacing of rules is like this: But this is fine too – as long as your syntax is correct, spacing doesn’t matter: body { background-color: slategrey; color: cornsilk; font-size: 12px; } body { background-color: slategrey; color: cornsilk; font-size: 12px; }

Exercise: adding CSS to a simple web page 6. Intro to CSS Exercise: adding CSS to a simple web page

Useful Links: http://www.w3schools.com (the web’s go-to HTML and CSS reference, with tutorials and “try it yourself” features too) http://web.pdx.edu/~willic/resources.html (my web page, with a long list of free tutorials and references)