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

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 Senior Cycle Tutor: Tamara Week 2

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

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

BEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from

Beginning HTML. The Nuts and Bolts of building Web pages.

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

Introduction to WEB PROGRAMMING

Revision for Grade 7 ASP in Unit :1&2 Design & Technology Subject

Head First HTML 5 Programming: Chapter 3: Events, Handlers, and all that Jazz.

Lesson 5 Introduction to Cascading Style Sheets

Elementary Computing CSC 100. M. Cheng, Computer Science

Web Site Development with HTML/JavaScrip

Spelling-Punctuation-Grammar Subject How will you promote high standards within this module? Term Duration (approx.)

Introduction to Web Development

Time: 3 hours. Full Marks: 70. The figures in the margin indicate full marks. Answer from all the Groups as directed. Group A.

Criterion D: Product design

The course also includes an overview of some of the most popular frameworks that you will most likely encounter in your real work environments.

Produced by. App Development & Modelling. BSc in Applied Computing. Eamonn de Leastar

LAST WEEK ON IO LAB. Install Firebug and Greasemonkey. Complete the online skills assessment. Join the mailing list.

welcome to BOILERCAMP HOW TO WEB DEV

Year 8 Computing Science End of Term 3 Revision Guide

1. Cascading Style Sheet and JavaScript

UNIT -II. Language-History and Versions Introduction JavaScript in Perspective-

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

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

A Brief Introduction to a web browser's HTML. and the Document Object Model (DOM) Lecture 28

The Structure of the Web. Jim and Matthew

('cre Learning that works for Utah STRANDS AND STANDARDS WEB DEVELOPMENT 1

CSS Selectors. Web Authoring and Design. Benjamin Kenwright

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

CSC Web Programming. Introduction to JavaScript

ABOUT WEB TECHNOLOGY COURSE SCOPE:

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

Manju Muralidharan Priya. CS4PM Web Aesthetics and Development WEEK 12

Figure 1 Properties panel, HTML mode

Client Side JavaScript and AJAX

Languages in WEB. E-Business Technologies. Summer Semester Submitted to. Prof. Dr. Eduard Heindl. Prepared by

JavaScript CS 4640 Programming Languages for Web Applications

XML. Jonathan Geisler. April 18, 2008

Web development using PHP & MySQL with HTML5, CSS, JavaScript

AIM. 10 September

CPSC 481: CREATIVE INQUIRY TO WSBF

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 7 XML

COMPSCI 120 Fall 2017 Review Questions for Midterm #2 Professor William T. Verts

Car Sounds with JavaScript

Designing the Home Page and Creating Additional Pages

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

The Nature of the Web

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

GRAPHIC WEB DESIGNER PROGRAM

INTRODUCTION TO HTML5! CSS Styles!

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

JQuery and Javascript

Dreamweaver Domain 5: Organizing Content by Using Dreamweaver CS5

JavaScript CS 4640 Programming Languages for Web Applications

PIC 40A. Midterm 1 Review

Student, Perfect Final Exam May 25, 2006 ID: Exam No CS-081/Vickery Page 1 of 6

ZEND: Survey on the Examination System

Cascading style sheets

Standard 1 The student will author web pages using the HyperText Markup Language (HTML)

This assignment is worth 100 points and is due on the crashwhite.polytechnic.org server at 23:59:59 on the date given in class.

JAVASCRIPT FOR PROGRAMMERS

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

XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11

Assignments (4) Assessment as per Schedule (2)

Designing for Web Using Markup Language and Style Sheets

FBCA-03 April Introduction to Internet and HTML Scripting (New Course)

7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML

All India Council For Research & Training

Exercise 1 Using Boolean variables, incorporating JavaScript code into your HTML webpage and using the document object

1. Setup a root folder for the website 2. Create a wireframe 3. Add content 4. Create hyperlinks between pages and to external websites

Using AJAX to Easily Integrate Rich Media Elements

Title: Jan 29 11:03 AM (1 of 23) Note that I have now added color and some alignment to the middle and to the right on this example.

Static Webpage Development

HTML5 & CSS 8 th Edition. Chapter 2 Building a Webpage Template with HTML5

FORMS. The Exciting World of Creating RSVPs and Gathering Information with Forms in ClickDimensions. Presented by: John Reamer

CGS 3066: Spring 2015 JavaScript Reference

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

Ministry of Higher Education and Scientific Research

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

JavaScript. Like PHP, JavaScript is a modern programming language that is derived from the syntax at C.

COURSE 20480B: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3

Web Development. With PHP. Web Development With PHP

Introduction to Web Concepts & Technologies

Introduction to HTML and CSS. Arts and Humanities in the Digital Age 2018 CHASE DTP Dr. Paul Gooding

Programming in HTML5 with JavaScript and CSS3

HTML and CSS COURSE SYLLABUS

Web Development & SEO (Summer Training Program) 4 Weeks/30 Days

CodeValue. C ollege. Prerequisites: Basic knowledge of web development and especially JavaScript.

ORB Education Quality Teaching Resources

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU

Introduction to web development and HTML MGMT 230 LAB

CSC9B1: Essential Skills WWW 1

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

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017)

IBM Forms V8.0 Custom Themes IBM Corporation

Using Dreamweaver CS6

Web Designing HTML5 NOTES

Transcription:

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

Plan for the next 5 weeks: Introduction to HTML tags, creating our template file Introduction to CSS and style Introduction to JavaScript More advanced JavaScript Combining HTML, CSS and JavaScript to make a 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 Reminder 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;} In this example, all the h1 tags in the HTML document will be changed to blue Selector (HTML tag) Property Value

What is JavaScript JavaScript allows us to make our webpage dynamic i.e the user can interact with our webpage JavaScript is a scripting language We can use the DOM model to change classes, structure, style, content, and even create games etc. Data Types Variables Functions Variable Scope DOM Model If - else conditionals

JavaScript Arrays

What is an Array? Arrays are a way of grouping variables with the same data type together It allows us to save multiple values under one variable name Similar to a list It saves us a lot of lines of code! We separate each value using a comma, var myarray = [item1, item2, item3, etc]; We make an array just like how we make variables We use the [ ] to tell javascript this is an array

Array value types You can have arrays of any data type var mynumarray = [1, 2, 3.2, 6.5, 9]; var mystrarray = [ HTML, CSS, JavaScript ];

Making variables for each student name vs making an array to hold all student names

Array Indexing Once you have created an array, how to access or use one of the values? We do this by array indexing - by writing the variable name and then index number in [ ] TO NOTE: Array indices always start at 0 For example var mystrarray = [ HTML, CSS, JavaScript ]; alert(mystrarray[0]); alert(mystrarray[1]); alert(mystrarray[2]);

Array Indexing With array indexing we can: Make a variable = the array index And replace the value at a certain index var mystrarray = [ HTML, CSS, JavaScript ]; var mystr = mystrarray[0]; alert(mystr); mystrarray[1] = StyleSheet ; alert(mystrarray[1]); Assigning new value Replacing value

Array Methods JavaScript has lots of built in functions/methods that we can use on our Arrays Examples include: myarray.pop(); //removes the last item from the array myarray.length; //returns the length of the array myarray.push( newvalue ); //pushes a new value to the end of an array myarray.sort(); //sorts the array alphabetically or numerically There are loads more methods we can use! These are some of the most common

JavaScript for/while loops

If I wanted to alert every name in my array, I would have to write 31 lines of repetitive code Perhaps there is a way of achieving the same result in less code

JavaScript loops JavaScript loops are handy as they let us repeat the same block of code several times Loops are used a lot with arrays There are two types of loop For loop While loop We will focus mainly on the for loop

JavaScript for loop syntax To create a for loop we must use the keyword for Then we setup three statements within ( ) before describing the block of code we want to repeat Statement 1 statement 2 statement 3 all separated by ; for (setup var; condition; increase var){ // block of code to repeat } Keyword for

Reduced 31 lines of code down to 3! For loop break down: Statement 1: first we make a variable called i which will be used to iterate or repeat our code. Statement 2: Is our condition which we check to see if it is true or false. If it is true we run the block of code. If it is false, we ignore the block of code. Statement 3: is how we increase our variable i value so that we can repeat the code the correct amount of times. If we did not increase value, we would have an infinite loop To note: calling the variable i is common convention it stands for index or iterations

To Note: look how we can use the variable i to get the correct index from our array For loop logic: The first time the for loop is called we create a variable called i that = 0 Then we check if i is less than mptstudents.length or is 0 less than 31 This condition is true, so we increase the variable i by one and we alert the text. Note how we can now use the variable i to get the correct index from our array Once we have finished the block of code, we check if i is less than mptstudents.length or is 1 < 31 It is true again! So we increase the value of i by 1 and repeat the block of code Now we check if 2 < 31... and we repeat these steps until this is false i.e 31 < 31

Important Links JavaScript Array: https://www.w3schools.com/js/js_arrays.asp JavaScript for loops: https://www.w3schools.com/js/js_loop_for.asp