<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pro-Tek Blog &#187; HTML5</title>
	<atom:link href="http://www.pro-tekconsulting.com/blog/category/html5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pro-tekconsulting.com/blog</link>
	<description>For UI developers / UI designers and UI trends</description>
	<lastBuildDate>Thu, 05 Sep 2019 03:59:47 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.34</generator>
	<item>
		<title>WHAT ARE TEMPLATE LITERALS IN HTML5?</title>
		<link>http://www.pro-tekconsulting.com/blog/what-are-template-literals-in-html5/</link>
		<comments>http://www.pro-tekconsulting.com/blog/what-are-template-literals-in-html5/#comments</comments>
		<pubDate>Fri, 30 Nov 2018 07:54:43 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Literals in HTML5]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2739</guid>
		<description><![CDATA[<p>What are template literals in HTML5? Template literals are enclosed by the back-tick (` `) Template literals can contain placeholders. These are indicated by the dollar sign and curly braces (${expression}). The expressions in the placeholders and the text between them get passed to a function. In order to embed expressions within normal strings, you [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/what-are-template-literals-in-html5/">WHAT ARE TEMPLATE LITERALS IN HTML5?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>What are template literals in HTML5?</h4>
<p>Template literals are enclosed by the back-tick (` `)</p>
<p>Template literals can contain placeholders. These are indicated by the dollar sign and curly braces (${expression}). The expressions in the placeholders and the text between them get passed to a function.</p>
<p>In order to embed expressions within normal strings, you can use the following syntax:</p>
<p>var a = 5;<br />
var b = 10;<br />
console.log(&#8216;Fifteen is &#8216; + (a + b) + &#8216; and\nnot &#8216; + (2 * a + b) + &#8216;.&#8217;);<br />
// &#8220;Fifteen is 15 and<br />
// not 20.&#8221;</p>
<p>Now, with template literals, you are able to make use of the syntactic sugar making substitutions like this more readable:</p>
<p>var a = 5;<br />
var b = 10;<br />
console.log(`Fifteen is ${a + b} and<br />
not ${2 * a + b}.`);<br />
// &#8220;Fifteen is 15 and<br />
// not 20.&#8221;</p>
<p>Nesting Templates:</p>
<p>In certain times, nesting a template is the easiest and perhaps more readable way to have configurable strings. Within a backticked template it is simple to allow inner backticks simply by using them inside a placeholder ${ } within the template. For instance, if condition a is true: then return this templated literal.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/what-are-template-literals-in-html5/">WHAT ARE TEMPLATE LITERALS IN HTML5?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/what-are-template-literals-in-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHAT IS GRAPHQL</title>
		<link>http://www.pro-tekconsulting.com/blog/what-is-graphql/</link>
		<comments>http://www.pro-tekconsulting.com/blog/what-is-graphql/#comments</comments>
		<pubDate>Fri, 20 Apr 2018 01:59:45 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[GraphQL]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2503</guid>
		<description><![CDATA[<p>What is GraphQL GraphQL is an application layer query language that construes a string by a server, which then returns the required data in a detailed format. Open sourced by Facebook in 2015, GraphQL was developed internally during the evolution from Facebook&#8217;s HTML5-powered mobile apps to native apps. Today it is the principle graph data [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/what-is-graphql/">WHAT IS GRAPHQL</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>What is GraphQL</h4>
<p><img class="aligncenter wp-image-2508" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2018/04/GRAPHQL1-214x300.png" alt="GRAPHQL" width="185" height="258" /></p>
<p>GraphQL is an application layer query language that construes a string by a server, which then returns the required data in a detailed format. Open sourced by Facebook in 2015, GraphQL was developed internally during the evolution from Facebook&#8217;s HTML5-powered mobile apps to native apps. Today it is the principle graph data query language driving the majority of interactions within iOS and Facebook Android applications. The makers of GraphQL plan to open-source an instruction program on how to implement the server. The goal is to increase GraphQL capabilities to adapt to a wide range of back-end’s. This will let the coders to use the technology in projects of any size to access their own data more competently. The product developers will be able to structure servers and provides powerful frameworks, abstractions, and tools.</p>
<p><strong>HOW TO USE IT </strong></p>
<p>GraphQL is a different way of structuring the contract between client and server. The servers publish a set of rules specific to an application. GraphQL then supplies the language to query the developer’s data for the correct answer, within the constraints of rules. This way product developers are able to execute data requirements in a natural form, such as a declarative one and a hierarchical one. To understand how to use GraphQL, better first look at what it is trying to achieve.</p>
<p>Give client-side developers a well-organized way to query data they want to retrieve.<br />
Give server-side developers a well-organized way to get their data out to their users.<br />
Give everyone an easy and efficient way of retrieving data.</p>
<p><strong>HOW IS IT DIFFERENT</strong></p>
<p>The GraphQL query language is sited between client applications and the actual data sources. It works independently from data sources and other platforms. A GraphQL server can be made in PHP, Node or any other platform of the user’s choice. The users should be able to connect to GraphQL server with web apps, mobile apps or any other type of apps they may be using. They can then query and alter the data they are looking for. The major difference is that GraphQL does not come with a transport layer. That end of the operation is handled by a high-level framework, such as Relay. However, GraphQL have an excellent type system. The system is basically constructed on top of a layer of graphs with a set of rules defined by you. The users may not feel the need to display their data groups as a graph, but if the users really thinks about it, most of the time the user can structure his/her data schema in the form of graphs.</p>
<p>To envision what we are talking about, let&#8217;s have a look at some code. For this instance, we will look at creating a query for Product Hunt and want to retrieve data for a typical page:</p>
<p>{ product (id: &#8220;react-native-for-android&#8221;) { name, link, votes, comments<br />
{ text } } }</p>
<p>The result would be:<br />
{ &#8221;<br />
data&#8221;:<br />
{ &#8221;<br />
product&#8221;:<br />
{ &#8221;<br />
name&#8221;:</p>
<p>&#8220;React Native for Android&#8221;<br />
, &#8221;<br />
link&#8221;:<br />
&#8220;https://facebook.github.io/react-native/&#8221;<br />
, &#8221;<br />
votes&#8221;:</p>
<p>&#8220;167&#8221;<br />
, &#8221;<br />
comments&#8221;:<br />
[ { &#8221;<br />
text&#8221;:</p>
<p>&#8220;Huuuuge for cross-platform progress.&#8221;<br />
}, { &#8221;<br />
text&#8221;:</p>
<p>&#8220;Exciting stuff.&#8221;<br />
} ]<br />
}<br />
}<br />
}</p>
<p>Now the user is working with an upgraded version of Product Hunt and want to display the name of the author next to the comment. Then the user has to simply change the query like this:</p>
<p>{ product (id: &#8220;react-native-for-android&#8221;) { name, link, votes, comments<br />
{ text, author { avatar } } } }</p>
<p><strong>WHAT THE USER CAN DO WITH GRAPHQL</strong></p>
<p>GraphQL is a very liberating platform. GraphQL, product developers no longer need to cope with ad hoc endpoints or worry about accessing data with multiple roundtrip object retrievals. Instead, the developer can easily create a sophisticated, declarative-hierarchical query dispatched to one single endpoint. Now all the experimentation and newly created views are built exclusively in the client development environment. The hassle of moving unstructured data from ad hoc endpoints into business objects is excluded. Instead, the user will get a powerful, intuitive type system you can use as a tool-building platform. The developer, will have the freedom to put more focus on client software and requirements without having to leave the development environment. As the system changes, the developer will be able to support shipped clients with confidence while staying well within the limits of mobile apps.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/what-is-graphql/">WHAT IS GRAPHQL</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/what-is-graphql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DIFFERENCE IN LOCAL STORAGE AND SESSION STORAGE (HTML5)</title>
		<link>http://www.pro-tekconsulting.com/blog/difference-in-local-storage-and-session-storage-html5/</link>
		<comments>http://www.pro-tekconsulting.com/blog/difference-in-local-storage-and-session-storage-html5/#comments</comments>
		<pubDate>Wed, 13 Sep 2017 04:44:56 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Local Storage]]></category>
		<category><![CDATA[Session Storage]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2154</guid>
		<description><![CDATA[<p>Difference in Local Storage and Session Storage (HTML5) LocalStorage: Stores data with no expiration date, and gets cleared only through JavaScript, or clearing the Browser Cache / Locally Stored Data. SessionStorage: Similar to localStorage but expires when the browser is closed (not the tab). &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/difference-in-local-storage-and-session-storage-html5/">DIFFERENCE IN LOCAL STORAGE AND SESSION STORAGE (HTML5)</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Difference in Local Storage and Session Storage (HTML5)</h4>
<p><strong>LocalStorage:</strong> Stores data with no expiration date, and gets cleared only through JavaScript, or clearing the Browser Cache / Locally Stored Data.</p>
<p><strong>SessionStorage:</strong> Similar to localStorage but expires when the browser is closed (not the tab).</p>
<p>&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/difference-in-local-storage-and-session-storage-html5/">DIFFERENCE IN LOCAL STORAGE AND SESSION STORAGE (HTML5)</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/difference-in-local-storage-and-session-storage-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FEATURES OF HTML5</title>
		<link>http://www.pro-tekconsulting.com/blog/features-of-html5/</link>
		<comments>http://www.pro-tekconsulting.com/blog/features-of-html5/#comments</comments>
		<pubDate>Thu, 05 Jan 2017 04:20:06 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Features of HTML5]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=1809</guid>
		<description><![CDATA[<p>Features of HTML5 If you are a HTML developer, it is necessary for you to keep yourself upgraded with the new features introduced by HTML5. In this article, we have explained the top features of HTML5 that will help you to develop dynamic websites for multiple platforms or devices. 1.SIMPLE DOCTYPE Are you still using [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/features-of-html5/">FEATURES OF HTML5</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Features of HTML5</h4>
<p>If you are a HTML developer, it is necessary for you to keep yourself upgraded with the new features introduced by HTML5. In this article, we have explained the top features of HTML5 that will help you to develop dynamic websites for multiple platforms or devices.</p>
<p><strong>1.SIMPLE DOCTYPE</strong></p>
<p>Are you still using the infuriating and baffling XHTML DOCTYPE? Then, it’s high-time to swap it with the new HTML5 DOCTYPE.</p>
<p>The fifth version of HTML comes with a simple DOCTYPE. In order to indicate that your HTML content utilizes HTML5, the user just needs to write:</p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en"><b>&lt;!DOCTYPE html&gt;</b></span></span></p>
<p>The HTML5 DOCTYPE is an appreciated standard and is suitable for all new type of documents. It is generally used for both older and modern browsers which needs a specified DOCTYPE. However, browsers that don’t understand this DOCTYPE will directly submit the contained mark-up in standard mode. Thus, one can freely use the new and simple HTML5 DOCTYPE.</p>
<p><strong>2.FLEXIBILITY WITH “QUOTATION MARKS”</strong></p>
<p>If you are writing HTML5 attributes, the user does not need to utilize quotation marks to define the values. It completely depends on the user whether the user wants to close the elements with quotes or not.</p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en"><b>&lt;p class=myClass id=someId&gt; Start the reactor.</b></span></span></p>
<p>However, the user cannot always eliminate quotes from attribute values. For instance, if the user wants to use some more structured documents, the user needs to use the quotes.</p>
<p><strong>3.CAN EDIT TEXT CONTENT HTML5 </strong></p>
<p>Most of the new browsers assimilated with a new attribute called content editable which enables the user to edit any of the text included within the element.</p>
<p>With the use of this attribute, the user can instruct the browser to enable the users to add, delete, and edit the text. There are many uses for this technique, such as enabling users to customize the way how pages crop out each time when they visit the website. If the user wants to edit the text contained in the element, the user just need to add:</p>
<p class="western"><strong><span style="font-family: Calibri, serif;"><span lang="en">&lt;ul contenteditable=true&gt;</span></span></strong></p>
<p><strong>4.NEW AND EASY SEMANTIC ELEMENTS</strong></p>
<p>Most of the websites use the HTML code with an objective to symbolize header, navigation, and footer. However, this is quite a complicated technique.</p>
<p>HTML5 offers new and easy-to-memorize semantic elements that can help the developers to define different sections of a web page. Below are the following Semantic Elements:</p>
<p class="western"><strong><span style="font-family: Calibri, serif;"><span lang="en">&lt;header&gt;</span></span></strong></p>
<p class="western"><strong><span style="font-family: Calibri, serif;"><span lang="en">&lt;footer&gt;</span></span></strong></p>
<p class="western"><strong><span style="font-family: Calibri, serif;"><span lang="en">&lt;nav&gt;</span></span></strong></p>
<p class="western"><strong><span style="font-family: Calibri, serif;"><span lang="en">&lt;section&gt;</span></span></strong></p>
<p class="western"><strong><span style="font-family: Calibri, serif;"><span lang="en">&lt;article&gt;</span></span></strong></p>
<header>
<footer>
<nav>
<section>
<article><strong>5.PLACEHOLDER ATTRIBUTE</strong>Placeholder text is a sign text, displayed in the form of field when the field is unfocused.Earlier, developers used to use JavaScript to build placeholders for textboxes. But now they do not need to utilize JS for placeholders because HTML5 has introduced the Placeholder attribute which will display the text in a field until the field is focused. One can also say that HTML5 offers a great support for Placeholder.</p>
<p><strong>6.MARK ELEMENT</strong>HTML5 offers a mark element which defines a marked text. The developer can use this element to highlight the specific parts of the text.</p>
<p class="western" lang="en"><strong><span style="font-family: Calibri, serif;"><span style="font-size: medium;">&lt;h3&gt; Search Results &lt;/h3&gt;</span></span></strong></p>
<p><strong>7.HTML5 LOCAL STORAGE</strong></p>
<p>HTML5 local storage is used to store the data of web applications within the user’s browser.</p>
<p>Earlier, applications and data were stored in cookies, added in every server requests. But, local storage has the ability to securely store a large amount of data locally, without affecting the performance of a website.</p>
<p>HTML5 local storage won’t support on all browsers, it supports only IE 8, Firefox 3.5 and Safari4.</p>
<p><strong>THE VERDICT</strong></p>
<p>For a web developer, it is very necessary to carry the information related to the latest development tools and techniques. In this article, we have compiled the 7 most stunning HTML5 features that will make your work easier and helps you to develop a full-fledged website or web application.</p>
</article>
</section>
</nav>
</footer>
</header>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/features-of-html5/">FEATURES OF HTML5</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/features-of-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LATEST APIs IN HTML5</title>
		<link>http://www.pro-tekconsulting.com/blog/latest-apis-in-html5/</link>
		<comments>http://www.pro-tekconsulting.com/blog/latest-apis-in-html5/#comments</comments>
		<pubDate>Tue, 05 Apr 2016 06:14:29 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=1404</guid>
		<description><![CDATA[<p>Latest APIs in HTML5 The web is deriving at a fast pace. Every day a new framework, tools, and libraries are releasing with the ambition to become next jQuery. Here are some of the interesting HTML5 APIs, such as Navigation Timing API and Battery Status API. So, let’s dive deep in and know what are [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/latest-apis-in-html5/">LATEST APIs IN HTML5</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Latest APIs in HTML5</h4>
<p><img class="aligncenter size-full wp-image-1405" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2016/04/html5.png" alt="Latest APIs in HTML5" width="364" height="372" /></p>
<p>The web is deriving at a fast pace. Every day a new framework, tools, and libraries are releasing with the ambition to become next jQuery. Here are some of the interesting HTML5 APIs, such as <strong>Navigation Timing API and Battery Status API</strong>. So, let’s dive deep in and know what are these about.</p>
<p><strong>What is Navigation Timing API?</strong></p>
<p>The Navigation Timing API provides data that can be used to measure the performance of a website. This API exposes several properties which offer information about the time at which certain events happen.</p>
<p>Navigation Timing API is W3C recommendation which means that its specifications will not be changed unless a new version is released. Unlike other JavaScript-based mechanisms that have been used for the same purpose, Navigation Timing API can provide end-to-end latency data that can be more useful and accurate.</p>
<p>Let us see an example of how you can measure perceived loading time:</p>
<p>function onLoad() {<br />
var now = new Date().getTime();<br />
var page_load_time = now &#8211; performance.timing.navigationStart;<br />
console.log(&#8220;User-perceived page loading time: &#8221; + page_load_time);<br />
}</p>
<p>There are many measured events given in milliseconds that can be accessed through the Performance Timing interface. The list of events in order of occur rence is given below.</p>
<p><strong>navigationStart:</strong> Is the time immediately after the browser finishes prompting to unload the previous document. If there is no previous document, then navigationStart is equal to fetchStart. This is the beginning of the page load time as perceived by the user.</p>
<p><strong>unloadEventStart:</strong> unloadEventStart is the time immediately before the previous document’s unload event is fired. If there are no previous document, or if the previous document is from different origin then the value would be zero.</p>
<p><strong>unloadEventEnd:</strong> If there are any redirects that point to a different origin then <strong>unloadEventStart</strong> and <strong>unloadEventEnd</strong> are both zero.</p>
<p><strong>redirectStart:</strong> “redirectStart” represents the start time of the URL fetch that initiates a redirect.</p>
<p><strong>redirectEnd:</strong> If there are any redirects then “redirectEnd” represents the time after the last byte of the last redirect response received.</p>
<p><strong>requestStart:</strong> requestStart is the time before the browser sends a request for the URL.</p>
<p>responseStart: The time immediately after the browser receives the first byte of response.</p>
<p><strong>responseEnd:</strong> The time immediately after the browser receives the last byte of the response.</p>
<p>In addition to the above set of properties, the Navigation Timing API also defines another object to determine how a user landed on a particular page. The object is called navigation and it belongs to <strong>windows.performance</strong>. It contains two properties i.e., “type” and “redirectCount”.</p>
<p><strong>Type :</strong> This property provides the method by which the user navigated to the current page. The following are the list of values that “type” can hold.</p>
<p>⦁ If the user navigates to a page by typing the URL, clicking a link, submitting a form, or through a script operation, then the value of “type” is zero.<br />
⦁ If the page is reloaded/refreshed, then the “type” is equal to one.<br />
⦁ If the user navigates to a page by clicking back or forward buttons, then “type” is equal to two.<br />
⦁ For other circumstances, “type” is equal to 255.</p>
<p><strong>redirectCount:</strong> It is the number of redirects taken to the current page. If there are no redirects occurred or if any of the redirects are from a different origin, then the value is zero.</p>
<p><strong>Browser Support:</strong> Browser support for this API is very good for both desktop and mobile. On a desktop, the Navigation Timing API can be implemented in Chrome, Firefox, Internet Explorer, and Opera. The only desktop browser that currently does not support this API is Safari. On mobile, the API can be implemented in iOS safari, UC browser, and Blackberry browser. Opera Mini is the only browser that does not support this API.</p>
<p><strong>Battery Status API</strong><br />
<strong>What is Battery API?</strong></p>
<p>The Battery Status API also referred as the Battery API, is an API that provides information about systems battery level. It also defines events that are fired when changes of the battery level or status take place. This can be used to adjust user’s applications resource usage to minimise battery drain when the battery is low or to save changes before the battery runs out in order to prevent data loss.</p>
<p>The Battery Status API exposes four read-only properties on the window.navigator.battery object, they are as follows:</p>
<p>strong&gt;Charging: A Boolean value that specifies whether the battery is charging or not. If the device doesn’t have a battery or the value cannot be determined, then the value of this property is set to be <strong>true</strong>.</p>
<p><strong>ChargingTime:</strong> A value that specifies the number of seconds remaining until the battery is fully charged. If the battery is already charged or the device doesn’t have a battery, then the property is set to be <strong>“0”</strong>. If the device is not getting charged or if it is unable to determine the remaining time, then the value is <strong>Infinity</strong>.</p>
<p><strong>DischargeTime:</strong> The value that represents the number of seconds re maining until the battery is completely discharged. If the discharge time cannot be determined or the battery is currently charging, then the value is set to <strong>Infinity</strong>. If the device doesn’t have a battery, then the discharging Time is also set to <strong>Infinity</strong>.</p>
<p><strong>Level:</strong> A value that specifies the current level of the battery. The value is returned as float ranging from 0 (discharged) to 1 (fully charged). If the level of the battery cannot be determined, the battery is fully charged, or the device does not have a battery, then the value of <strong>level</strong> is equal to <strong>1</strong>.</p>
<p><strong>Battery Status Events:</strong><br />
There are four events that can be fired by the battery object.</p>
<p><strong>Chargingchange:</strong> The device has been changed to being charged to being discharged.</p>
<p><strong>Levelchange:</strong> The level of the battery will be changed.</p>
<p><strong>Chargingtimechange:</strong> It is the time until the battery is fully charged has changed.</p>
<p>strong&gt;Dischargingtimechange: It is the time until the battery is fully discharged has changed.</p>
<p><strong>Browser support </strong></p>
<p>Browser support for the Battery Status API is pretty poor. Firefox is the only browser that provides support for the API without the use of vendor prefix.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/latest-apis-in-html5/">LATEST APIs IN HTML5</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/latest-apis-in-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHICH WAY TO GO: NATIVE, HTML5, OR HYBRID?</title>
		<link>http://www.pro-tekconsulting.com/blog/which-way-to-go-native-html5-or-hybrid/</link>
		<comments>http://www.pro-tekconsulting.com/blog/which-way-to-go-native-html5-or-hybrid/#comments</comments>
		<pubDate>Wed, 02 Dec 2015 04:05:24 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=1221</guid>
		<description><![CDATA[<p>Which way to go: Native, Html5, or Hybrid? In a world that is progressively social and open, portable applications play a key role, and have changed the emphasis from what&#8217;s on the Web, to the applications on our smartphone. Versatile applications are no more an alternative, they&#8217;re a basic. You require a versatile application, yet [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/which-way-to-go-native-html5-or-hybrid/">WHICH WAY TO GO: NATIVE, HTML5, OR HYBRID?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Which way to go: Native, Html5, or Hybrid?</h4>
<p>In a world that is progressively social and open, portable applications play a key role, and have changed the emphasis from what&#8217;s on the Web, to the applications on our smartphone. Versatile applications are no more an alternative, they&#8217;re a basic. You require a versatile application, yet where do you begin? Many elements have influence in your versatile technique, for example, your group&#8217;s improvement abilities, required gadget usefulness, the significance of security, logged off capacity, interoperability, and so on, that must be considered.</p>
<p><img class="aligncenter size-full wp-image-1222" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2015/12/html.jpg" alt="html" width="614" height="451" /></p>
<p><strong>There are mainly 3 options of mobile application development</strong>:</p>
<p><img class="aligncenter size-full wp-image-1223" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2015/12/mobile-application-developement.jpg" alt="mobile application developement" width="745" height="253" /><br />
<strong>Native Mobile Applications</strong></p>
<p>More or less, local applications give the best ease of use, the best elements, and the best general versatile experience. There are a few things you just get with local applications:</p>
<p><strong>Multi touch</strong> &#8211; Twofold taps, squeeze spread, and other compound UI motions.</p>
<p><strong>Graphics API</strong> &#8211; The local stage gives you the speediest design, which may not be a major ordeal in case you&#8217;re demonstrating a static screen with just a couple of components, or a major ordeal in case you&#8217;re utilizing a great deal of information and require a quick invigorate.</p>
<p><strong>Fluid animation</strong> &#8211; Identified with the quick representation API is the capacity to have fluid liveliness. This is particularly vital in gaming, exceedingly intelligent reporting, or strong computational calculations for changing photographs and sounds.</p>
<p><strong>Built-in components</strong> &#8211; The camera, location book, geolocation, and different elements local to the gadget can be consistently incorporated into versatile applications. Another imperative implicit parts is scrambled capacity, yet more about that later.</p>
<p><strong>Usability</strong> &#8211; The local stage is the thing that individuals are acclimated to, thus when you include that recognition with the local&#8217;s majority highlights they expect, you have an application that is out and out simpler to utilize.</p>
<p><strong>Documentation</strong> &#8211; There are more than 2500 books alone for iOS and Android advancement, with numerous more articles, blog entries, and nitty gritty specialized strings on destinations like StackOverflow.</p>
<p><strong>HTML5 Web Apps</strong></p>
<p>HTML5 is a dialect that empowers designers to make rich online applications that keep running on any gadget by means of the web program; engineers can &#8220;compose once, run all over&#8221;. A versatile venture may need to make a substantial number of distinctive applications to bolster a horde of differing offices and useful undertakings, which makes HTML5 more alluring financially.</p>
<p>Defenders of HTML5 trust that the quality is practically identical to that of a local application. Likewise, it is less demanding to adapt and roll out improvements to your application in light of the fact that you are not experiencing an application store.</p>
<p>Contentions against HTML5 incorporate execution, hindrance of heading off to a URL rather than downloading an application, and absence of program similarity (not all portable programs bolster the same subset of components).</p>
<p><strong>Hybrid App</strong></p>
<p>The last choice is to make a half and half endeavor portable application, which is composed in HTML5 however wrapped in a local &#8220;compartment&#8221;, and made by means of cross-stage advancement devices, for example, PhoneGap and Sencha. It would seem that a local application, can be downloaded from an endeavor application store, and can even access on-gadget highlights, however doesn&#8217;t contain an ounce of Objective-C or Java code. The engineer ordinarily needs to utilize HTML5, CSS, and JavaScript inside of the stage environment, abilities which are less demanding and less expensive to discover than Objective-C or Java.</p>
<p>One downside to this methodology is timing: there may be issues while sitting tight for your stage to actualize new usefulness discharged by a working framework. This methodology is picking up in prominence: Gartner predicts that by 2016, more than half of all applications conveyed will be crossover.</p>
<p>At last, if your endeavor portable applications oblige access to gadget particular components or predominant response time required for amusements rate advanced applications (video), then local is your most logical option.</p>
<p>On the off chance that you are expense obliged and need to create numerous applications for some stages, or need to do quick prototyping preceding building up the full-highlighted application (run of the mill with a commercial organization), pick HTML5.</p>
<p>In the event that you are some place between the two, well then go half and half.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/which-way-to-go-native-html5-or-hybrid/">WHICH WAY TO GO: NATIVE, HTML5, OR HYBRID?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/which-way-to-go-native-html5-or-hybrid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to detect iPad Mini in HTML5?</title>
		<link>http://www.pro-tekconsulting.com/blog/how-to-detect-ipad-mini-in-html5/</link>
		<comments>http://www.pro-tekconsulting.com/blog/how-to-detect-ipad-mini-in-html5/#comments</comments>
		<pubDate>Thu, 18 Jun 2015 05:32:28 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Java Script]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=843</guid>
		<description><![CDATA[<p>How to detect iPad Mini in HTML5? To detect an iPad Mini in HTML5, you can use Javascript by inspecting all properties of the default browser objects. So for this device, the only property unique is : screen.availWidth = 748 screen.availHeight = 1024 &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-to-detect-ipad-mini-in-html5/">How to detect iPad Mini in HTML5?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>How to detect iPad Mini in HTML5?</h4>
<p style="text-align: justify;">To detect an iPad Mini in HTML5, you can use Javascript by inspecting all properties of the default browser objects. So for this device, the only property unique is :<br />
screen.availWidth = 748<br />
screen.availHeight = 1024</p>
<p>&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-to-detect-ipad-mini-in-html5/">How to detect iPad Mini in HTML5?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/how-to-detect-ipad-mini-in-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strict vs. quirks modes – How to trigger each and why this matters?</title>
		<link>http://www.pro-tekconsulting.com/blog/strict-vs-quirks-modes-how-to-trigger-each-and-why-this-matters/</link>
		<comments>http://www.pro-tekconsulting.com/blog/strict-vs-quirks-modes-how-to-trigger-each-and-why-this-matters/#comments</comments>
		<pubDate>Wed, 03 Jun 2015 04:56:18 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[HTML5, CSS3]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=833</guid>
		<description><![CDATA[<p>Strict vs. quirks modes – How to trigger each and why this matters? Quirks mode and strict mode are the two ’modes’ modern browsers can use to interpret your CSS. Anything before the DOCTYPE, like a comment or an XML declaration will trigger quirks mode in Internet Explorer 9 and older versions. In HTML5, the [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/strict-vs-quirks-modes-how-to-trigger-each-and-why-this-matters/">Strict vs. quirks modes – How to trigger each and why this matters?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Strict vs. quirks modes – How to trigger each and why this matters?</h4>
<p style="text-align: justify;">Quirks mode and strict mode are the two ’modes’ modern browsers can use to interpret your CSS.</p>
<p style="text-align: justify;">Anything before the DOCTYPE, like a comment or an XML declaration will trigger quirks mode in Internet Explorer 9 and older versions.</p>
<p style="text-align: justify;">In HTML5, the only purpose of the DOCTYPE is to activate full standards mode. Older versions of the HTML standard gave additional meaning to the DOCTYPE, but no browser has ever used the DOCTYPE for anything other than switching between quirks mode and standards mode.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/strict-vs-quirks-modes-how-to-trigger-each-and-why-this-matters/">Strict vs. quirks modes – How to trigger each and why this matters?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/strict-vs-quirks-modes-how-to-trigger-each-and-why-this-matters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Change an input&#8217;s HTML5 placeholder color with CSS?</title>
		<link>http://www.pro-tekconsulting.com/blog/how-to-change-an-inputs-html5-placeholder-color-with-css/</link>
		<comments>http://www.pro-tekconsulting.com/blog/how-to-change-an-inputs-html5-placeholder-color-with-css/#comments</comments>
		<pubDate>Wed, 06 May 2015 05:23:57 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=661</guid>
		<description><![CDATA[<p>How to Change an input&#8217;s HTML5 placeholder color with CSS? A placeholder in input field looks like this: By default the color of the placeholder is black (with some opacity). In order to change the default color of a placeholder in input field, we can use pseudo-elements and pseduo-classes. Mozilla Firefox /* Mozilla Firefox 4 [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-to-change-an-inputs-html5-placeholder-color-with-css/">How to Change an input&#8217;s HTML5 placeholder color with CSS?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>How to Change an input&#8217;s HTML5 placeholder color with CSS?</h4>
<p>A placeholder in input field looks like this:<br />
<img class="aligncenter" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2015/05/ui-street.png" alt="" /><strong>By default the color of the placeholder is black (with some opacity).</strong></p>
<p>In order to change the default color of a placeholder in input field, we can use pseudo-elements and pseduo-classes.<br />
<strong>Mozilla Firefox</strong><br />
/* Mozilla Firefox 4 to 18 */<br />
[one colon]<br />
:-moz-placeholder {<br />
color: #909;<br />
opacity: 1;<br />
}<br />
/* Mozilla Firefox 19 &amp; above */<br />
::-moz-placeholder {<br />
color: #909;<br />
}<br />
<strong>Webkit Browsers</strong><br />
/*Chrome,Safari,etc*/<br />
::-webkit-input-placeholder {<br />
color: #909;<br />
}<br />
<strong>Internet Explorer</strong><br />
/* IE 10+ */<br />
:-ms-input-placeholder {<br />
color: #909;<br />
}<br />
<strong>Points to Note:</strong><br />
IE 9 &amp; Below and Opera 12 &amp; below do not support any CSS selector for placeholders.<br />
Firefox&#8217;s placeholder needs to use opacity: 1 to avoid any default contrasts.<br />
It is highly recommended to use em&#8217;s for input elements&#8217; dimensions to avoid any cutoff in placeholder&#8217;s text.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-to-change-an-inputs-html5-placeholder-color-with-css/">How to Change an input&#8217;s HTML5 placeholder color with CSS?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/how-to-change-an-inputs-html5-placeholder-color-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
