Categories
Html

Redirect from an HTML page

Redirect HTML page is done using the meta refresh for fallback purposes in the head section of a HTML i.e. replace old page with the URL of the page you need to redirect to. This is  the simplest way to Redirect HTML page i.e. one URL to another URL with the Meta Refresh tag. We […]

Categories
Css Html

Disable resizable property of textarea

Want to disable resizable property of textarea? Here is some tips to prevent the click on the bottom right corner of the textarea. To disable resizable property of textarea, there are a few options. <textarea name=”txtName” id=”txtID”></textarea> CSS can solve this problem and unfortunately it’s only supported on 60% of used browsers nowadays. Basically, you […]

Categories
Html

Valid values for id attribute in HTML

While creating the id attributes for HTML elements, we need to provide Valid values for id attribute. Let’s see what are they. ID and NAME value must contain with a letter (A-Za-z) and this may be followed by any number of letters, digits (0-9), underscores (“_”), hyphens (“-“), periods (“.”) and colons (“:”). In HTML […]

Categories
Html

Href attribute for links: “javascript:void(0)” or “#”?

“javascript:void(0)” or “#”, these are two type by which we can call a JavaScript code. But, what do you prefer to do most? These are for a building a link that has the sole purpose of running JavaScript code. But, in terms of functionality, page loading speed, validation purposes, etc. It may come to our […]

Categories
Html

Why does HTML think “chucknorris” is a color?

Why does HTML think “chucknorris” is a color? Any unknown digit in a HTML color code are treated as  zero so using invalid characters in a color code shows different value. Missing or incorrect digits are treated as 0 in HTML color code. For example the values #F0F0F0, F0F0F0, F0F0F, #FnFnFn and FnFnFn are all […]