Access GMAIL Offline



Gmail is the most preffered email service these days.The reason being that they have been consistently improving their services.Gmail offers more than 7.6 Gigabyte of space which is increasing every second.So, you don’t have to delete even a single email due to lack of space .Their are a lot of addtional features like in Gmail labs like Addtional chat emotions , Preview Pane which can be activated when required.Now you can also get the ability to access Gmail in offline mode which can be really useful if you don’t have internet connection but are in need of urgent access to your mailbox. Although in offline modeyou can’t send an email but can read, manage your emails. This trick will work only on Google Chrome browser

How to Access GMAIL Offline
  • Open your Chrome browser and download Offline Gmail Extension fromhere.
  • Install this extension by clicking on Add to Chrome and select offline Google Mail.


  • After this select Allow offline Mail option and click on Continue button.(Don’t use it on public computer or any network computer because it will store all your data on it)


Your Gmail account will automatically get synchronized whenever you run chrome browser in availability of internet connection. 

HTML5 Geolocation

HTML5 Geolocation is used to locate a user's position

Locate the User's Position

The HTML5 Geolocation API is used to get the geographical position of a user.
Since this can compromise user privacy, the position is not available unless the user approves it.

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari
Internet Explorer 9, Firefox, Chrome, Safari and Opera support Geolocation.
Note: Geolocation is much more accurate for devices with GPS, like iPhone.

Using Geolocation

Use the getCurrentPosition() method to get the user's position.
The example below is a simple Geolocation example returning the latitude and longitude of the user's position:

Example

<script>
var x=document.getElementById("demo");
function getLocation()
  {
  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>
Example explained:
  • Check if Geolocation is supported
  • If supported, run the getCurrentPosition() method. If not, display a message to the user
  • If the getCurrentPosition() method is successful, it returns a coordinates object to the function specified in the parameter ( showPosition )
  • The showPosition() function gets the displays the Latitude and Longitude
The example above is a very basic Geolocation script, with no error handling.

Handling Errors and Rejections

The second parameter of the getCurrentPosition() method is used to handle errors. It specifies a function to run if it fails to get the user's location:

Example

function showError(error)
  {
  switch(error.code)
    {
    case error.PERMISSION_DENIED:
      x.innerHTML="User denied the request for Geolocation."
      break;
    case error.POSITION_UNAVAILABLE:
      x.innerHTML="Location information is unavailable."
      break;
    case error.TIMEOUT:
      x.innerHTML="The request to get user location timed out."
      break;
    case error.UNKNOWN_ERROR:
      x.innerHTML="An unknown error occurred."
      break;
    }
  }
Error Codes:
  • Permission denied - The user did not allow Geolocation
  • Position unavailable - It is not possible to get the current location
  •  Timeout - The operation timed out

Displaying the Result in a Map

To display the result in a map, you need access to a map service that can use latitude and longitude, like Google Maps:

Example

function showPosition(position)
{
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+"' />";
}
In the example above we use the returned latitude and longitude data to show the location in a Google map (using a static image).
Google Map Script
How to use a script to show an interactive map with a marker, zoom and drag options.

Location-specific Information

This page demonstrated how to show a user's position on a map. However, Geolocation is also very useful for location-specific information.
Examples:
  • Up-to-date local information
  • Showing Points-of-interest near the user
  • Turn-by-turn navigation (GPS)

The getCurrentPosition() Method - Return Data

The getCurrentPosition() method returns an object if it is successful. The latitude, longitude and accuracy properties are always returned. The other properties below are returned if available.
Property Description
coords.latitude The latitude as a decimal number
coords.longitude The longitude as a decimal number
coords.accuracy The accuracy of position
coords.altitude The altitude in meters above the mean sea level
coords.altitudeAccuracy The altitude accuracy of position
coords.heading The heading as degrees clockwise from North
coords.speed The speed in meters per second
timestamp The date/time of the response


Geolocation object - Other interesting Methods

watchPosition() - Returns the current position of the user and continues to return updated position as the user moves (like the GPS in a car).
clearWatch() - Stops the watchPosition() method.
The example below shows the watchPosition() method. You need an accurate GPS device to test this (like iPhone):

Example

<script>
var x=document.getElementById("demo");
function getLocation()
  {
  if (navigator.geolocation)
    {
    navigator.geolocation.watchPosition(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>


Partner site : online news

HTML5 Video + DOM

HTML5 <video> - Take Control Using the DOM

The HTML5 <video> element also has methods, properties, and events.
There are methods for playing, pausing, and loading, for example. There are properties (e.g. duration, volume, seeking) that you can read or set. There are also DOM events that can notify you, for example, when the <video> element begins to play, is paused, is ended, etc.
The examples below illustrate, in a simple way, how to address a <video> element, read and set properties, and call methods.

HTML5 <video> - Methods, Properties, and Events

The table below lists the video methods, properties, and events supported by most browsers:
Methods Properties Events
play() currentSrc play
pause() currentTime pause
load() videoWidth progress
canPlayType videoHeight error
duration timeupdate
ended ended
error abort
paused empty
muted emptied
seeking waiting
volume loadedmetadata
height
width
Note: Of the video properties, only videoWidth and videoHeight are immediately available. The other properties are available after the video's meta data has loaded.


Partner site : online news

HTML5 Video

Until now, there has not been a standard for showing a video/movie on a web page.
Today, most videos are shown through a plug-in (like flash). However, different browsers may have different plug-ins.
HTML5 defines a new element which specifies a standard way to embed a video/movie on a web page: the <video> element.

How It Works

To show a video in HTML5, this is all you need:

Example

<video width="320" height="240" controls="controls">
  <source src="movie.mp4" type="video/mp4" />
  <source src="movie.ogg" type="video/ogg" />
  Your browser does not support the video tag.
</video> 
The control attribute adds video controls, like play, pause, and volume.
It is also a good idea to always include width and height attributes. If height and width are set, the space required for the video is reserved when the page is loaded. However, without these attributes, the browser does not know the size of the video, and cannot reserve the appropriate space to it. The effect will be that the page layout will change during loading (while the video loads).
You should also insert text content between the <video> and </video> tags for browsers that do not support the <video> element.
The <video> element allows multiple <source> elements. <source> elements can link to different video files. The browser will use the first recognized format.

Video Formats and Browser Support

Currently, there are 3 supported video formats for the <video> element: MP4, WebM, and Ogg:
Browser MP4 WebM Ogg
Internet Explorer 9 YES NO NO
Firefox 4.0 NO YES YES
Google Chrome 6 YES YES YES
Apple Safari 5 YES NO NO
Opera 10.6 NO YES YES
  • MP4 = MPEG 4 files with H264 video codec and AAC audio codec
  • WebM = WebM files with VP8 video codec and Vorbis audio codec
  • Ogg = Ogg files with Theora video codec and Vorbis audio codec

HTML5 video Tags

Tag Description
<video> Defines a video or movie
<source> Defines multiple media resources for media elements, such as <video> and <audio>
<track> Defines text tracks in mediaplayers



Partner site : online news

How to Indexed your Blog In Search Engines

How to Indexed your Blog In Search Engines



Another pinger site you can add your blog into different search engine by submitting your blog url or rss feed url. What is the advantage of Indexing your blog into different search engine? The answer is you can see your blog name and url to that search engine just like Google if you search your blog in Google Search all information about your blog appear and another thing is it gives more traffic your blog. Hope get my point ok see the list below.




























Check if your site is indexed in Google:

15 Key Elements All Top Web Sites Should Have



1. Good Visual Design

First things first… Visual design. I don’t know about you, but if I go to a web site that is not visually pleasing, it is a quick turn off.
That’s not to say that every top website needs an incredible visual design — but if a site looks like it hasn’t been updated since 1994, it’s just not going to be associated with other great websites.
A clean and simple design is usually all you need. Bells and whistles are nice, but I’m one who tends to go with the “less is more” theory. You don’t want your design to be over crowded. You just want it to look good so it can stand out from your competitor(s) in the minds of your potential clients.
First impressions are key. Although good design alone will not keep someone on your site — an eye-catching design will, at the very least, grab their attention long enough to take a look around.

User Interface / Navigation2. Thoughtful User Interface

Along with good design comes a good user interface. The user interface is the foundation of any good functional web site. When designing a site, you’ll need to take into consideration your average user. Who is going to be visiting your web site — who is your ideal customer? Are they tech-savy? Are they computer illiterate?
It’s helpful to create an image of your ideal visitor and have them in mind when planning out the design for your site. Be sure you offer everything on your site that they would want to find before buying from you or becoming a subscriber.
You’ll want to be sure that your navigation is easy to spot and consistent throughout the entire web site. Make it obvious where the user should click both in terms of your primary navigation, as well as for links within your content areas.

3. Primary Navigation Above The Fold

Part of having an easy to navigate web site is ensuring that the primary means of navigation — links to the key areas of your site — are kept above the fold. With today’s large computer monitors and growing screen resolutions “above the fold” is generally considered to be within the top 500-600 pixels of your site design.
Elements to include here are your logo (which should link back to your home page), as well as links to the main sections of your site. If you can link to sub-pages here that is great, but in most cases that will over-clutter your design.
For example put “Home | About | Services | FAQ | Contact” in a very easy to find location at the top of your site. You can place sub-links such as About-Bio / About-Resume somewhere else, such as in your sidebar or as sub-links under the main page title of that section, etc.
Consistency is key here — be sure to place both your primary and sub-navigational links in the same spot throughout the various pages of your web site.

4. Repeat Navigation In The Footer

If you use images (or even flash) for your main navigation, it’s especially important to offer a duplicate set of navigation links in your footer. Even if you use text links at the top, the duplication is still helpful. You want to make it as easy as possible for people to find the content they are looking for on your site.
Often times the footer will link to additional information — such as Terms of Service — as well. Things that should be easy to find, but not necessarily something you want taking up real estate on the primary navigation area of the site.

5. Meaningful Content

Content is KingYou know the saying… “Content is King” — you might have a pretty web site which will catch someone’s eye, but if the content is no good, you can be willing to bet that they aren’t going to stick around.
When writing the copy for your web site, it’s important to provide helpful, knowledgeable information about your company, products, services, etc. If you’re running a blog, informative articles related to your area of expertise are incredibly helpful as well.
While it’s important to sell yourself or your company, you also don’t want to oversell, either. Particularly in a blog setting — people reading a blog don’t want to hear all about “me me me” — they want to know how you can help them.

6. A Solid About Page

Among the top 10 most popular pages of my own site (after the home page, blog, 3 specific blog posts and my portfolio) is the About page. I have more clicks to my about page than to my services or portfolio pages, if you can believe that!
It’s simply because people are curious. They want to know who is behind a company or a blog. I was personally quite shy about including a photo on my own bio page, but finally did it a few months ago. It’s amazing what the sense of curiosity does — I myself am always clicking on about pages too, trying to find out more about the designer or writer, etc.
Include information on your background and how it pertains to your own business and expertise, etc. The about page gives potential clients a little bit more information about you and can often help create a more personal bond. If they are reading your writing and know a bit more about you, they’ll have a better sense of connection and better be able to relate to you on another level.
More often than not, a potential client will select the company with a “real” person behind it, rather than the faceless organization that refuses to get even a little bit personal.

7. Contact Information

Contact InformationNothing can turn off a prospective client more than not being able to find a way to contact you. If they’re interested in your services, and can’t find a simple contact page with a way to get in touch and hire you they’re going to end up going over to the competition.
Ideally you’ll want to give more than one method of contact. At the very least an email address and contact form. To make you more “real” though you should try to include a phone number (and if possible a mailing address) as well. I know many freelancers work from a home office – as do I. A quick solution is to get a separate phone line for business calls, as well as either a PO Box or other mailing service address.
Keep in mind that these are tax deductible expenses and makes you look that much more professional than someone who only includes an email address. To other home business owners in the same boat, it might not make a difference. But if you work with any larger or corporate clients, they’ll see a public phone number and address as an added sign of stability and that could play a small part in them choosing you over someone else.

8. Search

If you have a large web site or blog, having a search field is incredibly helpful, as well. There’s nothing like wading through hundreds of pages to find specific content without a search feature. If a potential customer can’t find something easily on your site, but Joe Designer over there does… odds are they are going to go with Joe whose content is easy to search through.
You can often use a Google Search on your site, or if you have WordPress (or another blogging platform or CMS / Content Management System) this will be fairly easy to accomplish. It’s not quite as easy to set this up with a static html site, but there are still services out there that will let you incorporate a functional search box onto your site.

RSS Subscription9. Sign-Up / Subscribe

If your web site offers content on a consistent basis — such as with a blog — you’ll want to make it as easy as possible for people to sign up for updates.
This is something else that’s extremely easy to add if you have a WordPress blog. By default they’ll provide you with a feed address. But if you want to step it up a notch, you’ll want to sign up for a free account with FeedBurner. Better yet, you might consider using the FeedBurner FeedSmith plugin that will help re-direct all feeds through your FeedBurner account for easy tracking of your subscribers.
If you don’t have a blog, but still want to offer subscriptions to an email newsletter, for example, there are many companies that will let you setup and manage a mailing list. They will provide you code for your site to enable your web site visitors to sign up for updates using their email address. (FeedBurner allows you to collect email addresses too, btw). In some ways this is better than an RSS subscription because you are able to collect email addresses of potential prospects. While you can keep track of subscription numbers and other generic statistics, RSS subscribers get your updates via feed reader and have no need to provide an email address.

10. Sitemap

There are two kinds of sitemaps – one for humans and one for the search engines. An html (or php, etc.) sitemap meant for visitors to your site can be an invaluable tool for finding just what they are looking for.
Creating a sitemap – a structured list of all pages of a web site – is especially useful if you are unable to add a search feature to your site. A link to the sitemap is another item that is helpful to place down in the footer of your site, as well. A good sitemap will list out every page of your site in a hierarchial format – clearly showing the relationship of pages in terms of primary pages with sub-pages and sub-sub-pages, etc.

11. Separate Design from Content

Long gone are the days of using html tables for layout and design. The best developed sites use a combination of XHTML and CSS (Cascading Style Sheets), which create a separation of design vs content.
With use of <div> tags you can create containers for various areas of text and images on your page. Without a corresponding CSS file you’ll see just the basics – text – which is what the search engines want to see, too.
By linking to an external CSS file in order to separate your content from the design, it leaves your html page with mostly nothing but actual relevant text in your source code. The separate CSS file is what specifies the fonts, colors, background images, etc. for your site design.
What’s great about this is you can update just one CSS file and have the change made site-wide (no longer having to go into each and every html page of a static site, to change your main link color from blue to green, for example).
With this separation of content from design, the search engines no longer have to wade through all of the excess code to find out if your content is relevant, either. And with separate files, the content can load quicker, too – always a good thing in the mind of visitors to your site.
Web Development

12. Valid XHTML / CSS

It’s not just enough to develop your site using XHTML and CSS, though. It has to be accurate code. Two invaluable tools for checking your source code are offered by the World Wide Web Consortium (W3C):
There are many reasons to write valid code… With valid code, you are a few steps closer to ensuring your site will look good across the different web browsers (see number 13 below) and will help you with the search engines, too. If your site is built to current web standards, the search engines can easily wade through your content.
Not to mention it just shows that you know what you are doing. Yes, many clients don’t know the difference, but a few do – and specifically request standards compliant code. If you can offer this but your competitor can’t – that gives you an extra edge.
And besides this, other web developers are likely to check out the source code of a site to see what’s under the hood… both out of sheer curiosity, and just because they can!

13. Cross Browser Compatibility

Although you might live and breathe inside Firefox, your client may not. There’s a good chance your client is using Internet Explorer. Unfortunately there’s an even better chance they’re using Internet Explorer 6 (please don’t get me started on this issue – lets just say I know I’m not the only web developer who wishes this browser will simply GO AWAY!)
It’s imporant that your own web site and the site(s) you create for customers display well in as many of the mainstream web browsers as possible. If you can make them compatible across platforms too, that’s ideal. Most end users are on a PC so this is probably the most important platform to target. However many people in the creative fields are on a Mac, so if this is your audience they are important to pay attention to as well.
Unfortunately most people aren’t lucky enough to have both a PC and a Mac (not to mention Linux, etc.) but with the help of a site called Browser Shots you can enter a URL – select from a variety of web browsers across different platforms – and have them create screenshots for you. Very helpful if you’re on a PC running Vista for example, where you no longer have access to an old copy of IE6.

14. Web Optimized Images

When designing for the web, it’s important that you save all your images in a compressed format. Not too much that your images become pixelated, but as much as possible while retaining quality.
If you’re accustomed to doing print work, you know that 300dpi is the standard. Not the case with web sites, though. When designing for the screen you’ll want to save your images at 72dpi which will make for a much smaller file size (aka quicker download time for your web visitors).
Programs like Adobe Photoshop have a “Save for Web” feature that will automatically convert your image to 72dpi if you forgot, as well as give you a variety of compression settings when saving your imges. For web this will likely be either png, jpg or gif depending on the particular usage.
Web Statistics and Analyitics

15. Statistics, Tracking and Analytics

Although this element is behind the scenes and not one you’re likely to know about as the web visitor — as a web site owner it is crucial, if not down-right addictive!
There are many services that offer tracking of web site statistics which include information such as:
  • How many hits does my site receive?
  • How many of these are from unique visitors?
  • How are people finding my web site?
  • What search terms are they finding me under?
  • What web sites link to me?
  • What are the most popular pages on my site?
  • Who is my average visitor (platform / browser / screen resolution)?
It’s actually quite amazing what kind of information you can keep track of with a good analytics program. Perhaps the most popular site for this is Google Analytics which offer a very robust (and free) tracking solution.
If you want to monitor your web site’s performance and figure out how you can improve your site, having a good stats package is key!


Partner site : online news

Best SEO Strategy Since Google Panda Update

Its Effects and How It Revolutionizes the Internet

The creation of Google Panda algorithm has changed how webmasters and bloggers see the Internet business today. Never was this kind of update happened in the history of Google until last year.
Since the acronym SEO had been invented and applied over the years, it’s only now that webmasters and Internet marketers totally changed their whole perception about the relationship between Internet users and search engines, between high and low quality visitors.
Since this is the case, webmasters ask themselves, especially ones who have sites that got affected: if traditional SEO is not anymore applicable, what could be the most effective of SEO strategy since this new algorithm update? Here is my two-cent advice:
High Quality Content Matters Most
Write the highest quality possible for your blog’s niche. And that’s it.
This advice seems to be very obvious that nobody wants to hear it anymore. When webmasters don’t want to hear about it, they don’t want to apply it anymore. So the tendency is that they apply SEO methods as much as they can. Why? Because it is much easier than writing high quality content. All they need to do is make backlinks, backlinks and nothing but backlinks. They tend to forget the importance of unique and high quality contents.
Even with those who think they have written enough high quality content, still can’t make the spot. When you think you have written enough and corrected all grammars, spellings, and punctuation, you should never assume that every craft is final. Revise, revise, and revise, as seasoned literature authors always say. Read your finished craft over and over again and revise it when it need it. Improve grammar until you reach the perfect thought, correct mistakes, omit unnecessary words, add some vivid and words to form eloquence until you reach the point of diminishing returns. Then you can publish it.
The Chain Reaction
Having said this, it doesn’t mean that SEO is not going to be effective anymore. It still is, but it should be discreet and very relevant. Links, that is why it is called links as in a chain because it connects one site from the other one to another one. The sites that connect each other from one chain should be related to one another. If you have a travel blog and want to create a link from a travel chain, then do so. Do not create a travel link from a consumer electronics chain because Google would consider it as nothing or worthless. It’s logical isn’t it? How would anybody want to connect a game link to a chain of travel links, blogging tips link to a real estate chain, real estate link to a finance chain. It’s ridiculous, isn’t it?
This has never happened before the Panda update. The search algorithm of Google before was not yet as smart as it is now.
Which is Number One?
When I first blogging in 2010 I was surprised to learn about the relationship between SEO and the Google algorithm. It was dreadfully abused. I never understood the principle of SEO in relation to the effects of it to site’s visibility on the Web. I even imagined, if all websites all over the world would do a massive SEO, which site ranks most from the other with the same niche and keyword? Let’s say if all sites or even half of the billions of sites all over the world do the required SEO, which would be number one in the search results according to keywords?
Abuse by SEO Companies
This is the reason why there were so many SEO companies operating in 2007 to 2010. It’s because the old search algorithm was abused. I remember when I was still working at an SEO company (Smart Traffic Ltd.) in 2009, I never understood the meaning or the importance of what they call LTV (Link Text Variation) and FLP (Front Link Partner). What the hell were those terms? I thought. What happened to sites that have high quality contents, those that are worthy pieces of literature, those that are reliable sources whether opinion or data.
As a content writer at Smart Traffic I remember my editor forced me to read as much as I can from ezinearticles.com to be able to write high quality contents on different topics with at least 3,500 words a day. And so I read articles from Ezine as much as I can to create contents. I was shocked to figure out that what I was reading was a bunch of craps. Huh? Take a look at Ezinearticles traffic stats now. Take a look how they lost so much traffic since the Google Panda update.
The Hard Copy and the Soft Copy
It wasn’t like the time when we only read reputable newspapers, magazines and books and we didn’t have to question about the reliability of their contents. Well, because these are popular newspapers and magazines. When the Internet technology was introduced in the 90′s and Google was created in 1996, the desire for people to look for information on the Net was tremendous that they don’t have the time to read hard copies of news and magazines anymore. Because they want all information they can get in an instant. And this can be achieved through the use of the Google search box but find out bad results.
The Search Engine Revolution
Today, this changed everything. The Google Panda Update changed how information senders and receivers behave. It now makes the Internet technology more reliable to consult whatever you want to find out.
It made the Internet a more reliable source of information and facts. And this could never be possible without the new Google Panda algorithm.


Partner site : online news

How to Create a Table in blog or website

From many days i had a question in my mind how to create a rows and columns in the blogger with a well formatted way after a bit R&D i came to know how to create a tables

1. HTML Tags (Traditional way of writing a table using tags quite confusing for non techies)
2. Make a table in word document and use it in blogger( My way... Easy and Cleaner way)

1. Start with first way using HTML tags

a standard html format /code for writing a table say 2 column and 4 rows is

<table>
<tr><td>One </td><td> Two</td></tr>
<tr><td>Three </td><td> Four</td></tr>
<tr><td>Five </td><td> Six</td></tr>
<tr><td>Seven </td><td >Eight</td></tr>
</table>

All the tables in html starts with <table> and ends with </table>

<tr> is tr=table row indicates new row in the table and usually ends with </tr>

<td> Indicates the start of the content of a table column where td=table data and this tag ends with </td>

though creating a table format using above method is a bit confusing for beginners the second way of creating a table will be easy...

2.A second way (My way ;) and easy method of drawing a table is to format it in ms word and save the file as webpage

follow the below instruction to create a table easily

-->Open the Ms word and create a table according to your needs

-->Click the File menu and select Save As HTML (or Save As Web Page).

-->Click Yes or Save in the dialog box that appears. as shown in below Picture



-->Now open the Saved File in Text editors such as Notepad or edit plus

-->copy the only part of codes beginning with <table> and </table>

-->now use this table code in html blogger post without having to remember about any coding

If you guys know still simpler way of creating a table in HTML do share with us so that others who are searching this information gets benefited


Partner site : online news

HTML5 Canvas

The canvas element is used to draw graphics on a web page.
Your browser does not support the canvas element.

What is Canvas?

The HTML5 canvas element uses JavaScript to draw graphics on a web page.
A canvas is a rectangular area, and you control every pixel of it.
The canvas element has several methods for drawing paths, boxes, circles, characters, and adding images.

Create a Canvas Element

Add a canvas element to the HTML5 page.
Specify the id, width, and height of the element:
<canvas id="myCanvas" width="200" height="100"></canvas>


Draw With JavaScript

The canvas element has no drawing abilities of its own. All drawing must be done inside a JavaScript:
<script type="text/javascript">
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.fillStyle="#FF0000";
ctx.fillRect(0,0,150,75);
</script> 
JavaScript uses the id to find the canvas element:
var c=document.getElementById("myCanvas");
Then, create a context object:
var ctx=c.getContext("2d");
The getContext("2d") object is a built-in HTML5 object, with many methods to draw paths, boxes, circles, characters, images and more.
The next two lines draws a red rectangle:
ctx.fillStyle="#FF0000";
ctx.fillRect(0,0,150,75);
The fillStyle method makes it red, and the fillRect method specifies the shape, position, and size.

Understanding Coordinates

The fillRect method above had the parameters (0,0,150,75).
This means: Draw a 150x75 rectangle on the canvas, starting at the top left corner (0,0).
The canvas' X and Y coordinates are used to position drawings on the canvas.
Mouse over the rectangle below to see the coordinates:


Partner site : online news

HTML5 Audio

Audio on the Web

Until now, there has not been a standard for playing audio files on a web page.
Today, most audio files are played through a plug-in (like flash). However, different browsers may have different plug-ins.
HTML5 defines a new element which specifies a standard way to embed an audio file on a web page: the <audio> element.

How It Works

To play an audio file in HTML5, this is all you need:

Example

<audio controls="controls">
  <source src="song.ogg" type="audio/ogg" />
  <source src="song.mp3" type="audio/mpeg" />
  Your browser does not support the audio element.
</audio> 
The control attribute adds audio controls, like play, pause, and volume.
You should also insert text content between the <audio> and </audio> tags for browsers that do not support the <audio> element.
The <audio> element allows multiple <source> elements. <source> elements can link to different audio files. The browser will use the first recognized format.

Audio Formats and Browser Support

Currently, there are 3 supported file formats for the <audio> element: MP3, Wav, and Ogg:
Browser MP3 Wav Ogg
Internet Explorer 9 YES NO NO
Firefox 4.0 NO YES YES
Google Chrome 6 YES YES YES
Apple Safari 5 YES YES NO
Opera 10.6 NO YES YES


HTML5 audio Tags

Tag Description
<audio> Defines sound content
<source> Defines multiple media resources for media elements, such as <video> and <audio>


Partner site : online news

New Elements in HTML5

The internet has changed a lot since HTML 4.01 became a standard in 1999.
Today, some elements in HTML 4.01 are obsolete, never used, or not used the way they were intended to. These elements are deleted or re-written in HTML5.
To better handle today's internet use, HTML5 also includes new elements for better structure, drawing, media content, and better form handling.

New Markup Elements

New elements for better structure:
Tag Description
<article> Specifies independent, self-contained content, could be a news-article, blog post, forum post, or other articles which can be distributed independently from the rest of the site.
<aside> For content aside from the content it is placed in. The aside content should be related to the surrounding content
<bdi> For text that should not be bound to the text-direction of its parent elements
<command> A button, or a radiobutton, or a checkbox
<details> For describing details about a document, or parts of a document
<summary> A caption, or summary, inside the details element
<figure> For grouping a section of stand-alone content, could be a video
<figcaption> The caption of the figure section
<footer> For a footer of a document or section, could include the name of the author, the date of the document, contact information, or copyright information
<header> For an introduction of a document or section, could include navigation
<hgroup> For a section of headings, using <h1> to <h6>, where the largest is the main heading of the section, and the others are sub-headings
<mark> For text that should be highlighted
<meter> For a measurement, used only if the maximum and minimum values are known
<nav> For a section of navigation
<progress> The state of a work in progress
<ruby> For ruby annotation (Chinese notes or characters)
<rt> For explanation of the ruby annotation
<rp> What to show browsers that do not support the ruby element
<section> For a section in a document. Such as chapters, headers, footers, or any other sections of the document
<time> For defining a time or a date, or both
<wbr> Word break. For defining a line-break opportunity.


New Media Elements

HTML5 provides a new standard for media content:
Tag Description
<audio> For multimedia content, sounds, music or other audio streams
<video> For video content, such as a movie clip or other video streams
<source> For media resources for media elements, defined inside video or audio elements
<embed> For embedded content, such as a plug-in
<track> For text tracks used in mediaplayers


The Canvas Element

The canvas element uses JavaScript to make drawings on a web page.
Tag Description
<canvas> For making graphics with a script


New Form Elements

HTML5 offers more form elements, with more functionality:
Tag Description
<datalist> A list of options for input values
<keygen> Generate keys to authenticate users
<output> For different types of output, such as output written by a script

New Input Type Attribute Values

Also, the input element's type attribute has many new values, for better input control before sending it to the server:
Type Description
tel The input value is of type telephone number
search The input field is a search field
url The input value is a URL
email The input value is one or more email addresses
datetime The input value is a date and/or time
date The input value is a date
month The input value is a month
week The input value is a week
time The input value is of type time
datetime-local The input value is a local date/time
number The input value is a number
range The input value is a number in a given range
color The input value is a hexadecimal color, like #FF8800
placeholder Specifies a short hint that describes the expected value of an input field
Partner site : online news

Traditional SEO No More Relevant

This might be a surprise to the newbies of SEO, or even perhaps to some seasoned bloggers. As we all know, SEO (Search Engine Optimization) is all about link building to increase a blog’s visibility in search engines. This includes link exchange, comments on other blogs, forum posting, blog directories submission, article marketing, and bookmarking.
But since Google’s new search algorithm called Panda on February this year to, the traditional SEO is now beginning to fade away like a smoke. It proved on June this year when Google updated PageRanks. Some have been disappointed about the drops of their PRs from 5 to 3 or 3 to 0. Others were gratified by acquiring a PR of 3 or 4 from 0 without doing any SEO.
I can also prove this based on my blogs. My other blog, Blogirature, although more than a year old blog, only has 29 posts, without building any links at all from other blogs. In short, no SEO whatsoever. On June it acquired a PR of 1. My other blog called Beautiful Sites, a nine-month-old blog, with only 13 posts, also acquired a PR of 1. This also didn’t have any search marketing at all. The third blog called The Soundtripper started on May this year, although with a huge number of posts since it’s a music download blog, it got a PR of 3 just last month, August. This blog, Cebu and Davao, got a PR of 3 last June after doing SEO for more than a year with 400 + posts. Now, tell me if I am just having an illusion or what.
This is not only based on my own observation. The statement that the usual SEO is no more important comes from Google itself. I can’t remember if Matt Cutts has said this, but the other engineers of Google said something about the importance of high quality contents, and that they no longer rank sites according to number of backlinks, regardless of their relevancy. They, however, still stated that backlinks are still important but not anymore as what most web developers do: link exchange, forum signatures, blog comments, and as what stated above. They didn’t say anything further than that.
In my opinion, I think the PageRanks updates in June and August is exactly what the Google engineers are talking about. The drops and the increase of PRs speak for themselves.
To me this is good news for bloggers, because they don’t have to worry much on how they can be seen on Google and other search engines. They don’t have to worry about SEO anymore. What they need to focus more is traffic while writing useful contents. And that’s it. Just focus on traffic and write high quality contents, Google will do the rest.
To me PageRanks before are nothing but figures. They didn’t mean anything more than how Internet users see them and how web developers and bloggers want to mean them. Imagine, with billions of websites on the World Wide Web, how can Google measure sites’ popularity according merely through PageRanks?
Well, this is before, when PageRanks are measured through the number of backlinks of a site. PageRanks today is not as like in the old days.
Organic backlinks is still the best way and the only effective way on how Google give you your well deserving PR. And that can be achieved by writing highest quality content possible for your blog’s niche.


Partner site : online news

Web Hosting Reviews Blog

I've written several articles about web hosting before, this time I will inform you about a specific blog that contains about web hosting reviews. It is intended for people who are still confused in deciding which web hosting to use.

Where as the existence of the many hosts is often advantageous as a result of it provides you a lot of choices, it may also be disadvantageous as a result of it makes selecting just about troublesome. However, to form the task of choosing easier, it’s advisable to see out reviews and ratings of several the highest internet hosts.

Alreadyhosting.com is a blog that contains articles about web hosting. This blog is conducting a review and also gives ratings for each web hosting services that have been reviewed, based on features and price. In this blog, you'll see a list of 10 best web hosting services that you can consider. Not only that, Alreadyhosting.com has partnered with hundreds of web hosting companies to offer exclusive hosting discounts, coupon codes, and much more.

The more you know the service is on offer, then you will feel comfortable using them with no web hosting is concerned about the disturbances that affect your web performance.


Partner site : online news