How to add a browser tab icon (favicon) for a website?

There are actually two ways to add a favicon to a website. <link rel=”icon”> Simply add the following code to the <head> element: <link rel=”icon” href=”http://example.com/favicon.png”> PNG favicons are supported by most browsers, except IE <= 10. For backwards compatibility, you can use ICO favicons. Note that you don’t have to precede icon in rel … Read more

Put icon inside input element in a form

The site you linked uses a combination of CSS tricks to pull this off. First, it uses a background-image for the <input> element. Then, in order to push the cursor over, it uses padding-left. In other words, they have these two CSS rules: background: url(images/comment-author.gif) no-repeat scroll 7px 7px; padding-left:30px;

How to display count of notifications in app launcher icon [duplicate]

Android (“vanilla” android without custom launchers and touch interfaces) does not allow changing of the application icon, because it is sealed in the .apk tightly once the program is compiled. There is no way to change it to a ‘drawable’ programmatically using standard APIs. You may achieve your goal by using a widget instead of … Read more