Emerging Applications and Platform#3: JavaScript Bina Ramamurthy 7/4/2015CSE651C, B. Ramamurthy1.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

HTML Basics Customizing your site using the basics of HTML.
Basic Principles for Web Design Source:
HTML popo.
Introduction to HTML & CSS
Web Development & Design Foundations with XHTML
Cascading Style Sheets (CSS). Cascading Style Sheets With the explosive growth of the World Wide Web, designers and programmers quickly explored and reached.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Emerging technology and Platform#3: JavaScript Bina Ramamurthy.
WeB application development
Cascading Style Sheets
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
HTML – A Brief introduction Title of page This is my first homepage. This text is bold  The first tag in your HTML document is. This tag tells your browser.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
HTML BASIC
Chapter 14 Introduction to HTML
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Basics of HTML.
Cascading Style Sheet. What is CSS? CSS stands for Cascading Style Sheets. CSS are a series of instruction that specify how markup elements should appear.
Creating a Simple Page: HTML Overview
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
Styles with Cascading Style Sheets (CSS) Web Design – Section 4-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
Javascript: More features B. Ramamurthy 7/4/2014B. Ramamurthy, CSE651C1.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
JavaScript Programming B.Ramamurthy 6/113/2014B. Ramamurthy CSE6511.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
Chapter 4 (through page 110) Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
HTML: Hyptertext Markup Language Doman’s Sections.
Week 1 – Beginners Content McAfee & Big Fish Games CoderDojo.
Project 2 Web Page Design Creating and Editing a Web Page Pages
 HTML is hypertext markup language. It is a way for people to display their information with more complex pictures and text displays. Before HTML, messages.
HTML Basics BCIS 3680 Enterprise Programming. Web Client/Server Architecture 2  Your browser (the client) requests a Web page from a remote computer.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer block.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
HTML Basic. What is HTML HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
Cascading Style Sheets
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer experience.
Cascading Style Sheets (CSS) EXPLORING COMPUTER SCIENCE – LESSON 3-5.
CHAPTER TWO HTML TAGS. 1.Basic HTML Tags 1.1 HTML: Hypertext Markup Language  HTML stands for Hypertext Markup Language.  It is the markup language.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
Introduction to HTML Dave Edsall IAGenWeb County Coordinator’s Conference June 30, 2007.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Styles with Cascading Style Sheets (CSS)
WEBSITE DESIGN Chp 1
Introduction to JavaScript
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
Presentation transcript:

Emerging Applications and Platform#3: JavaScript Bina Ramamurthy 7/4/2015CSE651C, B. Ramamurthy1

 We looked at two emerging platforms last week:  Emerging applications and platforms#1: Arduino  Emerging applications and platform#2: R-Studio  While Arduino is excellent for prototyping embedded systems, R-Studio is great for quickly setting up analytics and visualizing it.  Both have highly impactful and heavily used across many application domains.  We have introduced the topics and provided a fairly strong foundation for you to think about using it in your work as you see fit. Review of last week 7/4/2015CSE651C, B. Ramamurthy2

 K-means may result in different clusters based on the process and the starting point.  So you may want to test it by running it again with specified clusters.  In some cases (esp. large data) this may not be a problem; but in smaller data set it may be.  Be aware of this. (in the test too!) Review R-Studio K-means parameters 7/4/2015CSE651C, B. Ramamurthy3

 Finding the right value of K is critical for your decision making.  These are effective algorithms for big data  Also look at regression.php for test preparation on linear regressionhttp://easycalculation.com/statistics/learn- regression.php  Big data motivators:  “More data usually beats better algorithms”  Where algorithms fall short data can compensate. Review of K-NN 7/4/2015CSE651C, B. Ramamurthy4

 Javascript is a language of the web and for the web.  It is simple, easy to learn and at the same very powerful.  Javascript “engine” powers many emerging applications and platforms: See the “Javascript everywhere and the three amigos paper”Javascript everywhere and the three amigos paper  It is central to many visual UI (User interfaces): phones, mobiles devices, automobile panels…diagnostics  This is also nice way to ease into Android app development that we are going to learn in our next session  Thats why Javascript is our EAP #3 For Today Emerging Platform #3: Javascript 7/4/2015CSE651C, B. Ramamurthy5

 HTML5  HTML + CSS + Javascript a powerful web language  Variations; XHTML, DHTML  Very popular JS libraries:  D3.js (data driven documents) look at d3.org  jQuery.js: small, feature-rich animation,  JSON : javascript data interchange library.. Very popular ; for example twitter data can be retrieved in this format for easy extraction of data  Just like web services (WS), and REST API, Javascript API is getting very popular (E.g. Mongodb has very popular JS API)  JS libraries are equally popular among the rival tech giants Microsoft, Oracle, Amazon, IBM (see the references) Hmm…Javascript 7/4/2015CSE651C, B. Ramamurthy6

 We will limit ourselves to pure javascript (HTML5) for this course.  Once you get good foundation in this it is quite simple to include/link the js libraries and work with them.  Here is a very nice link to get started Getting started 7/4/2015CSE651C, B. Ramamurthy7

Basic Elements of 7/4/2015CSE651C, B. Ramamurthy8

 HTML (Hyper text markup language) file is the central component that provides the structure to a “page” or a “display”  The element of the page are structured using tags or markups.  HTML5 the newest standard includes cascading style sheets (css3) and javascript  CSS provides the style aspect to the elements specified by the html tags  Javascript provides the activities/operations/computations HTML5 7/4/2015CSE651C, B. Ramamurthy9

 Tags are words or abbreviations enclosed in angle brackets,  Many tags come in pairs  The second of the pair comes with a slash: CSE651 Emerging Platforms  A few tags are not paired; They do not have a matching ending tag  For those tags, the closing angle bracket > of the singleton tag is replaced by />  Examples: produces a horizontal line continues the text to the next HTML tags 7/4/2015CSE651C, B. Ramamurthy10

 Every Web page is composed of a head and a body  There are three HTML tags required for every Web page:  and enclose the head  and enclose the body  and to enclose those two parts  Lets try our first application. File type is.html Required Tags 7/4/2015CSE651C, B. Ramamurthy11

This is CSE651 This is HTML 7/4/2015CSE651C, B. Ramamurthy12

 Now change the body style to chocolate color by this command:   Save and reload the page  Every tag can have many style attributes like this: color, font, size, etc. Background color style 7/4/2015CSE651C, B. Ramamurthy13

 We added background color as a style to the page. Instead of creating on the html page itself we will separate all the style items into another file of type.css  We will also add a paragraph  We will use different colors for different items on the page. Lets add some style 7/4/2015CSE651C, B. Ramamurthy14

 body {background-color:#897867;}  h1 {background-color:red;}  p {background-color:rgb(255,0,255);}  Type the above in a file called first.css  Then link this file from the html head section Save the files and reload the page on firefox browser Color scheme used is RGB (Red, Green, Blue) format of 256 shades each (00-FF) Style in.css file 7/4/2015CSE651C, B. Ramamurthy15

 Links are what make the connected web and provide quite valuable data for web analytics;  It is also an enabler for the “Internet of Things”  Combine an anchor link tag with an image tag:  What to do? Linking to other pages 7/4/2015CSE651C, B. Ramamurthy16

 Save first.html as ex2.html and first.css as ex2.css  Download Bosch logo into your lab folder  Add these lines in the middle of the body and save Make sure the quotes are right when you copied. Save and reload your web page with ex2.html You will see the Bosch logo and when you click on it will take you to Bosch site. Exercise #2 7/4/2015CSE651C, B. Ramamurthy17

 Attributes  An additional specification included inside a tag  The abbreviations href, src, and alt are attributes  Attributes have the form name="value”  the name, such as href, is the attribute  the text in quotes, such as, biographies/boschbio.html, is the value  Values are always enclosed in quotes Attributes 7/4/2015CSE651C, B. Ramamurthy18

 The style attribute is the most useful attribute  Used to control a huge list of properties for every feature of a Web page  Properties are characteristics of page components, such as color, size, or position.  The value of the style has a standard form: style = "property_name : specification”  The colon (:) separates the property name from its specification  The spaces on each side of the colon are optional  Notice that when more than one property is set with style, the name/specification pairs are separated by a semicolon (;) Style Attribute 7/4/2015CSE651C, B. Ramamurthy19

 You can scale the image using the attributes.  Try it with various sizes and check the scaling factor. Attributes for Image tag 7/4/2015CSE651C, B. Ramamurthy20

 Lets modify ex2.html to be meaningful.  Remove all the unnecessary tags that you don’t need from the previous exercise.  Now save the file as Proj_Report.html and the css file also accordingly.  Add a table about your project and the abstract. Lets add a Table 7/4/2015CSE651C, B. Ramamurthy21

CSE 651 Project Report Project Title Speed Limiter Designer Name Your name Project Abstract This project is about controlling the speed automatically according to the speed limits. This device senses the speed limit for the zone and will not let the motorist go over that limit!!! 7/4/2015CSE651C, B. Ramamurthy22

Summary  We looked at HTML5 structuring and styling with css.  You will prepare your project report in this format.  You can embellish it as you wish with colors and fonts and styles.  Next lecture we will add the processing components for the page using Javascript. 7/4/2015CSE651C, B. Ramamurthy23

 L. Synder. Fluency with Information Technology: Skills, Concepts, and Capabilities, Pearson,  W3c schools. References 7/4/2015CSE651C, B. Ramamurthy24