Archive for the 'Tutorials' category

How to automatically add a trailing slash to an URL

Posted on Monday May 3rd, 2010 by Matt

After long and boring researchs on how to automatically add a trailing slash ( ‘/’ ) after my web sites’ addresses, I thought some people might enjoy sharing the results of this quest… For those who would wonder the purpose in that, it’s once again about search engine optimization. Indeed, for a search engine, http://www.webagency.com/name [...]

Top of page

Variable size custom button with CSS

Posted on Tuesday February 16th, 2010 by Matt

Introduction Recently, I’ve been looking at what is called “elastic” css layout. Basically, il’t about using the “em” unit instead of the pixel. This unit is a relative unit, as the “%”, but it is relative to the current font size instead of the container size. To understand its usefulness, one has to know that [...]

Top of page

DOMDocument and UTF-8, a php charset problem

Posted on Sunday October 18th, 2009 by Matt

Today we’ll see how to manipulate DOM elements with php. We’ll take for example a very useful function which is oddly kind of hard to find : how to add a specific attribute to some HTML elements. This can be useful for example to add a rel=”nofollow” attribute to some links to let the search [...]

Top of page

Javascript is a very useful language for many things nowadays. Unfortunately, each browser implements it in a different way, and of course they don’t offer the same way of handling events ! Let’s take an example : you’ve just made a div that you can drag at will with the mouse. We click, the dragging [...]

Top of page

URL-Rewriting and SEO

Posted on Monday December 8th, 2008 by Matt

You’ve decided to use url-rewriting to have more readable and ‘user-friendly’ ones. That is probably a good thing, given the fact that search engines too prefer them this way. But careful, there are some pitfalls to avoid ! Indeed, with this type of configuration, we don’t make a good distinction between content and directory… and [...]

Top of page

Multiples domain names and SEO

Posted on Sunday November 23rd, 2008 by Matt

What to do when we have several domain names pointing to the same site to handle best the referencing ? Be it to protect the closest names (ex: mysite.com and my-site.com) or to take advantage of the various TLD (Top Level Domain) (ex: mysite.com and mysite.org), there are good reasons to use several domain names [...]

Top of page

404 and SEO

Posted on Wednesday October 29th, 2008 by Matt

When trying to optimize a site for a better referencement on search engines, one quickly dives into the underground world of SEO (Search Engine Optimization). There is in that world a lot of common sense and a few tricks to know, along with some concepts flirting with the sacred, like the well known Google’s PageRank. [...]

Top of page

Préchargement d’images avec jQuery

Posted on Friday May 23rd, 2008 by Matt

Sorry, this entry is only available in Français.

Top of page
Clicky Web Analytics