HTML5 Demo ISYS 350.

Slides:



Advertisements
Similar presentations
HTML 5 – GeoLocation and Maps. Geolocation API What is a ”geolocation”…? A geographical location, defined in terms of – Latitude (north/south) – Longitude.
Advertisements

HTML5 Demo ISYS 350. HTML 5 validation/#.UdytIOLn_zc validation/#.UdytIOLn_zc.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Creating Web Pages with HTML and CSS ISY 475. HTML Introduction History: – Standard.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
Session 1 Chapter 10 - How to Work with Forms ITI 134: HTML5 Desktop and Mobile Level II
Additional Topics. Tutorial #9 Review – Forms Forms Legend and fieldset Fields Text Password Radio buttons, check box, text area, select lists Buttons.
CHAP 3. FORM API.  Forms should still be encapsulated in a element where the basic submission attributes are set.  Forms still send the values of the.
Session: 10. © Aptech Ltd. 2HTML Forms / Session 10  Describe HTML5 forms  Explain the working of new input types in HTML5  Explain the new Form attributes.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Forms.
Week 9 - Form Basics Key Concepts 1. 1.Describe common uses of forms on web pages 2.Create forms on web pages using the form, input, textarea, and select.
Programming Games Reprise: storage, datatypes. Geolocation/Google API example. Work session Homework: [Catch up. Upload work. Post proposal.] Work on your.
Session: 19. © Aptech Ltd. 2HTML5 Geolocation and APIs / Session 19  Explain geolocation and its use in HTML5  Explain the Google Maps API  Explain.
CHAPTER 15 HTML 5 VIDEO AND AUDIO Intro to HTML5 1.
Copyright © Terry Felke-Morris HTML5: TEXT BOX Accepts text information in address format Common Attributes: ◦ type=“ ” ◦ name ◦ id ◦
RIA Geo Location. Finding Location modern devices can get location coordinates phones and tablets can use GPS desktops and laptops –often cannot use GPS.
03 – HTML (2) Informatics Department Parahyangan Catholic University.
Presented By Nanda Kumar(972789) P. Trinesh (982816) Sk. Salma (982824) K. Madhuri (982814) HTML5.
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.
Session I How to Work with Forms Chapter 11 - How to Work with Formswww.profburnett.com.
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.
Java Script and the DOM DOM stands for: –The Document Object Model When a browser reads a web page, it converts it’s contents from HTML into a hierarchical.
Java Script Date Object
JavaScript.
HTML 5.
>> Introduction to HTML: Forms
CSE 102 Introduction to Web Design and Programming
CSS Layouts: Grouping Elements
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
© 2017 Akhilesh Bajaj, All Rights Reserved
Web Development & Design Foundations with HTML5 8th Edition
A little MORE on JavaScript
CHAPTER 9 APIS. CHAPTER 9 APIS WHAT IS AN API?
JAVASCRIPT.
JavaScript Event Handling.
EXCEPTION HANDLING IN SERVER CLIENT PROGRAMMING
Key concepts of Computing
Principles of Software Development
The Document Object Model (DOM) is a W3C standard.
WHY FORMS? Explain: Mostly, when you need to collect data from a user you need a form Click: Google search form Click: Facebook login form Click:
Dive Into HTML5 - Start Using It Now! Mark Branom, Continuing Studies
Geolocation using Google maps
JavaScript Forms Adding User Input.
Web Development & Design Foundations with HTML5 8th Edition
HTML5 Geolocation 11/12/2018 Copyright © Carl M. Burnett.
Software Engineering for Internet Applications
Geolocation using Google maps
HTML Level II (CyberAdvantage)
Session V HTML5 APIs - HTML5 Geolocation
JavaScript Forms Adding User Input.
The University of Tulsa
New Form Input Types.
HTML5 Demo ISYS 350.
JavaScript Programming Labs
HTML5 Demo ISYS 350.
HTML Forms Internet Technology.
HTML Forms Internet Technology.
HTML5 Demo ISYS 350.
HTML Basics BCHB697.
Basics of Web Design Chapter 10 Form Basics Key Concepts
HTML5 Demo ISYS 350.
HTML5 Demo ISYS 350.
Kanida Sinmai HTML Form Kanida Sinmai
Geolocation using Google maps
Presentation transcript:

HTML5 Demo ISYS 350

HTML 5 http://www.the-art-of-web.com/html/html5-form-validation/#.UdytIOLn_zc http://diveintohtml5.info/forms.html http://24ways.org/2009/have-a-field-day-with-html5-forms/ http://www.w3.org/TR/html5/forms.html

New INPUT types http://www. w3schools. com/html/html_form_input_types INPUT type="number" INPUT type="range” Other types: email, url, tel, etc Age: <input type="number" size="6" name="age" min="18" max="99" value="21"><br> Satisfaction: <input type="range" size="2" name="satisfaction" min="1" max="5" value="3">

'required' attribute Example: Your Name: <input type="text" name="name" required>

‘placeholder’ Attribute Placeholder attribute which lets us display a prompt or instructions inside the field. Example: Email Address: <input type="email" name="email" required placeholder="Enter a valid email address">

HTML 5 Form Demo <form> Your Name: <input type="text" name="name" required><br> Email Address: <input type="email" name="email" required placeholder="Enter a valid email address"><br> Website: <input type="url" name="website" required pattern="https?://.+"><br> Age: <input type="number" size="6" name="age" min="18" max="99" value="21"><br> Satisfaction: <input type="range" size="2" name="satisfaction" min="1" max="5" value="3"><br><br> <input type="submit" value="Submit" name="btnSubmit" /> </form>

HTML 5 Form fieldset https://24ways Like a GroupBox http://www.w3schools.com/tags/tag_fieldset.asp Try It Yourself

HTML5 Multimedia: Video,Audio,Youtube,Etc. http://www. w3schools

Adding New Elements to HTML http://www. w3schools <head> <title>Creating an HTML Element</title> <script>document.createElement("myHero")</script> <style> myHero { display: block; background-color: #ddd; padding: 50px; font-size: 30px; } </style> </head> <body> <myHero>My First Hero</myHero> </body>

HTML5 Geolocation http://www.w3schools.com/html/html5_geolocation.asp The navigator.geolocation.getCurrentPosition() method returns an object with latitude, longitude and other properties. Latitude Logitude Static map

HTML5 Geolocation Demo <script> 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 + "<br>Longitude: " + position.coords.longitude; </script> </head> <body> <p>Click the button to get your coordinates.</p> <button onclick="getLocation()">Try It</button> <p id="demo"></p>

Google Maps http://www.w3schools.com/graphics/google_maps_intro.asp Maps basic Maps overlays

Static Map Image <script> 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 + "<br>Longitude: " + position.coords.longitude; var latlon = position.coords.latitude + "," + position.coords.longitude; var img_url = "http://maps.googleapis.com/maps/api/staticmap?center="+latlon+"&zoom=14&size=400x300&sensor=false"; document.getElementById("mapholder").innerHTML = "<img src='"+img_url+"'>"; </script> </head> <body> <p>Click the button to get your coordinates.</p> <button onclick="getLocation()">Try It</button> <p id="demo"></p> <br> <div id="mapholder"></div> </body>

Google Maps http://www.w3schools.com/googleapi/default.asp <script src="http://maps.googleapis.com/maps/api/js"></script> <script> var myCenter=new google.maps.LatLng(51.508742,-0.120850); 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); </script> </head> <body> <div id="googleMap" style="width:500px;height:380px;"></div> <input type="button" value="NewLocation" name="btnClick" onclick="getLocation()"/> </body> </html>