Archive for February 2014

100 Plus Safe Html Fonts

By : Sachin Kumar Sahu

List Of Safe Fonts

The reason that it is difficult to find a font reference or a complete guide to fonts on the web is that the names of fonts are different from mac to pc, the matter is further complicated because certain browsers have limited font support

Not all of the fonts listed here are considered 'safe', and any fonts used on a webpage which are not installed on a users computer will be rendered as the users default font, so it is always a good idea to have 'back up fonts' in your font tags.

The following 12 fonts are installed on both pc and mac and are considered as 'safe'

arial, arial black, comic sans ms, courier, courier new, georgia,
helvetica, impact, palatino, times new roman, trebuchet ms, verdana

 lower case UPPER CASE

  1. academy engraved let
  2. algerian
  3. amaze
  4. arial
  5. arial black
  6. balthazar
  7. bankgothic lt bt
  8. bart
  9. bimini
  10. comic sans ms
  11. book antiqua
  12. bookman old style
  13. braggadocio
  14. britannic bold
  15. brush script mt
  16. century gothic
  17. century schoolbook
  18. chasm
  19. chicago
  20. colonna mt
  21. comic sans ms
  22. commercialscript bt
  23. coolsville
  24. courier
  25. courier new
  26. cursive
  27. dayton
  28. desdemona
  29. fantasy
  30. flat brush
  31. footlight mt light
  32. futurablack bt
  33. futuralight bt
  34. garamond
  35. gaze
  36. geneva
  37. georgia
  38. geotype tt
  39. (*above: Geotype TT)
  40. helterskelter
  41. helvetica
  42. herman
  43. highlight let
  44. impact
  45. jester
  46. joan
  47. john handy let
  48. jokerman let
  49. kelt
  50. kids
  51. kino mt
  52. la bamba let
  53. lithograph
  54. lucida console
  55. map symbols
  56. marlett
  57. (*above: Marlett)
  58. matteroffact
  59. matisse itc
  60. matura mt script capitals
  61. mekanik let
  62. (*above: mekanik let)
  63. monaco
  64. monospace
  65. monotype sorts
  66. ms linedraw
  67. new york
  68. olddreadfulno7 bt
  69. (*above: OldDreadfulNo7 BT)
  70. orange let
  71. palatino
  72. playbill
  73. pump demi bold let
  74. puppylike
  75. roland
  76. sans-serif
  77. scripts
  78. scruff let
  79. serif
  80. short hand
  81. signs normal
  82. (*above: Signs Normal)
  83. simplex
  84. simpson
  85. stylus bt
  86. superfrench
  87. surfer
  88. swis721 bt
  89. swis721 blkoul bt
  90. symap
  91. (*above: Symap)
  92. symbol
  93. (*above: symbol)
  94. tahoma
  95. technic
  96. tempus sans itc
  97. terk
  98. times
  99. times new roman
  100. trebuchet ms
  101. trendy
  102. txt
  103. verdana
  104. victorian let
  105. vineta bt
  106. vivian
  107. webdings
  108. (*above: Webdings)
  109. wingdings
  110. (*above: Wingdings)
  111. western
  112. westminster
  113. westwood let
  114. (*above: Westwood LET)
  115. wide latin
  116. zapfellipt bt

  1. ACADEMY ENGRAVED LET
  2. ALGERIAN
  3. AMAZE
  4. ARIAL
  5. ARIAL BLACK
  6. BALTHAZAR
  7. BANKGOTHIC LT BT
  8. BART
  9. BIMINI
  10. COMIC SANS MS
  11. BOOK ANTIQUA
  12. BOOKMAN OLD STYLE
  13. BRAGGADOCIO
  14. BRITANNIC BOLD
  15. BRUSH SCRIPT MT
  16. CENTURY GOTHIC
  17. CENTURY SCHOOLBOOK
  18. CHASM
  19. CHICAGO
  20. COLONNA MT
  21. COMIC SANS MS
  22. COMMERCIALSCRIPT BT
  23. COOLSVILLE
  24. COURIER
  25. COURIER NEW
  26. CURSIVE
  27. DAYTON
  28. DESDEMONA
  29. FANTASY
  30. FLAT BRUSH
  31. FOOTLIGHT MT LIGHT
  32. FUTURABLACK BT
  33. FUTURALIGHT BT
  34. GARAMOND
  35. GAZE
  36. GENEVA
  37. GEORGIA
  38. GEOTYPE TT
  39. (*above: Geotype TT)
  40. HELTERSKELTER
  41. HELVETICA
  42. HERMAN
  43. HIGHLIGHT LET
  44. IMPACT
  45. JESTER
  46. JOAN
  47. JOHN HANDY LET
  48. JOKERMAN LET
  49. KELT
  50. KIDS
  51. KINO MT
  52. LA BAMBA LET
  53. LITHOGRAPH
  54. LUCIDA CONSOLE
  55. MAP SYMBOLS
  56. MARLETT
  57. (*above: Marlett)
  58. MATTEROFFACT
  59. MATISSE ITC
  60. MATURA MT
  61. MEKANIK LET
  62. (*above: mekanik let)
  63. MONACO
  64. MONOSPACE
  65. MONOTYPE SORTS
  66. MS LINEDRAW
  67. NEW YORK
  68. OLDDREADFULNO7 BT
  69. (*above: OldDreadfulNo7 BT)
  70. ORANGE LET
  71. PALATINO
  72. PLAYBILL
  73. PUMP DEMI BOLD LET
  74. PUPPYLIKE
  75. ROLAND
  76. SANS-SERIF
  77. SCRIPTS
  78. SCRUFF LET
  79. SERIF
  80. SHORT HAND
  81. SIGNS NORMAL
  82. (*above: Signs Normal)
  83. SIMPLEX
  84. SIMPSON
  85. STYLUS BT
  86. SUPERFRENCH
  87. SURFER
  88. SWIS721 BT
  89. SWIS721 BLKOUL BT
  90. SYMAP
  91. (*above: Symap)
  92. SYMBOL
  93. (*above: symbol)
  94. TAHOMA
  95. TECHNIC
  96. TEMPUS SANS ITC
  97. TERK
  98. TIMES
  99. TIMES NEW ROMAN
  100. TREBUCHET MS
  101. TRENDY
  102. TXT
  103. VERDANA
  104. VICTORIAN LET
  105. VINETA BT
  106. VIVIAN
  107. WEBDINGS
  108. (*above: Webdings)
  109. WINGDINGS
  110. (*above: Wingdings)
  111. WESTERN
  112. WESTMINSTER
  113. WESTWOOD LET
  114. (*above: Westwood LET)
  115. WIDE LATIN
  116. ZAPFELLIPT BT 
NOTE : Most browsers prefer font names to be lower case

Source : www.angelfire.com
Tag : ,

10 Interesting Features of HTML5

By : Sachin Kumar Sahu

List of  Top 10 Features of HTML5 

 

New Doctype

 

Still using that pesky, impossible-to-memorize XHTML doctype?
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
If so, why? Switch to the new HTML5 doctype. You’ll live longer — as Douglas Quaid might say.
<!DOCTYPE html>
In fact, did you know that it truthfully isn’t even really necessary for HTML5? However, it’s used for current, and older browsers that require a specified doctype. Browsers that do not understand this doctype will simply render the contained markup in standards mode. So, without worry, feel free to throw caution to the wind, and embrace the new HTML5 doctype.

The Figure Element

 

Consider the following mark-up for an image:
<img src=”path/to/image” alt=”About image” />
<p>Image of Mars. </p>
There unfortunately isn’t any easy or semantic way to associate the caption, wrapped in a paragraph tag, with the image element itself. HTML5 rectifies this, with the introduction of the <figure> element. When combined with the <figcaption> element, we can now semantically associate captions with their image counterparts.
<figure>
<img src=”path/to/image” alt=”About image” />
<figcaption>
<p>This is an image of something interesting. </p>
</figcaption>
</figure>

<small> Redefined

 

Not long ago, I utilized the <small> element to create subheadings that are closely related to the logo. It’s a useful presentational element; however, now, that would be an incorrect usage. The small element has been redefined, more appropriately, to refer to small print. Imagine a copyright statement in the footer of your site; according to the new HTML5 definition of this element; the <small> would be the correct wrapper for this information.
The small element now refers to “small print.”

No More Types for Scripts and Links

 

You possibly still add the type attribute to your link and script tags.
<link rel=”stylesheet” href=”path/to/stylesheet.css” type=”text/css” />
<script type=”text/javascript” src=”path/to/script.js”></script>
This is no longer necessary. It’s implied that both of these tags refer to stylesheets and scripts, respectively. As such, we can remove the type attribute all together.
<link rel=”stylesheet” href=”path/to/stylesheet.css” />
<script src=”path/to/script.js”></script>

To Quote or Not to Quote.

 

HTML5 is not XHTML. You don’t have to wrap your attributes in quotation marks if you don’t want to you. You don’t have to close your elements. With that said, there’s nothing wrong with doing so, if it makes you feel more comfortable. I find that this is true for myself.
<p id=someId> Start the reactor.
Make up your own mind on this one. If you prefer a more structured document, by all means, stick with the quotes.

Make your Content Editable

 

Content Editable
The new browsers have a nifty new attribute that can be applied to elements, called contenteditable. As the name implies, this allows the user to edit any of the text contained within the element, including its children. There are a variety of uses for something like this, including an app as simple as a to-do list, which also takes advantage of local storage.
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8″>
<title>untitled</title>
</head>
<body>
<h2> To-Do List </h2>
<ul contenteditable=”true”>
<li> Break mechanical cab driver. </li>
<li> Drive to abandoned factory
<li> Watch video of self </li>
</ul>
</body>
</html>
Or, as we learned in the previous tip, we could write it as:
view plaincopy to clipboardprint?
<ul contenteditable=true>

Email Inputs

 

If we apply a type of “email” to form inputs, we can instruct the browser to only allow strings that conform to a valid email address structure. That’s right; built-in form validation will soon be here! We can’t 100% rely on this just yet, for obvious reasons. In older browsers that do not understand this “email” type, they’ll simply fall back to a regular textbox.
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8″>
<title>untitled</title>
</head>
<body>
<form action=”" method=”get”>
<label for=”email”>Email:</label>
<input id=”email” name=”email” type=”email” />
<button type=”submit”> Submit Form </button>
</form>
</body>
</html>
 

Email Validation

 

At this time, we cannot depend on browser validation. A server/client side solution must still be implemented.
It should also be noted that all the current browsers are a bit wonky when it comes to what elements and attributes they do and don’t support. For example, Opera seems to support email validation, just as long as the name attribute is specified. However, it does not support the placeholder attribute, which we’ll learn about in the next tip. Bottom line, don’t depend on this form of validation just yet…but you can still use it!

Placeholders

 

Before, we had to utilize a bit of JavaScript to create placeholders for textboxes. Sure, you can initially set the value attribute how you see fit, but, as soon as the user deletes that text and clicks away, the input will be left blank again. The placeholder attribute remedies this.
<input name=”email” type=”email” placeholder=”doug@givethesepeopleair.com<script type=”text/javascript”>
/* <![CDATA[ */
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1].previousSibling;a=l.getAttribute(‘data-cfemail’);if(a){s=”;r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
</script>” />
Again, support is shady at best across browsers, however, this will continue to improve with every new release. Besides, if the browser, like Firefox and Opera, don’t currently support the placeholder attribute, no harm done.
Validation

Local Storage

 

Thanks to local storage (not officially HTML5, but grouped in for convenience’s sake), we can make advanced browsers “remember” what we type, even after the browser is closed or is refreshed.
Subscribe to our YouTube page to watch all of the video tutorials!
Or, watch this video on Screenr.com.
“localStorage sets fields on the domain. Even when you close the browser, reopen it, and go back to the site, it remembers all fields in localStorage.”
-QuirksBlog
While obviously not supported across all browsers, we can expect this method to work, most notably, in Internet Explorer 8, Safari 4, and Firefox 3.5. Note that, to compensate for older browsers that won’t recognize local storage, you should first test to determine whether window.localStorage exists.
Support matrix
via http://www.findmebyip.com/litmus/

The Semantic Header and Footer

 

Gone are the days of:
<div id=”header”>

</div>
<div id=”footer”>

</div>
Divs, by nature, have no semantic structure — even after an id is applied. Now, with HTML5, we have access to the <header> and <footer> elements. The mark-up above can now be replaced with:
<header>

</header>
<footer>

</footer>
It’s fully appropriate to have multiple headers and footers in your projects.
Try not to confuse these elements with the “header” and “footer” of your website. They simply refer to their container. As such, it makes sense to place, for example, meta information at the bottom of a blog post within the footer element. The same holds true for the header

- Copyright © NewSaurus - FaceOpedia - Powered by Blogger-