Short Tag – Web Development Blog

Entries for the ‘XHTML’ Category

UL, LI – HTML and Css lists, horizontal positioning

The HTML lists (with CSS styling) are very handy for assembling HTML designs. They are very useful when creating menus, especially for horizontal menus. You could use tables to create a horizontal menu, but tables are overrated, they load harder than divs or lists and they are not good for SEO. You could use divs, [...]

Change the character set of your page with PHP and HTML

When using special characters you need to set the character set of your page, otherwise each browser uses the character set it pleases.
Let’s say my backend uses UTF-8 character set, then my frontend should use UTF-8 as well.
HTML code:
<meta http-equiv=”content-type” content=”text/html; charset=utf-8″ />
PHP code:
header(‘Content-type: text/html; charset=”utf-8″‘);
I use the both , but one should be [...]