Emerging technology and Platform#3: JavaScript Bina Ramamurthy.

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
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
WeB application development
Cascading Style Sheets
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
MMDE5011 – INTERACTIVE MEDIA PRACTICE 1 WEEK 1: INTRODUCTION TO HTML5
CSS cont. October 5, Unit 4. Padding We can add borders around the elements of our pages To increase the space between the content and the border, use.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
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
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
Emerging Applications and Platform#3: JavaScript Bina Ramamurthy 7/4/2015CSE651C, B. Ramamurthy1.
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.
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.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
Website Development with Dreamweaver
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.
Styling and theming Build campaigns in style. What we'll look at... How a web document is structured How HTML and CSS fit together Tools you will need.
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.
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.
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 
 cascade Style Sheets (CSS) is a mark-up language that was first proposed in 1994 by Håkon Wium Lie. CSS works in conjunction with HTML to greatly increase.
HTML: Hyptertext Markup Language Doman’s Sections.
Week 1 – Beginners Content McAfee & Big Fish Games CoderDojo.
 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.
Definition CSS “Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
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.
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.
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.
Objective % Select and utilize tools to design and develop websites.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Styles with Cascading Style Sheets (CSS)
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Objective % Select and utilize tools to design and develop websites.
Introduction to Web Page Design
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 technology and Platform#3: JavaScript Bina Ramamurthy

 We looked at two emerging platforms last week:  Emerging platform and applications #1: Arduino  Emerging platform and applications #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 just introduced the topics for you to think about using it in your work as you see fit. Review of last week

 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

 We had difficulty finding a specific case for our discussion of point-counter-point since the data was small as pointed out by Sushil  These are effective algorithms for big data  Also look at regression.php for test preparation on linear regressionhttp://easycalculation.com/statistics/learn- regression.php  “More data usually beats better algorithms”  Where algorithms fall short data can compensate. Review of K-NN

 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 technologies.  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 the lecture  That why Javascript is our #3 Today Emerging Platform #3: Javascript

 HTML5  HTML + CSS + Javascript a powerful web language  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  JS libraries are equally popular among the rival tech giants Microsoft, Oracle, Amazon, IBM (see the reference) Hmm…Javascript

 We will limit ourselves to pure javascript (HTMl5) for this course.  Once you get good foundation in this it is quite simple to add the libraries and work with them.  Here is a very nice link to get started Getting started

Basic Elements of

 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 HTML5

 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

 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

This is CSE651 This is HTML

 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

 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 different color for different items on the page. Lets add some style

 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

 Links are what make the connected web and provide quite valuable data for web analytics;  It is also a means for “Internet of Things”  Combine an anchor link tag with an image tag:  What to do? Linking to other pages

 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

 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/russellbio.html, is the value  Values are always enclosed in quotes Attributes

 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

 You can scale the image using the attributes.  Try it with various sizes and check the scaling factor. Attributes for Image tag

 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

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!!!

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.

 L. Synder. Fluency with Information Technology: Skills, Concepts, and Capabilities, Pearson,  W3c schools. References