Web GUI Development CSE5544
|
|
- Calvin Park
- 5 years ago
- Views:
Transcription
1 Web GUI Development CSE5544
2 Background We will focus on the client-side. Client-side: HTML, CSS (Bootstrap, etc.), JavaScript (jquery, D3, etc.), and so on. Server-side: PHP, ASP.Net, Python, and nearly any language (C++, C#, Java, etc.) HTML Structure/Content CSS Presentation/Style JavaScript Behavior
3 Outline Recall HTML+CSS Basic (warm-up). HTML element, attribute, style, selector (type, id, class). HTML+CSS for Web GUI. HTML layout and commonly used elements. Bootstrap (HTML+CSS framework with design template). JavaScript to make Web GUI (HTML pages) dynamic and interactive. JavaScript basic: function, array, object, etc. HTML JavaScript DOM: manipulate HTML contents. jquery: JS library to simplify HTML contents manipulation and so. D3: JS library to visualize data using HTML+SVG+CSS.
4 HTML Element HTML (Hyper Text Markup Language) is the standard markup language for creating Web pages. HTML describes the structure of Web pages. HTML elements are the building blocks of HTML pages, and are represented by tags (to render page contents by your browsers). W3C recommends lowercase in HTML, and demands lowercase for stricter document types like XHTML.
5 HTML Attribute Attributes provide additional information about HTML elements, e.g., define the characteristics of an HTML element. Attributes are always specified in the start (opening) tag. Attributes usually come in name/value pairs, e.g., name="value. Both double quotes (more common) and single quotes around attribute values can be used. In case attribute value itself contains double quotes, it is necessary to use single quotes.
6 HTML Attribute cont. The four core attributes that can be used on the majority of HTML elements (although not all): id: uniquely identify any element within an HTML page. title: provide additional "tool-tip" information. class: associate an element with a style sheet, and specify the class of element. style: specify the styling (like color, font, size, etc.) within the element. We will revisit these attributes soon later. style: inline css styles. class and id: HTML selector.
7 CSS Style CSS (Cascading Style Sheets) describes how HTML elements are to be displayed, e.g., layouts, colors, fonts, etc. CSS can control the style of multiple elements, pages, or sites all at once. The separation of HTML from CSS can save a lot of work. CSS can be associated with HTML elements in 3 ways: External - by using an external CSS file Internal - by using a <style> element in the <head> section Inline - by using the style attribute in HTML elements
8 CSS Style cont. 2 Internal 1 External <head> <style> h1 {color: blue;} #head1 {color: blue;}.head1 {color: blue;} </style> </head> <body> <h1>this is a heading</h1> </body> 3 Inline <head> <link rel="stylesheet" href="styles.css"> </head> <h1 style="color:blue;">this is a Blue Heading</h1>
9 HTML Class The class is an important attribute of HTML elements. Elements with the same class can have equal styles. The class name can be used (by CSS and JavaScript) to perform certain tasks for a group of elements with the specified class name. Notice the dot (.) prefixing the class name. This distinguishes class selectors from the type selectors and ID selectors. Class selector Type selector ID selector
10 HTML ID The id attribute specifies a unique id for an HTML element (the value must be unique within the HTML document). The id value can be used (by CSS and JavaScript) to perform certain tasks for a unique element with the specified id value. Notice the hash character (#) prefixing the ID value. This distinguishes ID selectors from the type selectors and class selectors. ID selector Type selector Class selector
11 More Descendant selectors Target only those elements that are inside of another element. For example, only phrases (<em>) in paragraphs of a class of.synopsis Note you can nest descendant selectors as deep as you want, but life gets confusing if too much..synopsis em { font-style: normal; } Pseudo classes Mainly for links and buttons. For example - :link :visited :hover :active a:hover { color: aqua; text-decoration: underline; }
12 And More CSS Specificity Specificity: which rules take precedence in CSS when several rules could be applied to the same element. Order matters for css rules: top-to-bottom and can result in overriding. Some selectors will override other ones. For instance, ID selectors have higher specificity than class selectors. CSS Cascade Generally, web-standard browsers will rank a style s significance in this order:
13 HTML Layout Design your HTML pages and arrange the contents. Websites often display contents in multiple columns (like a magazine or newspaper). HTML layout techniques to create multicolumn layouts, e.g., HTML tables (unrecommended), CSS float, CSS flexbox/grid (new), CSS framework (Bootstrap)
14 HTML Layout cont. Some web GUI design patterns (for your reference).
15 (Useful) HTML Elements (1) The <input> element indicates an input field where the user can enter data. Note that the <input> tag has no end tag in HTML. The <input> element can be displayed in several ways, depending on the type attribute. Syntax: <input type="value"> A one-line text input field Radio buttons let a user select ONE of a limited number of choices Checkboxes let a user select one or more options of a limited number of choices A clickable button (mostly used to activate a JavaScript script) First name: <input type="text" name="firstname value="mickey"><br> Last name: <input type="text" name="lastname"> <input type="radio" name="gender" value="male"> Male<br> <input type="radio" name="gender" value="female checked> Female<br> <input type="radio" name="gender" value="other"> Other <input type="checkbox" name="vehicle1" value="bike" checked> I have a bike<br> <input type="checkbox" name="vehicle2" value="car"> I have a car<br> <input type="checkbox" name="vehicle3" value="boat" checked> I have a boat<br> <input type="button" value="click me" onclick="msg()"> <script> function msg() { alert("hello world!"); } Will address the JavaScript part later </script>
16 HTML Elements (2) More attribute values for <input type="value"> color a color picker date (or datetime-local) - date control (year, month, day) file - a file-select field and a browse" button (for file uploads) - a field for an address password - a password field number - a field for entering a number (you can also set restrictions on what numbers are accepted) range - a range control (like a slider control) hidden - a hidden field (not visible to a user) submit - a submit button (submit the form data to a form-handler) reset - a reset button (reset all form values to default values) Notes about forms and PHP: The HTML <form> element defines a form that is used to collect user input. The form data can be submitted to a form-handler, which is typically a server page (e.g., PHP) with a script for processing input data. PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is generally used to collect form data, control user access, approach and manipulate files on the server and data in the database, generate dynamic page contents, etc. We won t go into PHP here, but you are welcome to explore more! If you click the "Submit" button, the form-data will be sent to a page called "/action_page.php"
17 HTML Elements (3) The <select> element defines a drop-down list; and the <option> element defines an option that can be selected. One or multiple options can be selected. <select name="cars"> <option value="volvo">volvo</option> <option value="saab" selected>saab</option> <option value="fiat">fiat</option> <option value="audi">audi</option> </select> <select name="cars" size="5" multiple> <option value="volvo selected>volvo</option> <option value="saab" selected>saab</option> <option value="fiat">fiat</option> <option value="audi">audi</option> </select> The <textarea> element defines a multi-line input field (a text area). <textarea name="message" rows="5" cols="30">the cat was playing in the garden. His name is Pipi, and he is in grey and white. He is naughty, fluffy, and warm!</textarea> rows=5 size=5 The <button> element defines a clickable button (similar usage with <input type= button">). <button type="button" onclick="msg()">click Me</button> <script> function msg() { alert("hello world!"); } </script> OR <button type="button" onclick="alert('hello World!')">Click Me</button> cols=30
18 Bootstrap to make HTML+CSS easier Bootstrap is the most popular HTML and CSS (and JavaScript) framework for developing responsive websites. Bootstrap makes your front-end web development easier and faster.
19 Bootstrap Features HTML and CSS based design templates for grid (layout), typography, forms, buttons, tables, navigation, modals, image carousels and many other, as well as optional JavaScript plugins.
20 HTML JavaScript JavaScript (JS) makes HTML pages more dynamic and interactive. Common uses include image manipulation, form validation, and dynamic changes of content. Specifically, we will use JS to: change/add/remove HTML elements change HTML attributes change HTML styles react to (or create new) HTML events I am a dynamic gif! Please turn on the Slide Show mode
21 Where to put In HTML, JavaScript code must be inserted between <script> and </script> tags. You can place any number of scripts in an HTML document. Scripts can be placed in the <body>, in the <head>, or in both. <script> function myfunction() { document.getelementbyid("demo").innerhtml = "Paragraph changed."; } </script> Scripts can also be placed in external files (.js), which can easy the readability and maintenance, and speed up page loads. <script src="myscript.js"></script> document.getelementbyid() is a useful function in JS, we will address it later.
22 What you may know JavaScript basic, e.g., syntax, operation, statement/keyword (especially condition and loop), variable, data type (especially string, array, and object), function, event, etc. Functions: block of code designed to perform a particular task, and is executed when "something" invokes it (calls it). Objects: variables that can contain many properties (values). Arrays: used to store multiple values in a single variable. Useful JS Array Methods join, push/pop, shift, splice, concat, slice, sort, foreach, map, filter, reduce, every, some, indexof, find, includes, etc.
23 HTML JS DOM The W3C Document Object Model (DOM) is a platform and languageneutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document. We will work on HTML DOM - standard model for HTML documents. The HTML DOM is a standard for how to get, change, add, or delete HTML elements. HTML elements are objects with associated properties (get/set values), methods (perform actions), and events.
24 HTML DOM Element The HTML DOM Document Object represents your web page. If you want to access any element in an HTML page, you always start with accessing the document object. This is a method The most common way to access an HTML element is to use the id of the element This is a property The easiest way to get the content of an element is by using the innerhtml property This is an event
25 Find Element(s) The getelementsbytagname() and getelementsbyclassname() methods return an HTMLCollection object. An HTMLCollection object is an array-like list of HTML elements. You can loop through the list and refer to the elements with a number (just like an array). But you cannot use array methods like valueof(), pop(), push(), or join() on an HTMLCollection. Finding HTML elements by id value - the easiest way to find an element. var apple = document.getelementbyid( apple ); Finding HTML elements by class name - all elements with the same class name. var fruit = document.getelementsbyclassname( fruit ); Finding HTML elements by tag name (type) - all elements with the same tag. var all = document.getelementsbytagname( p ); Apple Orange Cookie
26 Find Element(s) cont. Finding HTML elements by CSS selectors - all elements that matches a specified CSS selector (id, class names, types, attributes, values of attributes, etc.) Finding HTML elements by HTML object collections all element from: head, title, script, body, form, etc. Apple Apple Donald Duck Submit
27 Change Element Contents The HTML DOM allows JavaScript to change the content of HTML elements. The easiest way to modify the content of an HTML element is by using the innerhtml property: document.getelementbyid(id).innerhtml = new HTML <p id="p1">hello World!</p> <script> document.getelementbyid("p1").innerhtml = "New text!"; </script> Change the value of an HTML attribute. document.getelementbyid(id).attribute = new value <p id="p1" title="old Title">The title Attribute</p> <img id="myimage" src="smiley.gif"> <script> document.getelementbyid("p1").title = "New Title"; document.getelementbyid("myimage").src = "landscape.jpg"; </script> Old Title New Title
28 Change Element Styles The HTML DOM allows JavaScript to change the style of HTML elements. document.getelementbyid(id).style.property = new style <p id="p1">hello World!</p> <script> document.getelementbyid("p1").style.color = "blue"; document.getelementbyid("p1").style.fontsize = "larger"; document.getelementbyid("p1").style.fontfamily = "Arial"; document.getelementbyid("p1").style.fontweight = "bold"; document.getelementbyid("p1").style.fontstyle = "italic"; </script> <svg width="200" height="100"> <circle id="c1" class="mycircle" cx="50" cy="50" style="r:40; stroke:green; stroke-width:4; fill:yellow;" /> <circle id="c2" class="mycircle" cx="150" cy="50" style="r:40; stroke:green; stroke-width:4; fill:yellow;" /> </svg> <script> document.getelementbyid("c1").style.fill = "green"; </script> Hello World! Hello World!
29 Add/Remove Element(s) Recall HTML DOM An element node can be a <title>, <div>, <h1>, <p>, <a>, etc. To add text, an element node can have a text node. To add a new element to the HTML DOM, you must create the element (element node) first, and then append it to an existing element. <div id="div1"> <p id="p1">this is a paragraph.</p> <p id="p2">this is another paragraph.</p> </div> <script> var para = document.createelement("p"); var node = document.createtextnode("this is new."); para.appendchild(node); var element = document.getelementbyid("div1"); element.appendchild(para); </script> To remove an HTML element, you must know the parent of the element: <div id="div1"> <p id="p1">this is a paragraph.</p> <p id="p2">this is another paragraph.</p> </div> <script> var parent = document.getelementbyid("div1"); var child = document.getelementbyid("p1"); parent.removechild(child); </script>
30 More Examples in Practice We can obtain user inputs in these ways (and many other ways), and manipulate the HTML contents accordingly, for example, display information related to user queries. Get/Set text inputs Get selected radio button Get checked boxes
31 JavaScript Events A JavaScript can be executed when an event occurs. For example, When a user clicks on (or mouseover) an HTML element, When a web page (or an image) has loaded, When an input field is changed, When an HTML form is submitted, etc. To execute JavaScript code when an event occurs, we need to add JavaScript code to an HTML event attribute. For example, <button onclick="displaydate()">try it</button> <h1 onclick="this.innerhtml = 'Ooops!'">Click on this text!</h1> <div onmouseover="mover(this)" onmouseout="mout(this)">mouse Over Me</div> <div onmousedown="mdown(this)" onmouseup="mup(this)"click Me</div> <body onload="checkcookies()"> <input type="text" id="fname" onchange="uppercase()"> You can either capsulate the script for implementation in a function (and trigger the function), or elaborate the script in the event attribute.
32 JavaScript Events cont. Click Events onclick - When button is clicked ondblclick - When a text is double-clicked Input Events onblur - When a user leaves an input field onchange - When a user changes the content of an input field onchange - When a user selects a dropdown value onfocus - When an input field gets focus onselect - When input text is selected onsubmit - When a user clicks the submit button onreset - When a user clicks the reset button onkeydown - When a user is pressing/holding down a key onkeypress - When a user is pressing/holding down a key onkeyup - When the user releases a key onkeyup - When the user releases a key onkeydown vs onkeyup - Both Mouse Events onmouseover/onmouseout - When the mouse passes over an element onmousedown/onmouseup - When pressing/releasing a mouse button onmousedown - When mouse is clicked: Alert which element onmousedown - When mouse is clicked: Alert which button onmousemove/onmouseout - When moving the mouse pointer over/out of an image onmouseover/onmouseout - When moving the mouse over/out of an image onmouseover an image map Load Events onload - When the page has been loaded onload - When an image has been loaded onerror - When an error occurs when loading an image onunload - When the browser closes the document onresize - When the browser window is resized Others What is the keycode of the key pressed? What are the coordinates of the cursor? What are the coordinates of the cursor, relative to the screen? Was the shift key pressed? Which event type occurred?
33 JavaScript Animations JavaScript animations are done by programming gradual changes in an element's style. The changes are called by a timer. When the timer interval is small, the animation looks continuous. The red square will move from the top-left to the bottom-right
34 jquery jquery is a JavaScript library designed to simplify the client-side scripting of HTML. jquery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code. jquery's syntax is designed to make it easier to navigate a document, manipulate DOM elements, manipulate CSS, handle events, createanimations, and so on.
35 jquery a quick example <script src="
36 jquery Syntax and Selectors The jquery syntax is tailor-made for selecting HTML elements and performing some action on the element(s). Basic syntax is: $(selector).action() jquery methods shall be inside a document ready event to prevent any jquery code from running before the document is finished loading (is ready). $(document).ready(function(){ // jquery methods go here...}); jquery selectors allow you to select and manipulate HTML element(s) - based on their name, id, classes, types, attributes, values of attributes, etc. It's based on the existing CSS selectors, and in addition, it has some own custom selectors. $(document).ready(function(){ $("button").click(function(){ $("p").hide(); //$("#test").hide(); //$(".test").hide(); }); });
37 jquery Events jquery is tailor-made to respond to events in an HTML page. An event represents the precise moment when something happens. For example, moving a mouse over an element clicking on an element selecting a radio button Commonly used jquery event methods click() and dblclick() double click mouseenter(), mouseleave(), mousedown(), mouseup() hover(), focus(), blur() on() - attaches one or more event handlers for the selected elements And more: touch keyboards, touch SVG elements, touch blank space, etc. $("p").on({ mouseenter: function(){ $(this).css("background-color", "lightgray"); }, mouseleave: function(){ $(this).css("background-color", "lightblue"); }, click: function(){ $(this).css("background-color", "yellow"); } });
38 jquery Effects Hide and show HTML elements with the hide() and show() methods. Fade elements in and out of visibility with fadein(), fadeout(), fadetoggle(), and fadeto(). Slide elements up and down with slidedown(), slideup(), and slidetoggle(). Create custom animations with animate() and stop(). $(selector).animate({params},speed,callback); A callback function is executed after the current effect is 100% finished. Chain together actions/methods, thus run multiple jquery methods (on the same element) within a single statement. For example, $("#p1").css("color", "red").slideup(2000).slidedown(2000);
39 Some Resources W3School: Bootstrap: jquery: D3: dat.gui: CodePen:
WELCOME TO JQUERY PROGRAMMING LANGUAGE ONLINE TUTORIAL
WELCOME TO JQUERY PROGRAMMING LANGUAGE ONLINE TUTORIAL 1 The above website template represents the HTML/CSS previous studio project we have been working on. Today s lesson will focus on JQUERY programming
More informationTizen Web UI Technologies (Tizen Ver. 2.3)
Tizen Web UI Technologies (Tizen Ver. 2.3) Spring 2015 Soo Dong Kim, Ph.D. Professor, Department of Computer Science Software Engineering Laboratory Soongsil University Office 02-820-0909 Mobile 010-7392-2220
More informationHTML Form. Kanida Sinmai
HTML Form Kanida Sinmai ksinmai@tsu.ac.th http://mis.csit.sci.tsu.ac.th/kanida HTML Form HTML forms are used to collect user input. The element defines an HTML form: . form elements. Form
More informationIntroduction to. Maurizio Tesconi May 13, 2015
Introduction to Maurizio Tesconi May 13, 2015 What is? Most popular, cross- browser JavaScript library Focusing on making client- side scripcng of HTML simpler Open- source, first released in 2006 Current
More informationof numbers, converting into strings, of objects creating, sorting, scrolling images using, sorting, elements of object
Index Symbols * symbol, in regular expressions, 305 ^ symbol, in regular expressions, 305 $ symbol, in regular expressions, 305 $() function, 3 icon for collapsible items, 275 > selector, 282, 375 + icon
More informationINLEDANDE WEBBPROGRAMMERING MED JAVASCRIPT INTRODUCTION TO WEB PROGRAMING USING JAVASCRIPT
INLEDANDE WEBBPROGRAMMERING MED JAVASCRIPT INTRODUCTION TO WEB PROGRAMING USING JAVASCRIPT ME152A L4: 1. HIGHER ORDER FUNCTIONS 2. REGULAR EXPRESSIONS 3. JAVASCRIPT - HTML 4. DOM AND EVENTS OUTLINE What
More informationPHP / MYSQL DURATION: 2 MONTHS
PHP / MYSQL HTML Introduction of Web Technology History of HTML HTML Editors HTML Doctypes HTML Heads and Basics HTML Comments HTML Formatting HTML Fonts, styles HTML links and images HTML Blocks and Layout
More informationCSC 337. jquery Rick Mercer
CSC 337 jquery Rick Mercer What is jquery? jquery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.
More informationProgrammazione Web a.a. 2017/2018 HTML5
Programmazione Web a.a. 2017/2018 HTML5 PhD Ing.Antonino Raucea antonino.raucea@dieei.unict.it 1 Introduzione HTML HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text
More informationLECTURE-3. Exceptions JS Events. CS3101: Programming Languages: Javascript Ramana Isukapalli
LECTURE-3 Exceptions JS Events 1 EXCEPTIONS Syntax and usage Similar to Java/C++ exception handling try { // your code here catch (excptn) { // handle error // optional throw 2 EXCEPTIONS EXAMPLE
More information729G26 Interaction Programming. Lecture 4
729G26 Interaction Programming Lecture 4 Lecture overview jquery - write less, do more Capturing events using jquery Manipulating the DOM, attributes and content with jquery Animation with jquery Describing
More informationWebomania Solutions Pvt. Ltd. 2017
Introduction JQuery is a lightweight, write less do more, and JavaScript library. The purpose of JQuery is to make it much easier to use JavaScript on the website. JQuery takes a lot of common tasks that
More informationChapter 9 Introducing JQuery
Chapter 9 Introducing JQuery JQuery is a JavaScript library, designed to make writing JavaScript simpler and so it is useful for managing inputs and interactions with a page visitor, changing the way a
More informationCMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB
CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB Unit 8 HTML Forms and Basic CGI Slides based on course material SFU Icons their respective owners 1 Learning Objectives In this unit you will
More informationIntroduction to DHTML
Introduction to DHTML HTML is based on thinking of a web page like a printed page: a document that is rendered once and that is static once rendered. The idea behind Dynamic HTML (DHTML), however, is to
More informationJavascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010
Lecture 22 Javascript Announcements Homework#7 now due 11/24 at noon Reminder: beginning with Homework #7, Javascript assignments must be submitted using a format described in an attachment to HW#7 I will
More informationHTML User Interface Controls. Interactive HTML user interfaces. Document Object Model (DOM)
Page 1 HTML User Interface Controls CSE 190 M (Web Programming), Spring 2007 University of Washington Reading: Sebesta Ch. 5 sections 5.1-5.7.2, Ch. 2 sections 2.9-2.9.4 Interactive HTML user interfaces
More informationQ1. What is JavaScript?
Q1. What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight programming language JavaScript is usually embedded
More informationjquery Lecture 34 Robb T. Koether Wed, Apr 10, 2013 Hampden-Sydney College Robb T. Koether (Hampden-Sydney College) jquery Wed, Apr 10, / 29
jquery Lecture 34 Robb T. Koether Hampden-Sydney College Wed, Apr 10, 2013 Robb T. Koether (Hampden-Sydney College) jquery Wed, Apr 10, 2013 1 / 29 1 jquery 2 jquery Selectors 3 jquery Effects 4 jquery
More informationHTML5 and CSS3 The jquery Library Page 1
HTML5 and CSS3 The jquery Library Page 1 1 HTML5 and CSS3 THE JQUERY LIBRARY 8 4 5 7 10 11 12 jquery1.htm Browser Compatibility jquery should work on all browsers The solution to cross-browser issues is
More informationWeb Designing Course
Web Designing Course Course Summary: HTML, CSS, JavaScript, jquery, Bootstrap, GIMP Tool Course Duration: Approx. 30 hrs. Pre-requisites: Familiarity with any of the coding languages like C/C++, Java etc.
More informationWant to add cool effects like rollovers and pop-up windows?
Chapter 10 Adding Interactivity with Behaviors In This Chapter Adding behaviors to your Web page Creating image rollovers Using the Swap Image behavior Launching a new browser window Editing your behaviors
More informationEvents: another simple example
Internet t Software Technologies Dynamic HTML part two IMCNE A.A. 2008/09 Gabriele Cecchetti Events: another simple example Every element on a web page has certain events which can trigger JavaScript functions.
More informationWeb 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 Plan for the next 5 weeks: Introduction to HTML tags, creating our template file Introduction to CSS and style
More informationPearson Education Limited Edinburgh Gate Harlow Essex CM20 2JE England and Associated Companies throughout the world
Pearson Education Limited Edinburgh Gate Harlow Essex CM20 2JE England and Associated Companies throughout the world Visit us on the World Wide Web at: www.pearsoned.co.uk Pearson Education Limited 2014
More informationWeb Designing HTML (Hypertext Markup Language) Introduction What is World Wide Web (WWW)? What is Web browser? What is Protocol? What is HTTP? What is Client-side scripting and types of Client side scripting?
More informationCSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax
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 External Style Sheets can save a lot of work External Style Sheets
More informationUI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML
UI Course (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) HTML: Introduction The World Wide Web (WWW) and history of HTML Hypertext and Hypertext Markup Language Why HTML Prerequisites Objective
More information710 Index Attributes, 127 action attribute, 263 assigning, bottom attribute, domain name attribute, 481 expiration date attribute, 480 8
INDEX Symbols = (assignment operator), 56 \ (backslash), 33 \b (backspace), 33 \" (double quotation mark), 32 \e (escape), 33 \f (form feed), 33
More informationLECTURE-2. Functions review HTML Forms. Arrays Exceptions Events. CS3101: Scripting Languages: Javascript Ramana Isukapalli
LECTURE-2 Functions review HTML Forms Arrays Exceptions Events 1 JAVASCRIPT FUNCTIONS, REVIEW Syntax function (params) { // code Note: Parameters do NOT have variable type. 1. Recall: Function
More informationFundamentals of Website Development
Fundamentals of Website Development CSC 2320, Fall 2015 The Department of Computer Science Events handler Element with attribute onclick. Onclick with call function Function defined in your script or library.
More informationPHP,HTML5, CSS3, JQUERY SYLLABUS
PHP,HTML5, CSS3, JQUERY SYLLABUS AAvhdvchdvchdvhdh HTML HTML - Introduction HTML - Elements HTML - Tags HTML - Text HTML - Formatting HTML - Pre HTML - Attributes HTML - Font HTML - Text Links HTML - Comments
More informationLecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes
Course Title Course Code WEB DESIGNING TECHNOLOGIES DCE311 Lecture : 3 Course Credit Practical : Tutorial : 0 Total : 5 Course Learning Outcomes At end of the course, students will be able to: Understand
More informationJavaScript and XHTML. Prof. D. Krupesha, PESIT, Bangalore
JavaScript and XHTML Prof. D. Krupesha, PESIT, Bangalore Why is JavaScript Important? It is simple and lots of scripts available in public domain and easy to use. It is used for client-side scripting.
More informationIS 242 Web Application Development I
IS 242 Web Application Development I Lecture 11: Introduction to JavaScript (Part 4) Marwah Alaofi Outlines of today s lecture Events Assigning events using DOM Dom nodes Browser Object Model (BOM) 2 Event
More informationjquery Tutorial for Beginners: Nothing But the Goods
jquery Tutorial for Beginners: Nothing But the Goods Not too long ago I wrote an article for Six Revisions called Getting Started with jquery that covered some important things (concept-wise) that beginning
More informationWebsite Development with HTML5, CSS and Bootstrap
Contact Us 978.250.4983 Website Development with HTML5, CSS and Bootstrap Duration: 28 hours Prerequisites: Basic personal computer skills and basic Internet knowledge. Course Description: This hands on
More informationIntroduction to using HTML to design webpages
Introduction to using HTML to design webpages #HTML is the script that web pages are written in. It describes the content and structure of a web page so that a browser is able to interpret and render the
More informationWeb Publishing with HTML
Web Publishing with HTML MSc Induction Tutorials Athena Eftychiou PhD Student Department of Computing 1 Objectives Provide a foundation on Web Publishing by introducing basic notations and techniques like
More informationSEEM4570 System Design and Implementation Lecture 04 jquery
SEEM4570 System Design and Implementation Lecture 04 jquery jquery! jquery is a JavaScript Framework.! It is lightweight.! jquery takes a lot of common tasks that requires many lines of JavaScript code
More informationJavaScript Handling Events Page 1
JavaScript Handling Events Page 1 1 2 3 4 5 6 7 8 Handling Events JavaScript JavaScript Events (Page 1) An HTML event is something interesting that happens to an HTML element Can include: Web document
More informationWeb Designing HTML5 NOTES
Web Designing HTML5 NOTES HTML Introduction What is HTML? HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text Markup Language HTML describes the structure of Web pages
More informationNew Perspectives on Creating Web Pages with HTML. Tutorial Objectives
New Perspectives on Creating Web Pages with HTML Tutorial 9: Working with JavaScript Objects and Events 1 Tutorial Objectives Learn about form validation Study the object-based nature of the JavaScript
More informationCOMP519 Web Programming Lecture 16: JavaScript (Part 7) Handouts
COMP519 Web Programming Lecture 16: JavaScript (Part 7) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool
More informationCISH-6510 Web Application Design and Development. Overview of JavaScript. Overview
CISH-6510 Web Application Design and Development Overview of JavaScript Overview What is JavaScript? History Uses of JavaScript Location of Code Simple Alert Example Events Events Example Color Example
More informationSpring 2014 Interim. HTML forms
HTML forms Forms are used very often when the user needs to provide information to the web server: Entering keywords in a search box Placing an order Subscribing to a mailing list Posting a comment Filling
More informationPhoto from DOM
Photo from http://www.flickr.com/photos/emraya/2861149369/ DOM 2 DOM When a browser reads an HTML file, it must interpret the file and render it onscreen. This process is sophisticated. Fetch Parse Flow
More informationWeb Design. Lecture 7. Instructor : Cristina Mîndruță Site : https://sites.google.com/site/webdescm. Cristina Mindruta - Web Design
Web Design Lecture 7 Instructor : Cristina Mîndruță Site : https://sites.google.com/site/webdescm Select HTML elements in JavaScript Element objects are selected by a). id, b). type, c). class, d). shortcut
More informationHTML5, CSS3, JQUERY SYLLABUS
HTML5, CSS3, JQUERY SYLLABUS AAvhdvchdvchdvhdh HTML HTML - Introduction HTML - Elements HTML - Tags HTML - Text HTML - Formatting HTML - Pre HTML - Attributes HTML - Font HTML - Text Links HTML - Comments
More informationWeb Development. With PHP. Web Development With PHP
Web Development With PHP Web Development With PHP We deliver all our courses as Corporate Training as well if you are a group interested in the course, this option may be more advantageous for you. 8983002500/8149046285
More informationDOM Primer Part 2. Contents
DOM Primer Part 2 Contents 1. Event Programming 1.1 Event handlers 1.2 Event types 1.3 Structure modification 2. Forms 2.1 Introduction 2.2 Scripting interface to input elements 2.2.1 Form elements 2.2.2
More informationCS7026. Introduction to jquery
CS7026 Introduction to jquery What is jquery? jquery is a cross-browser JavaScript Library. A JavaScript library is a library of pre-written JavaScript which allows for easier development of JavaScript-based
More informationHTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week
WEB DESIGNING HTML HTML - Introduction HTML - Elements HTML - Tags HTML - Text HTML - Formatting HTML - Pre HTML - Attributes HTML - Font HTML - Text Links HTML - Comments HTML - Lists HTML - Images HTML
More informationJAVASCRIPT BASICS. Handling Events In JavaScript. In programing, event-driven programming could be a programming
Handling s In JavaScript In programing, event-driven programming could be a programming paradigm during which the flow of the program is set by events like user actions (mouse clicks, key presses), sensor
More informationWeb Site Development with HTML/JavaScrip
Hands-On Web Site Development with HTML/JavaScrip Course Description This Hands-On Web programming course provides a thorough introduction to implementing a full-featured Web site on the Internet or corporate
More informationSkyway Builder Web Control Guide
Skyway Builder Web Control Guide 6.3.0.0-07/21/2009 Skyway Software Skyway Builder Web Control Guide: 6.3.0.0-07/21/2009 Skyway Software Published Copyright 2009 Skyway Software Abstract TBD Table of
More informationHTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web
HTML & CSS SWE 432, Fall 2017 Design and Implementation of Software for the Web HTML: HyperText Markup Language LaToza Language for describing structure of a document Denotes hierarchy of elements What
More informationCE212 Web Application Programming Part 2
CE212 Web Application Programming Part 2 22/01/2018 CE212 Part 2 1 JavaScript Event-Handlers 1 JavaScript may be invoked to handle input events on HTML pages, e.g.
More information8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) What is JavaScript?
Web Development & Design Foundations with HTML5 Ninth Edition Chapter 14 A Brief Look at JavaScript and jquery Slides in this presentation contain hyperlinks. JAWS users should be able to get a list of
More informationBIM222 Internet Programming
BIM222 Internet Programming Week 7 Cascading Style Sheets (CSS) Adding Style to your Pages Part II March 20, 2018 Review: What is CSS? CSS stands for Cascading Style Sheets CSS describes how HTML elements
More informationUI development for the Web.! slides by Anastasia Bezerianos
UI development for the Web slides by Anastasia Bezerianos Divide and conquer A webpage relies on three components: Content HTML text, images, animations, videos, etc Presentation CSS how it will appear
More informationClient vs Server Scripting
Client vs Server Scripting PHP is a server side scripting method. Why might server side scripting not be a good idea? What is a solution? We could try having the user download scripts that run on their
More informationPlace User-Defined Functions in the HEAD Section
JavaScript Functions Notes (Modified from: w3schools.com) A function is a block of code that will be executed when "someone" calls it. In JavaScript, we can define our own functions, called user-defined
More informationData Visualization (CIS 468)
Data Visualization (CIS 468) Web Programming Dr. David Koop Languages of the Web HTML CSS SVG JavaScript - Versions of Javascript: ES6/ES2015, ES2017 - Specific frameworks: react, jquery, bootstrap, D3
More informationWeb Development & Design Foundations with HTML5
1 Web Development & Design Foundations with HTML5 CHAPTER 14 A BRIEF LOOK AT JAVASCRIPT Copyright Terry Felke-Morris 2 Learning Outcomes In this chapter, you will learn how to: Describe common uses of
More informationTable Basics. The structure of an table
TABLE -FRAMESET Table Basics A table is a grid of rows and columns that intersect to form cells. Two different types of cells exist: Table cell that contains data, is created with the A cell that
More informationUsing JavaScript for Client-Side Behavior
for Client-Side Behavior Internet Applications, ID1354 1 / 93 Contents The Document Object Model, The Browser Object Model, The JavaScript Library The JavaScript Framework 2 / 93 Section The Document Object
More informationE ECMAScript, 21 elements collection, HTML, 30 31, 31. Index 161
A element, 108 accessing objects within HTML, using JavaScript, 27 28, 28 activatediv()/deactivatediv(), 114 115, 115 ActiveXObject, AJAX and, 132, 140 adding information to page dynamically, 30, 30,
More informationCOPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xi Introduction xxiii Chapter 1: Creating Structured Documents 1 A Web of Structured Documents 1 Introducing XHTML 2 Core Elements and Attributes 9 The
More informationCSS: Cascading Style Sheets
What are Style Sheets CSS: Cascading Style Sheets Representation and Management of Data on the Internet, CS Department, Hebrew University, 2007 A style sheet is a mechanism that allows to specify how HTML
More informationHTML and CSS COURSE SYLLABUS
HTML and CSS COURSE SYLLABUS Overview: HTML and CSS go hand in hand for developing flexible, attractively and user friendly websites. HTML (Hyper Text Markup Language) is used to show content on the page
More informationWEB DESIGNING CURRICULUM
WEB DESIGNING CURRICULUM Introduction to Web Technologies Careers in Web Technologies and Job Roles How the Website Works? Client and Server Scripting Languages Difference between a Web Designer and Web
More informationWeb Programming and Design. MPT Senior Cycle Tutor: Tamara Week 2
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 informationSession 17. jquery. jquery Reading & References
Session 17 jquery 1 Tutorials jquery Reading & References http://learn.jquery.com/about-jquery/how-jquery-works/ http://www.tutorialspoint.com/jquery/ http://www.referencedesigner.com/tutorials/jquery/jq_1.php
More informationOutline. Lecture 4: Document Object Model (DOM) What is DOM Traversal and Modification Events and Event Handling
Outline Lecture 4: Document Object Model (DOM) What is DOM Traversal and Modification Events and Event Handling Wendy Liu CSC309F Fall 2007 1 2 Document Object Model (DOM) An defined application programming
More informationThe course also includes an overview of some of the most popular frameworks that you will most likely encounter in your real work environments.
Web Development WEB101: Web Development Fundamentals using HTML, CSS and JavaScript $2,495.00 5 Days Replay Class Recordings included with this course Upcoming Dates Course Description This 5-day instructor-led
More informationStudent, Perfect Final Exam May 25, 2006 ID: Exam No CS-081/Vickery Page 1 of 6
Student, Perfect Final Exam May 25, 2006 ID: 9999. Exam No. 3193 CS-081/Vickery Page 1 of 6 NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives aid on
More informationSections and Articles
Advanced PHP Framework Codeigniter Modules HTML Topics Introduction to HTML5 Laying out a Page with HTML5 Page Structure- New HTML5 Structural Tags- Page Simplification HTML5 - How We Got Here 1.The Problems
More informationJQuery. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010
Lecture 23 JQuery Announcements HW#8 posted, due 12/3 HW#9 posted, due 12/10 HW#10 will be a survey due 12/14 Yariv will give Thursday lecture on privacy, security Yes, it will be on the exam! 1 Project
More informationNEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS
NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS LESSON 1 GETTING STARTED Before We Get Started; Pre requisites; The Notepad++ Text Editor; Download Chrome, Firefox, Opera, & Safari Browsers; The
More informationAn Brief Introduction to a web browser's Document Object Model (DOM) Lecture 20 COMP110 Spring 2018
An Brief Introduction to a web browser's Document Object Model (DOM) Lecture 20 COMP110 Spring 2018 Final Exams We will split up across this room and another. I will let you know when your assigned building
More informationCSS Selectors. element selectors. .class selectors. #id selectors
CSS Selectors Patterns used to select elements to style. CSS selectors refer either to a class, an id, an HTML element, or some combination thereof, followed by a list of styling declarations. Selectors
More informationHTML Tables and. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar
HTML Tables and Forms Chapter 5 2017 Pearson http://www.funwebdev.com - 2 nd Ed. HTML Tables A grid of cells A table in HTML is created using the element Tables can be used to display: Many types
More informationWeb Engineering (Lecture 06) JavaScript part 2
Web Engineering (Lecture 06) JavaScript part 2 By: Mr. Sadiq Shah Lecturer (CS) Class BS(IT)-6 th semester JavaScript Events HTML events are "things" that happen to HTML elements. javascript lets you execute
More informationProgramming of web-based systems Introduction to HTML5
Programming of web-based systems Introduction to HTML5 Agenda 1. HTML5 as XML 2. Basic body elements 3. Text formatting and blocks 4. Tables 5. File paths 6. Head elements 7. Layout elements 8. Entities
More informationKey features. Nothing to do with java It is the Client-side scripting language Designed to add interactivity to HTML pages
Javascript Key features Nothing to do with java It is the Client-side scripting language Designed to add interactivity to HTML pages (DHTML): Event-driven programming model AJAX Great example: Google Maps
More informationMake a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1
Make a Website A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Overview Course outcome: You'll build four simple websites using web
More informationIndex LICENSED PRODUCT NOT FOR RESALE
Index LICENSED PRODUCT NOT FOR RESALE A Absolute positioning, 100 102 with multi-columns, 101 Accelerometer, 263 Access data, 225 227 Adding elements, 209 211 to display, 210 Animated boxes creation using
More informationUsing Dreamweaver CS6
6 So far we have used CSS to arrange the elements on our web page. We have also used CSS for some limited formatting. In this section we will take full advantage of using CSS to format our web site. Just
More informationHow to lay out a web page with CSS
Activity 2.6 guide How to lay out a web page with CSS You can use table design features in Adobe Dreamweaver CS4 to create a simple page layout. However, a more powerful technique is to use Cascading Style
More informationCOMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018)
COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018) RAMANA ISUKAPALLI RAMANA@CS.COLUMBIA.EDU 1 LECTURE-1 Course overview See http://www.cs.columbia.edu/~ramana Overview of HTML Formatting, headings,
More informationDeccansoft Software Services
Deccansoft Software Services (A Microsoft Learning Partner) HTML and CSS COURSE SYLLABUS Module 1: Web Programming Introduction In this module you will learn basic introduction to web development. Module
More informationCSS: The Basics CISC 282 September 20, 2014
CSS: The Basics CISC 282 September 20, 2014 Style Sheets System for defining a document's style Used in many contexts Desktop publishing Markup languages Cascading Style Sheets (CSS) Style sheets for HTML
More information<form>. input elements. </form>
CS 183 4/8/2010 A form is an area that can contain form elements. Form elements are elements that allow the user to enter information (like text fields, text area fields, drop-down menus, radio buttons,
More informationJavascript Hierarchy Objects Object Properties Methods Event Handlers. onload onunload onblur onfocus
Javascript Hierarchy Objects Object Properties Methods Event Handlers Window Frame Location History defaultstatus frames opener parent scroll self status top window defaultstatus frames opener parent scroll
More informationINFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS
INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS cristina gena dipartimento di informatica cgena@di.unito.it http://www.di.unito.it/~cgena/ materiale e info sul corso http://www.di.unito.it/~cgena/teaching.html
More informationjquery Basics jquery is a library of JavaScript functions which contains the following functions: HTML Element Selections
jquery Basics jquery is a library of JavaScript functions which contains the following functions: 1 - HTML element selections 2 - HTML element manipulation 3 - CSS manipulation 4 - HTML event functions
More informationProduced by. App Development & Modeling. BSc in Applied Computing. Eamonn de Leastar
App Development & Modeling BSc in Applied Computing Produced by Eamonn de Leastar (edeleastar@wit.ie) Department of Computing, Maths & Physics Waterford Institute of Technology http://www.wit.ie http://elearning.wit.ie
More informationCreating Web Pages with HTML-Level III Tutorials HTML 6.01
Creating Web Pages with HTML-Levell Tutorials HTML 1.01 Tutorial 1 Developing a Basic Web Page Create a Web Page for Stephen DuM's Chemistry Classes Tutorial 2 Adding Hypertext Links to a Web Page Developing
More informationStatic Webpage Development
Dear Student, Based upon your enquiry we are pleased to send you the course curriculum for PHP Given below is the brief description for the course you are looking for: - Static Webpage Development Introduction
More information