Lab 3: Language Structures User Interface Lab: GUI Lab Sep. 9 th, 2014.

Slides:



Advertisements
Similar presentations
Table, List, Blocks, Inline Style
Advertisements

Intro to HTML. HTML HTML = HyperText Markup Language Used to define the content of a webpage HTML is made up of tags and attributes Content.
Introduction to HTML & CSS
/k/k 1212 Cascading Style Sheets Part one Marko Boon
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.
Part 2 Introduction to CSS. CSS Syntax – class selector 1 With the class selector you can define different styles for the same type of HTML element. You.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
กระบวนวิชา 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.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
4.01 Cascading Style Sheets
CM143 Week 4 Introducing CSS. Cascading Style Sheets A definition for the style in which an element of the webpage will be displayed Border width, colour,
Basics of HTML.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
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.
HTML/CSS Hyper Text Markup Language. CSS Cascading Style Sheets.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
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.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Administration, Coverage, Review. Exam Administration Midterm exam is in class from 5:15 – 6:30PM on Thursday Feb 20 th. The exam is open book and open.
Css. Definition Cascading style sheet (CSS) Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Working with Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 5.
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.
Form Tag How to use Form Tag Something NEW ? PARAMETER Attribute NAME Specifies the name for a form To specify which form to submit with JavaScript, this.
WRT235: Writing in Electronic Environments Basic CSS.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, 4 th Edition.
XML Design Goals 1.XML must be easily usable over the Internet 2.XML must support a wide variety of applications 3.XML must be compatible with SGML 4.It.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
Advanced Web Development Instructor: Thomas Bombach.
Web Development 101 Presented by John Valance
Introduction to CSS. Why CSS? CSS Provides Efficiency in Design and Updates CSS relatively easy to use Can give you more flexibility and control Faster.
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.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
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.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
1 Lecture 7 Style Sheets: CSS. 2 Motivation HTML markup can be used to represent –Semantics: h1 means that an element is a top-level heading –Presentation:
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, Third Edition.
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.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
WEB FOUNDATIONS CSS Overview. Outline  What is CSS  What does it do  Where are styles stored  Why use them  What is the cascade effect  CSS Syntax.
Week-12 (Lecture-1) Cascading Style Sheets (CSS): describe how documents are presented on screens. Types of Style Sheets: External Style Sheet - Define.
Introduction to.
Web Basics: HTML/CSS/JavaScript What are they?
Programming Web Pages with JavaScript
4.01 Cascading Style Sheets
Intro to CSS CS 1150 Fall 2016.
Website Design 3
Cascading Style Sheets - Building a stylesheet
Intro to CSS CS 1150 Spring 2017.
Introduction to Cascading Style Sheets (CSS)
Web Design and Development
HTML / CSS Mai Moustafa Senior Web Designer eSpace eSpace.
Cascading Style Sheets - Building a stylesheet
4.01 Cascading Style Sheets
Web Programming and Design
Web Programming and Design
Presentation transcript:

Lab 3: Language Structures User Interface Lab: GUI Lab Sep. 9 th, 2014

Project 1a Due now!

Project 2 TBA, will be posted this week. Uses CSS and Bootstrap Due by 10:30am, 9/23 (in two weeks)

Lab 3 goals Actually cover the languages! The relationships between HTML, CSS, and JS HTML syntax and terminology CSS syntax and terminology JS syntax and terminology

Relationship Between the Languages HTML defines the structure of the document CSS defines the way it should be displayed JS defines how the document should change once its loaded

Some general rules Document is read by the browser in order: HTML > CSS > JS Nothing changes after load without JS

HTML HyperText Mark-up Language (HTML) Uses a Document Object Model (DOM) Consists of a series of hierarchical elements

HTML syntax

HTML syntax Element

HTML syntax Opening tag Closing tag

HTML syntax Opening tag Closing tag inner HTML

HTML syntax Opening tag Closing tag Attribute name Attribute value

HTML syntax Opening tag Closing tag Attribute

HTML syntax Opening tag Closing tag Attribute Child Element

CSS Cascading Style Sheets (CSS) Introduced to make styling HTML easier Uses a series of selectors that declare different styling properties for HTML elements Styles will cascade on each other to produce the most complete style

CSS syntax.target { color: #ff0000 } SelectorProperty Value Declaration

CSS Selectors Element Selector Class Selector Id Selector

Element Selector p { color: red; } Text that is red. Text that is not red.

.Class Selector.redText { color: red; }.blackText { color: black; } Text that is red. Text that is black. Text that is red.

#id Selector #theRedOne { color: red; } Text that is black. Text that is red. Text that is black.

Combined Selectors.redText { color: red; } p.redText { font-size: 50%; } 100% Red Text. 50% Red Text 100% Normal Text.

Defining CSS External Styles Internal Styles Inline Styles cascade in this order

External Styles CSS file locationCSS parsing information child of HTML element

Internal styles.myClass { background-color: #cccccc; } child of HTML element everything in here is interpreted as CSS

Inline styles can be defined for any element style attribute everything between “ ” interpreted as CSS

JS Syntax var myNumber = 5; var myString = “hi”; variable declaration Name Value this is a string this is a number

JS Syntax function showInput1 (form) { alert(form.input1.value); return false; } function declaration nameparameter(s) function body return statement function call

JS Syntax var form1 = document.forms[“form1”]; var alsoForm1 = document.forms.form1; form1 == alsoForm1; //results in true. “has a” relationship

JS Scoping var myInt = 5; function doSomething(myString) { alert(myInt + myString); } function doSomethingElse() { var myOtherInt = 7; alert(myOtherInt + myString); } global variable local variable error parameter valid

JS-DOM interaction function doSomething() { alert(“clicked”); } event handlerevent

JS-DOM interaction function doSomething() { document.getElementById(“target”); } DOM reference

Defining JS External Script Internal Script

External Script JS file location JS parsing information child of HTML or element(s)

External Script function doSomething() { alert(“reached”); } child of HTML or element(s) everything in here is interpreted as JS

Project 1 grades will be back by next class Assignment will be posted later this week