Is there a "location" html element?

4 answers


The item <location>

does not exist. I would agree that semantically this would be great for web applications that include some sort of GPS.

If I understand correctly, HTML5 allows you to create custom elements , which can be a temporary fix for an up and down web app. Semantically, I don't think this is the biggest thing (all this extra markup for creating an element), but some might use it. Eric Meyer also has an article on custom elements .

Technically, I think most browsers will render unknown markup given correct CSS and / or JavaScript ...




March 2014 Update

Custom elements make their way through the W3C and they are actually pretty nifty.

+1


source


As far as I know, there is no location element as such in HTML5. Have a look at this though: http://dev.w3.org/geo/api/spec-source.html



+1


source


There is no such element that I have heard of.

Here is a list of elements available in the HTML5 spec. (Update: The list is based on the spec as it was in February 2009, so it's somewhat old, but an element location

I know of.)

0


source


There is no such element called "location".

You can display your GPS data in HTML using the Google Maps API

   <div id="map" style="width: 400px; height: 300px"></div> 

   <script type="text/javascript"> 
      var myOptions = {
         zoom: 8,
         center: new google.maps.LatLng(51.49, -0.12),
         mapTypeId: google.maps.MapTypeId.ROADMAP
      };

      var map = new google.maps.Map(document.getElementById("map"), myOptions);
   </script> 

      

0


source







All Articles