HTML5 Demo ISYS 350. HTML 5 validation/#.UdytIOLn_zc validation/#.UdytIOLn_zc.

Slides:



Advertisements
Similar presentations
Hazırlayan:Emin BORADNAĞ. HTML-5 HTML-5 Örnek HTML5 body {font-family: Verdana, sans-serif; font-size:0.8em;} header, nav, section, article, footer {border:1px.
Advertisements

CREATE A WEBPAGE WEB DESIGN. EXAMPLE LAYOUT 2 WEB COMPONENTS Header Banner and logo Footer Copyright information or Address Horizontal Navigation For.
Video, audio, embed, iframe, HTML Form
HTML 5 – GeoLocation and Maps. Geolocation API What is a ”geolocation”…? A geographical location, defined in terms of – Latitude (north/south) – Longitude.
HTML 5 The next generation of web programming. WHERE IT ALL BEGAN.
Computer Science 103 Chapter 4 Advanced JavaScript.
CHAPTER 26 CREATING LOCATION-AWARE WEBPAGES USING GEOLOCATION.
CS 174: Web Programming February 26 Class Meeting Department of Computer Science San Jose State University Spring 2015 Instructor: Ron Mak
Creating Web Pages with HTML and CSS ISY 475. HTML Introduction History: – Standard.
CHAPTER 8: Enhancing a Website Session 1. Objectives Embed a YouTube video in your website Insert a slideshow in your website Use Google fonts in your.
Web Page Introduction. What is a web page? A web page is a text file containing markup language tags. –A markup language combines text and extra information.
Mark Branom, Continuing Studies.  HTML5 overview – what’s new?  New HTML5 elements  New HTML5 features  Guided Demonstrations  Forms  Video  Geolocation.
HTML5 GEOLOCATION AND SHAREPOINT GEOLOCATION What is Geolocation? How easy it is to use this service? Can we do something without Javascript?
CS 174: Web Programming April 21 Class Meeting Department of Computer Science San Jose State University Spring 2015 Instructor: Ron Mak
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
UNIT 10 LINKS AND GEOLOCATION. OBJECTIVES  CO1 Describe various components of the Open Web Platform.  CO2 Create a website using HTML5.  CO3 Create.
Additional Topics. Tutorial #9 Review – Forms Forms Legend and fieldset Fields Text Password Radio buttons, check box, text area, select lists Buttons.
Internet and Web Application Development Revision.
Scripting Languages.
Programming games Examples: Audio example. Google Maps api. Classwork: show more complex video. Classwork/Homework: Find place (lat and long) for basic.
Google Maps API. Static Maps send an HTTP GET request receive an image (PNG, GIF, JPEG) no javascript needed encode params in URL example:
JavaScript Lecture 6 Rachel A Ober
New Features of HTML 5.0 Barbara Ericson
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Proglan Session 1. .  HTML5 will be the new standard for HTML.  The previous version of HTML, HTML 4.01, came in The web has changed a lot since.
Using Client-Side Scripts to Enhance Web Applications 1.
1 HTML Forms
Programming Games Reprise: storage, datatypes. Geolocation/Google API example. Work session Homework: [Catch up. Upload work. Post proposal.] Work on your.
JavaScript, jQuery, and Mashups Incorporating JavaScript, jQuery, and other Mashups into existing pages.
audio video object Options: controls autoplay Need to define height and width Options: controls autoplay.
Session: 19. © Aptech Ltd. 2HTML5 Geolocation and APIs / Session 19  Explain geolocation and its use in HTML5  Explain the Google Maps API  Explain.
1 HTML Forms
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
CHAPTER 15 HTML 5 VIDEO AND AUDIO Intro to HTML5 1.
Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP.
Geolocation Plugin
Web Technologies Lecture 3 Web forms. HTML5 forms A component of a webpage that has form controls – Text fields – Buttons – Checkboxes – Range controls.
JavaScript Defined DOM (Document Object Model) General Syntax Body vs. Head Variables Math & Logic Selection Functions & Events Loops Animation Getting.
ONE SITE TO RULE THEM ALL The journey to mobile and back Corey Cooper Associate Director of Enterprise Systems
RIA Geo Location. Finding Location modern devices can get location coordinates phones and tablets can use GPS desktops and laptops –often cannot use GPS.
HTML (Advanced) -forms, iframe, audio, video. Outline – Forms – iFrames – Audio/Video.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
Drop-down box. Objectives Learn the HTML syntax of a drop-down list javascript properties of a list/menu: length options selectedIndex The location sub-object.
03 – HTML (2) Informatics Department Parahyangan Catholic University.
Presented By Nanda Kumar(972789) P. Trinesh (982816) Sk. Salma (982824) K. Madhuri (982814) HTML5.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
What is HTML5? HTML5 will be the new standard for HTML. The previous version of HTML, HTML 4.01, came in The web has changed a lot since then. HTML5.
Phonegap Bridge –Geolocation and Google maps CIS 136 Building Mobile Apps 1.
HTML5 Demo ISYS 350. HTML 5 validation/#.UdytIOLn_zc validation/#.UdytIOLn_zc.
Lesson 5 Introduction to HTML Forms. Lesson 5 Forms A form is an area that can contain form elements. Form elements are elements that allow the user to.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
COM621: Advanced Interactive Web Development Lecture 6 – JavaScript (cont.)
Google Maps API. Contents: 1. Google Maps API Key 2. Create a Basic Google Map 3. Google Maps Overlays 4. Google Maps Events 5. Google Maps Controls 6.
HTML5 Demo ISYS 350.
Dive Into HTML5 - Start Using It Now! Mark Branom, Continuing Studies
Geolocation using Google maps
HTML5 Geolocation 11/12/2018 Copyright © Carl M. Burnett.
Geolocation using Google maps
HTML Level II (CyberAdvantage)
Session V HTML5 APIs - HTML5 Geolocation
Basic HTML and Embed Codes
HTML5 Demo ISYS 350.
HTML5 Demo ISYS 350.
HTML5 Demo ISYS 350.
HTML5 Demo ISYS 350.
HTML5 Demo ISYS 350.
Geolocation using Google maps
Presentation transcript:

HTML5 Demo ISYS 350

HTML 5 validation/#.UdytIOLn_zc validation/#.UdytIOLn_zc

New INPUT types INPUT type="number" INPUT type="range” Other types: – , url, tel, etc Age: Satisfaction:

'required' attribute Example: Your Name:

‘placeholder’ Attribute Placeholder attribute which lets us display a prompt or instructions inside the field. Example: Address:

Adding New Elements to HTML Creating an HTML Element document.createElement("myHero") myHero { display: block; background-color: #ddd; padding: 50px; font-size: 30px; } My First Hero

HTML5 Multimedia: Video,Audio,Youtube,Etc. Your browser does not support the video tag. <iframe width="420" height="315" src="

HTML5 Geolocation The navigator.geolocation.getCurrentPosition() method returns an object with latitude, longitude and other properties. Latitude Logitude Static map

HTML5 Geolocation Demo var x; function getLocation() { x = document.getElementById("demo"); if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { x.innerHTML = "Geolocation is not supported by this browser."; } function showPosition(position) { x.innerHTML = "Latitude: " + position.coords.latitude + " Longitude: " + position.coords.longitude; } Click the button to get your coordinates. Try It

Google Maps Maps basic Maps overlays

Static Map Image var x; function getLocation() { x = document.getElementById("demo"); if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { x.innerHTML = "Geolocation is not supported by this browser."; } function showPosition(position) { x.innerHTML = "Latitude: " + position.coords.latitude + " Longitude: " + position.coords.longitude; var latlon = position.coords.latitude + "," + position.coords.longitude; var img_url = " document.getElementById("mapholder").innerHTML = " "; } Click the button to get your coordinates. Try It

Google Maps var myCenter=new google.maps.LatLng( , ); function initialize() { var mapProp = { center:myCenter, zoom:5, mapTypeId:google.maps.MapTypeId.ROADMAP }; var map=new google.maps.Map(document.getElementById("googleMap"),mapProp); var marker=new google.maps.Marker({position:myCenter,}); marker.setMap(map); } google.maps.event.addDomListener(window, 'load', initialize); function newLocation(lat,lng) { myCenter=new google.maps.LatLng(lat,lng); initialize(); } function getLocation() { newlat=parseFloat(window.prompt("Enter Latitude:")); newlng=parseFloat(window.prompt("Enter Longitude:")); newLocation(newlat,newlng); }

JavaScript Array Declare an array: –rateValues=[.04,.05,.06,.07,.08]; –rateDisplay=["4%","5%","6%","7%","8%"]; Array property: –length: The length property returns the number of elements Loop with array: –for (i=0;i<rateValues.length-1;i++)

Array and document.write demo Enter PV: rateValues=[.04,.05,.06,.07,.08]; rateDisplay=["4%","5%","6%","7%","8%"]; document.write(" "); for (i=0;i<rateValues.length-1;i++) { document.write(" " + rateDisplay[i]+" "); } document.write(" "); Select Year: 10 year 15 year 30 year Future Value: