Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

html code snippets

use <code>...</code> for inline code snippets
use <pre>...</pre> for block code snippets

favicon

ever looked at a website, and thought you like it's favicon enough to want to save it? it is easy enough.

every website stores its favicon, as favicon.ico on it's root.

at the brower address bar, enter website url followed by /favicon.ico and save the image!

for example, google's favicon can be found at http://google.com/favicon.ico.

static front page for blogger

you might have noticed that your blogspot home page defaults to the recent posts. blogs look different from standard websites, as their front page continuosly changes displaying the latest blog posts.

i had a requirement for a static front page, for my blog to mimic a website. this is not too difficult. but not too obvious either.

Display XML/HTML code tags in Blog posts

I had trouble displaying my previous post, containing xml tags. This blog post here helped me get over my difficulty. Basically you need to transcode "<" and ">" with "&lt;" and "&gt;" respectively, or they will be rendered as code tags and your post will not be displayed as expected.

I used centricle's online encode/decode tool to easily convert my code, rather than manually transcode, a rather cumbersome task. I still had to manually convert leading spaces.

most viewed