Introduction to WEB PROGRAMMING

Similar documents
CSS.

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Block & Inline Elements

Styles, Style Sheets, the Box Model and Liquid Layout

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

CSS: Cascading Style Sheets

2. Write style rules for how you d like certain elements to look.

Data Visualization (DSC 530/CIS )

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Html basics Course Outline

CSS Cascading Style Sheets

Cascading Style Sheets Level 2

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

Which is why we ll now be learning how to write in CSS (or cascading sheet style)

HTML & CSS November 19, 2014

Data Visualization (CIS/DSC 468)

The Benefits of CSS. Less work: Change look of the whole site with one edit

COMS 359: Interactive Media

AGENDA. EMBEDDING FONTS [ Font Files & CSS font-family ] :: Online Font Converter :: ADD font-family css code to style.css

HTML & CSS. Rupayan Neogy

CSS worksheet. JMC 105 Drake University

CSS: The Basics CISC 282 September 20, 2014

Assignments (4) Assessment as per Schedule (2)

ITNP43: HTML Lecture 4

Web Design and Development ACS-1809

Chapter 3 Style Sheets: CSS

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

week8 Tommy MacWilliam week8 October 31, 2011

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 3 Introduction to CSS

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 2

Lab Introduction to Cascading Style Sheets

Introduction to using HTML to design webpages

Cascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

.hedgehog { background-image: url(backyard.jpg); color: #ffff99; height: 6in; width: 12in; } .tube {

COMS 359: Interactive Media

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

epromo Guidelines DUE DATES NOT ALLOWED PLAIN TEXT VERSION

ICT IGCSE Practical Revision Presentation Web Authoring

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013

Cascading Style Sheets (CSS)

Zen Garden. CSS Zen Garden

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

CSS Cascading Style Sheets

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework

HTML & CSS. Lesson 1: HTML Basics Lesson 2: Adding Tables Lesson 3: Intro to CSS Lesson 4: CSS in more detail Lesson 5: Review

Introduction to Web Development

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

CSS is applied to an existing HTML web document--both working in tandem to display web pages.

Reading 2.2 Cascading Style Sheets

NAVIGATION INSTRUCTIONS

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

In the early days of the Web, designers just had the original 91 HTML tags to work with.

HTML and CSS COURSE SYLLABUS

AGENDA. HTML CODING YOUR HOMEPAGE [ Part IV ] :: NAVIGATION <nav> :: CSS CODING FOR HOMEPAGE [ <nav> & child elements ] CLASS :: 13.

READSPEAKER ENTERPRISE HIGHLIGHTING 2.5

Hyper Text Markup Language

More about HTML. Digging in a little deeper

Tutorial 3: Working with Cascading Style Sheets

AGENDA :: MULTIMEDIA TOOLS :: CLASS NOTES


To illustrate how to set TAG styles the <body> and <h1> tags (for the BODY and the HEADING 1 styles) will be adjusted.

Page Layout. 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning

Controlling Appearance the Old Way

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

Appendix D CSS Properties and Values

Using CSS for page layout

To link to an external stylesheet, the link element is placed within the head of the html page:

CS 1100: Web Development: Client Side Coding / Fall 2016 Lab 2: More HTML and CSS

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

HTML. Based mostly on

ADOBE 9A Adobe Dreamweaver CS4 ACE.

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

Taking Fireworks Template and Applying it to Dreamweaver

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Hyper Text Markup Language

HTML and CSS MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

Designing the Home Page and Creating Additional Pages

Create a three column layout using CSS, divs and floating

How to lay out a web page with CSS

HTMLnotesS15.notebook. January 25, 2015

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Lesson 5 Introduction to Cascading Style Sheets

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

Diploma in Mobile App Development Part I

Transcription:

Introduction to WEB PROGRAMMING

Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication

Full-Stack Web Frameworks For more complex applications that fetch and store data, try one of these +

Today we ll focus on the front-end

Separating content from style Makes it easy to use the same style for multiple elements good for generating themes Styles don t clutter content easy to edit and reorder

HTML content & structure

HTML HyperText Markup Language HyperText supports links between pages Markup take a document and mark it up to tell the browser how to interpret the page Responsible for structured content

HTML Syntax Tree structure of tags, enclosed by brackets <> 2 main types: Container tags e.g. <div>. </div> content goes here Entity tag e.g. <img... />

Structure of an HTML document <html> <head> <title>my Website</title> </head> <body> [website] </body>

Structure of an HTML document <html> <head> <title>my Website</title> </head> <body> [website] </body> These tell the browser that this is an HTML document

Structure of an HTML document <html> <head> <title>my Website</title> </head> <body> [website] </body> The head includes information for rendering, including links to CSS/JS files

Structure of an HTML document <html> <head> <title>my Website</title> </head> <body> [website] </body> The body is where you put what gets displayed

Purposes for container tags Organization sectioning off text Design can be given shape and size (via CSS)

Basic container tags Tag <div> </div> Function block elements <span> </span> inline elements

<div> s are design elements <div> header </div> <div> social bar </div> <div> <div> left column </div> <div> right column </div> </div> <div> Can be given height and width

<span> s are for sectioning off text This is useless text for a paragraph whose <span>middle is to be red</span> in order to contrast the otherwise black text.

Other structural tags Tag <h1> </h1> <h2> </h2> <h3> </h3> <p> </p> Function headings paragraphs

<a href = /index.html > <img src= /path/to/img.png /> Images HTML Tag Attributes <img src= /path/to/img.png /> Links

For more tags Check out W3Schools Or other resources via Google search Even more in HTML5! <article> <header> <nav> <section> <canvas> <video>

CSS What s your style?

CSS Cascading Style Sheets Cascading can apply more than one rule to a part of your site. The one with the highest importance overrules others Style sheet provides style for your site!

CSS syntax selector { attribute: value; }

Universal Style Attributes Attribute color font-family font-weight Sample value blue Sans-Serif bold font-size 12px background-color #00000

Block Element Style Attributes width height border margin padding **measured in px (pixels), %, or em

Selectors link HTML to CSS Method HTML Selector 1. By tag <tag> tag 2. By ID <tag id= 472 > #472 3. By class <tag class= banana >.banana

img { border: 1px solid black; width: 100px; } Example: by tag

#logo { margin: 10px; padding: 5px 12px; } Example: by ID

.class-name { font-weight: bold; } Example: by class

div.small { width: 100px; height: 100px; } Example: tag + class

selectora selectorb { attribute: value; } Nested selectors **will only apply to elements matched by selectorb nested within element matched by

Example: nested selectors Sample HTML CSS that applies to it <div class= awesome > <p> Web programming is fun! </p> </div>.awesome p { color: #E4FD33; }

<link rel= stylesheet type= text/css href= /path/to/file.css How to attach CSS to HTML Option 1: Put your CSS between <style> </style> tags in the head Option 2: Put your CSS in a separate file and include this snippet between <head> </head> tags:

JavaScript Make it dynamic!

JavaScript Allows: User interaction via client-side scripts Browser control Asynchronous communication with the server Alteration of document Prototype-based scripting Supports object-oriented and functional

Create your own web page! 1. Create a file called index.html with basic HTML structure (<html>, <head>, and <body> tags) 2. Add content include a few other types of elements (<div>, <p>, <h1>, etc.) 3. Add classes and IDs to your elements 4. Create a file called style.css with style rules using your selectors