Techbubbles

Archive of ‘HTML5’ category

Basic DOM Interactions

This post outlines the basic DOM (Document Object Model) interactions such as Querying the DOM, Manipulating the DOM and responding to the events.
Querying the DOM
getElementById
getElementsByTagName
querySelector
querySelectorAll
Example:
var x = document.getElementById(“anyID”);
//or
var x = document.querySelector(“#anyID”);
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: […]

Semantic Structures in HTML5

What is HTML5 Semantic Structures? Semantics are meaning of subject, like a word or sentence. This post shows the HTML5 tags that you can use for developing Windows Store Applications. How do you or machine interpret these semantics are matter? Example
Semantics via attribution
  
when you look at the divs with the ids and classes, so […]

Building Windows Phone Application using HTML5 and OData

This post explains the steps to create a Windows Phone application using HTML5 and OData. You need to install Windows Phone SDK on developer machine which can be downloaded from here.  The idea is to show the product categories information from Northwind OData service.
1. Create a ASP.NET Web application and refer the Northwind OData service
2. […]