Showing posts with label Html. Show all posts
Showing posts with label Html. Show all posts

Thursday, July 21, 2011

Add new font family to your site

Style take important role in website, some time our customer asked some different font for site.
Google give lots of fonts to style our site we can use this via some simple steps with out no cost.

For more detail about Google Font please see the Google web Fonts. Here there are some simple click we can get our required font style and get the link source for our font and use that style.


Keyword: New fond type, New font style , Font family, how to insert google font

Thursday, June 23, 2011

How to stop autocomplete in html forms?

In form by default we have option to fill the input fields by remembering what you entered in previous text in that field.then autocomplete provide the list in dropdown we can just select options from that dropdown.we can turn off/on autocomplete.

in form just use <form autocomplete='off' using this we turn off the autocomplete in that form all input fields.

for individual element you can set the same to that particular field
<input autocomplete='off'


Wednesday, March 9, 2011

Ask Browsers to remove site cache?

Browser cache mean certain items downloaded and saved in local for future access. Browser cache mainly used for speed up reloading of previously visted sites. Drawback was depending on viewer set up there browser cache, it display the older version of your site.So we must mention whether the browser use old cache or  get a newer copy of your site.

You can set this using meta tag. Meta tag should be placed between <head> and </head>.

<meta http-equiv="Expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
<meta http-equiv="Pragma" content="no-cache">

Dates must be given in RFC850 format, in GM and it should be the past date so that browser will automatically change the cached content.

For more detail about META you can get it from here:

HTML META Tags
 
Technical Tags:
 Remove cache, remove old site cache , ask browser to add new cache.

Sunday, October 31, 2010

Difference between span and div element?

<span>

  1. span is an inline-element
  2. does not do any formatting on it`s own.
  3. take little space(width) as possible
<div>
  1. block-level element
  2.  includes a paragraph break 
  3. take much space(width) as possible