Since I’m preparing to switching to Ubuntu as my only OS (now running dual boot with Windows 7 & Ubuntu) I started to look for the optimal partition setup. In my laptop (Lenovo ThinhPad x220) I now have a 256Gb SSD drive with 16Gb RAM and Intel(R) x64 Core(TM) i7-2620M CPU @ 2.70GHz processor. Below is the partitioning scheme which I think will be optimal. Continue reading
I’ve just extracted some list of countries that were put in one dropdown menu. I got them from the source code so it looks something like that:
<option label="Afghanistan" value="4">Afghanistan</option>
<option label="Albania" value="5">Albania</option>
<option label="Algeria" value="6">Algeria</option>
<option label="American Samoa" value="7">American Samoa</option>
<option label="Andorra" value="8">Andorra</option>
<option label="Angola" value="9">Angola</option>
When a request is made to your server for a page on your site (for instance, when a user accesses your page in a browser or when Googlebot crawls the page), your server returns an HTTP status code in response to the request.
This status code provides information about the status of the request. This status code gives Googlebot information about your site and the requested page.
Some common status codes are:
200 – the server successfully returned the page
404 – the requested page doesn’t exist
503 – the server is temporarily unavailable
A complete list of HTTP status codes is below. Continue reading
This post explains the fundamental differences between character sets used on your website. Here is the most popular charset definition that should be placed in the within the HEAD tag:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
For ASCII characters the following code can be used:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
Linking to an External Style Sheet
An external style sheet may be linked to an HTML document through HTML’s LINK element:
<link type="text/css" rel="stylesheet"
media="only screen and (max-device-width: 480px)" href="iPhone.css">
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen>
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css" TITLE="8-bit Color Style"
<LINK REL="Alternate StyleSheet" HREF="color-24b.css" TYPE="text/css"
TITLE="24-bit Color Style" MEDIA="screen, print">
<LINK REL=StyleSheet HREF="aural.css" TYPE="text/css" MEDIA=aural>
HTML declarations known as DTDs (DocType Declarations) are simply telling your browser in which markup language this site is written. Here are some on the most popular definitions.
The DTD tag is the only tag that can be found above the opening tag.
HTML 4.01 DTDs
- Strict DTD does not allow presentational markup with the argument so CSS should be used for that instead. This is how the Strict DTD looks:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- Transitional DTD allows some older PUBLIC and attributes that have been deprecated:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- If frames are used, the Frameset DTD must be used instead, like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"