Tag Archives: HTML

Web Page Caching Tutorial

This is a good tutorial on the different types of web page caching. It will give you insight on the best way to cache your site. Caching Tutorial for Web Authors and Webmasters

Html Parsing – Extracting and Removing Html Tag of Specific Class From String in PHP

There might be a time when your scraping a page and would like to extract a specific div block from the returned html. I find that using regular expression searches does not always work on large blocks of text. I have made a PHP function that takes a identifier value, start and end delimiter tags […]

HTML: Doctype Declarations

The document type declarations is always the first line before the html tag in a web document. HTML 4.01 Transitional Allows depracated html tags. Cannot be used with frames. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> HTML 4.01 Strict Does not allow deprecated html tags. Cannot be used with frames. <!DOCTYPE HTML PUBLIC "-//W3C//DTD […]

CSS: Vertically Align Div or Any Block Type Object Inside a Div

This is one of the most common ways to vertically align a div or any block type object within a div. The child object has to be a fixed height for this to work. Only block objects such as div, img or p tags can have a fixed height. You can also make inline type […]

CSS: Horizontally Centering DIV of Unknown Width

The following example will show how to center a dynamic div of unknown width within another div. Since there is no dimensions you cannot center using margin: auto or text-align: center for Internet Explorer. You will have to do some css trickery to center it for IE. Will be centering a crude menu bar within […]

Joomla: Custom Http Error Code Page

The default http error code page is located at templates/system/error.php. Joomla will show this for any http errors encountered. You can just modify this or can create a error page for each template. The advantage of creating a error page for each template is that you can display an error message that is integrated into […]