Wednesday, January 25, 2012

HTML5 input types

HTML5 brings several new input types for forms. The idea of these new types is that the user agent can provide the user interface, such as a calendar date picker or integration with the user’s address book, and submit a defined format to the server.

It gives the user a better experience as his input is checked before sending it to the server meaning there is less time to wait for feedback.

HTML5 adds a few new values for the input element’s type attribute:

  • tel
  • email
  • url
  • number
  • range
  • date
  • month
  • week
  • time
  • datetime
  • datetime-local
  • search
  • color

 
For using the new input types below is the syntax for each of them:


Now let’s take a closer look at each input type. 

Input type “tel” 


All browsers support the input type telephone tag in the way that they all display it as a text field. The HTML 5 specification does not require that browsers enforce any specific telephone number syntax or display the field in any particular way.
The desktop browsers display a text box for the tel type.
The mobile browsers, like mobile Safari on the iPhone and iPad will display the number keypad to enter this form data rather than the alphabet keyboard. 

Input type “email” 

The “email” type input field should contain an email address.
The email address will be validated on submit.
The desktop browsers display a text box for the email type.
The mobile browsers, like mobile Safari change the input interface for this field to make it easier to use on small devices.

Input type “url” 

The “url” type input field should contain an email address.
The url address will be validated on submit.
The desktop browsers display a text box for the url type.
The mobile browsers, like mobile Safari change the input interface for this field to make it easier to use on small devices.

Input type “number”

The number type is used for input fields that contain numeric values.
The developer can set limitations on the number accepted by using min, max and step.

Attributes supported:
min – minimum number value accepted
max – maximum number value accepted
step – valid number intervals (step=”2″ specifies only -2, 0 2 … are valid values)
value – default value

Input type “range”
 The range type is used for input fields that contain a value from a range of numbers.
The range type is going to be displayed as a slider bar.

Attributes supported:
min – minimum number value accepted
max – maximum number value accepted
step – valid number intervals (step=”2″ specifies only -2, 0 2 … are valid values)
value – default value

Input type “date” 


Input type “month”

Input type “week”

Input type “time”

Input type “datetime”

Input type “datetime-local”

Input type “search”
The search input type field behaves like a regular text field.

Input type “color”
The color input type type should be used for input fields that should contain a color.
The Chrome browser allows only hex values.
The Opera browser will display a color picker for the user to select the desired color.      

How to convert video to HTML5 video formats using Miro Video Converter

The Miro Video Converter represents a simple way for converting your videos to the formats supported by the new HTML5 video tag. The tool is free, open and very easy to use.
The Miro Video Converter can be downloaded from 
http://www.mirovideoconverter.com/.

1. Download and install Miro Video Converter. For setting the location of the downloaded files or converted files please go to File -> Preferences.

2. Open the video you want to convert using File ->Open or by using File->Import. You can search for video files in a specific folder using File -> Import -> Search in a Folder. Also the converter has a nice search feature for looking up videos on YouTube, Hulu etc.

3. After the video has been opened/imported you can select Videos from the left menu and you will see the list containing the new imported videos.

4. Select the video you want to convert and go to Convert menu. From the menu select the format in which you want the video to be converted. For web you should convert to Ogg Theora(video), Ogg Vorbis(audio) or MP4(video).

5. After selecting one of the options the conversion process will start and you can observe the progress by selecting “Converting” from the left menu. Once the conversion process is done you can click on Reveal in Explorer to be taken to the location of the converted file.


6. Now all that you have left to do for embedding the converted video on your web page is to use the new HTML5 video tag just like this.




The text between the < video > and < /video > tags will be displayed in browsers that do not support video.

Tuesday, January 24, 2012

HTML5 Tag Reference

HTML5


HTML5 improves interoperability and reduces development costs by making precise rules on how to handle all HTML elements, and how to recover from errors.

Some of the new features in HTML5 are functions for embedding audio, video, graphics, client-side data storage, and interactive documents. HTML5 also contains new elements like nav, header, footer, and figure.




Creating transparent images with CSS is easy

Note: The CSS opacity property is a part of the W3C CSS3 recommendation.

Example 1 - Creating a Transparent Image

The CSS3 property for transparency is opacity.
First we will show you how to create a transparent image with CSS.

Regular image:



The same image with transparency:


 Look at the following CSS:

img
{
opacity:0.4;
filter:alpha(opacity=40); /* For IE8 and earlier */
}
IE9, Firefox, Chrome, Opera, and Safari use the property opacity for transparency. The opacity property can take a value from 0.0 - 1.0. A lower value makes the element more transparent.


IE8 and earlier use filter:alpha(opacity=x). The x can take a value from 0 - 100. A lower value makes the element more transparent.


Example 2 - Image Transparency - Hover Effect

The CSS looks like this:

img
{
opacity:0.4;
filter:alpha(opacity=40); /* For IE8 and earlier */
}
img:hover
{
opacity:1.0;
filter:alpha(opacity=100); /* For IE8 and earlier */
}

The first CSS block is similar to the code in Example 1. In addition, we have added what should happen when a user hover over one of the images. In this case we want the image to NOT be transparent when the user hover over it.

The CSS for this is: opacity=1.

IE8 and earlier: filter:alpha(opacity=100).

When the mouse pointer moves away from the image, the image will be transparent again.

 

Example 3 - Text in Transparent Box


The source code looks like this:



div.background
  {
  width:500px;
  height:250px;
  background:url(klematis.jpg) repeat;
  border:2px solid black;
  }
div.transbox
  {
  width:400px;
  height:180px;
  margin:30px 50px;
  background-color:#ffffff;
  border:1px solid black;
  opacity:0.6;
  filter:alpha(opacity=60); /* For IE8 and earlier */
  }
div.transbox p
  {
  margin:30px 40px;
  font-weight:bold;
  color:#000000;
}




Div code



First, we create a div element (class="background") with a fixed height and width, a background image, and a border. Then we create a smaller div (class="transbox") inside the first div element. The "transbox" div have a fixed width, a background color, and a border - and it is transparent. Inside the transparent div, we add some text inside a p element.

Friday, January 20, 2012

10 Tips for Best HTML Web Forms

Here is a list of what we consider the most important 10 things you have to do to boost your HTML form experience:


1. Big and wide input fields






2. HTML5 placeholder and tooltips for more details






3. Client side field validation






4. Tidy HTML markup





5. Simple and big submit button






6. Mark required filelds







7. Use CAPTCHAs only if necessary


8. Don’t use a reset button


9. Auto complete makes thinks move faster and easier


10. Assign HTML labels for the fields they represent







Wednesday, January 18, 2012

CSS3 WEB PRICING TABLES PACK (GRIDS) – CODECANYON


This is a pack of pure CSS3 Pricing Tables (Grids) with 2 table styles and 20 predefined color versions including: hover states, ability to add a custom ribbon to the column header, table cell tooltips. This version is dedicated for any custom CMS based site. 


Demo:
http://codecanyon.net/item/css3-web-pricing-tables-pack-grids/234948




Download:
     http://www.fileserve.com/file/cEzKVf7
    http://www.wupload.com/file/2648190052/css3-web-pricing-tables-pack-grids-v4.rar 

Saturday, January 14, 2012

The Path (Buzurgon ke Humsafar)

We as a charitable organization appeal to all philanthropists and other people including corporate sector who believe in charity and social welfare for the society at large to come forward and donate us generously both as regular and corpus donations to enable us achieve our pursuit of service to the humanity. We on our part want to assure that each and every penny collected by us shall be spent for welfare and for making some difference in the lives of the under privileged and deprived section of the society.

The Exact Design

Under this scheme The Path will provide a driver and vehicle free of cost to the elderly who do not have their own means transportation and face problem executing day to day chores.

To Whom?

  • Senior citizens above the age of 60years
  • Living alone/ husband & wife.
  • Residents of Delhi.
  • Do not have their own vehicle
  • Monthly income less than 8,000 /-.

Priority will be given to elderly -

  • Females.
  • Who desire to go for medical purposes (planned not emergencies) / for condolence meetings/ to Railway Station.
  • Who wish to attend any important official work.

How ?

  • By informing the hotline 3 days beforehand between 9 to 11 AM.
  • The Path will confirm booking before 24 hours.
  • Pick up & drop at their doorstep.

When ?

  • Between 10 AM to 5 PM.
  • At least after 30 days from the initial service.
  • From Monday to Friday.

Where ?

  • Pickup and drop from any part of Delhi/New Delhi