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

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

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

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

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

Assignments (4) Assessment as per Schedule (2)

MPT Web Design. Week 1: Introduction to HTML and Web Design

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

Introduction to WEB PROGRAMMING

Adding CSS to your HTML

Cascading Style Sheets (CSS)

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

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Programmazione Web a.a. 2017/2018 HTML5

Fundamentals of Web Technologies. Agenda: CSS Layout (Box Model) CSS Layout: Box Model. All HTML elements can be considered as a box or a container

CSS.

CSS: The Basics CISC 282 September 20, 2014

Block & Inline Elements

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

CSS. Lecture 16 COMPSCI 111/111G SS 2018

Styles, Style Sheets, the Box Model and Liquid Layout

COMS 359: Interactive Media

CSS Lecture 16 COMPSCI 111/111G SS 2018

IBM Forms V8.0 Custom Themes IBM Corporation

ITNP43: HTML Lecture 4

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

Appendix D CSS Properties and Values

Designing for Web Using Markup Language and Style Sheets

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

CSS Cascading Style Sheets

Parashar Technologies HTML Lecture Notes-4

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

Designing the Home Page and Creating Additional Pages

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

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

Chapter 3 Style Sheets: CSS

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2)

Creating and Building Websites

CSS: Cascading Style Sheets

BIM222 Internet Programming

What is CSS? NAME: INSERT OPENING GRAPHIC HERE:

COSC 2206 Internet Tools. CSS Cascading Style Sheets

HTML and CSS COURSE SYLLABUS

CSS Cascading Style Sheets

CSS WHAT IS IT? HOW DOES IT WORK? (LOOK N GOOD)

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Reading 2.2 Cascading Style Sheets

Final Exam Study Guide

CSS: Cascading Style Sheets

CE419 Web Programming. Session 3: HTML (contd.), CSS

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

Ministry of Higher Education and Scientific Research

CSS: Lists, Tables and the Box Model

Web Design and Development Tutorial 03

E-Business Systems 1 INTE2047 Lab Exercises. Lab 5 Valid HTML, Home Page & Editor Tables

Positioning in CSS: There are 5 different ways we can set our position:

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS

Web Development & Design Foundations with HTML5

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

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

Cascading Style Sheets Level 2

Web Development & Design Foundations with HTML5

ICT IGCSE Practical Revision Presentation Web Authoring

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

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

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

Cascading style sheets, HTML, DOM and Javascript

Introduction to using HTML to design webpages

CSS Design and Layout Basic Exercise instructions. Today's exercises. Part 1: Arrange Page into Sections. Part 1, details (screenshot below)

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

Networks and Web for Health Informatics (HINF 6220) Tutorial 8 : CSS. 8 Oct 2015

Create a three column layout using CSS, divs and floating

CSC309 Programming on the Web week 3: css, rwd

Lab Introduction to Cascading Style Sheets

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

ADOBE 9A Adobe Dreamweaver CS4 ACE.

HTML/XML. HTML Continued Introduction to CSS

Methods for configuring Cascading Style Sheets. Applying style to element name selectors. Style Rule Basics. CMPT 165: Cascading Style Sheets

Lesson 5 Introduction to Cascading Style Sheets

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

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

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

Tutorial 3: Working with Cascading Style Sheets

Creating A Website - Part 1: Web Design principles, HTML & CSS. CSS Color Values. Hexadecimal Colors. RGB Color

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

VCE / VET INFORMATION AND COMMUNICATION TECHNOLOGY

How to lay out a web page with CSS

2005 WebGUI Users Conference

ITNP43: HTML Lecture 5

COMP519 Web Programming Lecture 6: Cascading Style Sheets: Part 2 Handouts

Introduction to CSS. 2 Sep 13. Derek Peacock. An introduction to defining CSS style rules using tags, classes and ids.

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

CSCB20 Week 7. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

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

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

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

Client-Side Web Technologies. CSS Part I

Website Design (Weekday) By Alabian Solutions Ltd , 2016

INTRODUCTION TO HTML5! CSS Styles!

Transcription:

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

Plan for the next 4 weeks: Introduction to HTML tags, creating our template file Introduction to CSS and style Introduction to JavaScript More advanced JavaScript & Portfolio Site

Web Design Competition There will be a competition for the best designed website!! Theme is: "Scientific Exploration, the new pioneers into the unknown lands of scientific discovery and innovation. Engineering that will excite and enhance our lives." To enter: Simply upload your website into a folder named competition on your Public_html

HTML Reminder HTML stands for Hyper Text Markup Language HTML allows us to describe and define the structure of our website using markup All the elements in a web page are represented in tags <tag> Example of HTML elements include: headings, paragraphs, images, videos Nearly all HTML tags come in pairs with an start and end tag <tag> </tag> The Browser will not display these tags, instead it will use the tags to render the web page <tagname>some Content in here.</tagname> Defines the type of element The stuff that gets displayed Close off the element

CSS

Where to write our CSS? 3 Places the Style can go We can write all our CSS in an external CSS file and link it to our HTML document We can write our CSS within <style> tags in the <head> tag of our HTML document We can write our CSS inline. That is within the HTML tags: <div style= color: blue; ></div>

What is CSS? CSS stands for Cascading Style Sheets CSS describes how HTML elements are to be displayed on screen It allows us to change the style or appearance of our web page CSS contains a selector and property, value pair The selector is the HTML tag you would like to style h1 {color: blue;} Selector (HTML tag) Property Value In this example, all the h1 tags in the HTML document will be changed to blue

CSS Syntax The declaration block is contained within { } there can be multiple declarations within these { } A declaration must include a style property and a value, they are separated by : A CSS declaration always ends with a ; Declaration Declaration h1 {color: blue; text-align: center;} Selector (HTML tag) Property Value Property Value

CSS Syntax In the below example all text within h1 (heading) tags will be displayed in the browser in blue But what if we did not want to change all the h1 elements? Perhaps we only wanted to change one h1 tag to display blue To write a comment in CSS we use /* comment written here */ h1 {color: blue;}

CSS Syntax To change a specific HTML tag, we can give that tag a unique ID All HTML ID s must be unique (they cannot have the same name!) They must start with a lowercase letter, they cannot start with a number Then we can call the ID as a selector in our CSS We must add a # before the selector so that CSS knows to look for an ID in our HTML document <h1 id= myh1 >My Heading</h1> #myh1 {color: blue;}

CSS Syntax We can also change a group of HTMl elements by giving the same class Unlike ID, multiple HTML tags can have the same class A class name must start with a lowercase letter and cannot start with a number We must add a. before the class name in CSS, so that CSS knows to look for HTML tags with this class <h1 class= bluetext >My Heading</h1> <p class= bluetext >My Paragraph</p>.blueText {color: blue;}

CSS: Padding, margin, border

CSS Borders The CSS border properties allow you to specify the style, width, and color of an element's border

CSS Margins The CSS margin properties are used to create space around elements, outside of any defined borders. CSS has properties for specifying the margin for each side of an element: Margin-top Margin-right Margin-bottom margin-left All the margin properties can have the following values: auto - the browser calculates the margin length - specifies a margin in px, pt, cm, etc. % - specifies a margin in % of the width of the containing element inherit - specifies that the margin should be inherited from the parent element

CSS Padding The CSS padding properties are used to generate space around an element's content, inside of any defined borders. CSS has properties for specifying the padding for each side of an element: Padding-top Padding-right Padding-bottom padding-left All the padding properties can have the following values: length - specifies a padding in px, pt, cm, etc. % - specifies a padding in % of the width of the containing element inherit - specifies that the padding should be inherited from the parent element

CSS: Colour

CSS Colour Colors in CSS are most often specified by: A valid color name - like "red" An RGB value - like "rgb(255, 0, 0)" A HEX value - like "#ff0000" rgb(red 0-255, green 0-255, blue 0-255) #r8r1g8g1b8b1 - e.g. #00ff00 is just green Hex uses 0-9 and a-f You can find a list of supported colour names at: https://www.w3schools.com/colors/colors_name s.asp And colour pickers at: W3schools Colour Picker: http://www.w3schools.com/colors/colors_picker. asp Palleton: http://paletton.com/

CSS: Animations

CSS Animations An animation lets an element gradually change from one style to another. You can change as many CSS properties you want, as many times you want. To use CSS3 animation, you must first specify some keyframes for the animation. Keyframes hold what styles the element will have at certain times.

CSS @keyframes Animations When you specify CSS styles inside the @keyframes rule, the animation will gradually change from the current style to the new style at certain times. To get an animation to work, you must bind the animation to an element. You must also set a duration in seconds. Otherwise we won t see the animation

CSS @keyframes Animations The following example binds the "example" animation to the <div> element. The animation will last for 4 seconds, and it will gradually change the background-color of the <div> element from "red" to "yellow"

Important Links https://www.w3schools.com/colors/colors_name s.asp http://www.w3schools.com/colors/colors_picker. asp http://paletton.com/