When using the TABLE tag, there are two attributes that are commonly added; cellspacing and cellpadding. For padding, there is an obvious match with the CSS definition padding. Indeed the attribute for padding-top, padding-bottom, padding-left and padding-right all behave as expected. However there is no directly corresponding property for cellspacing. One might assume that the [...]
You are currently browsing the archives for the HTML help category.
A quick and effective way to enhance and personalise a webpage, or section (body, div, table) is to add an image background. This can also add greater depth than a flat colour. For this example let us look at how to add a background image to a myspace page; http://www.myspace.com/digify
Sooner or later you will need to create a table of some sort. There are lots of options for displaying tabular data in XHTML so first lets look at basic HTML tables.
How can you add an email address link (mailto:) to a webpage but also reduce the risk of that email address being harvested by spammers?
Every website looks a lot better with pictures. To get some great images on your page youâ€™ll just need one simple line: <img src=”http://www.xhtmltips.co.uk/site/html_help_link.gif” />
In HTML there are several different types of lists. Mostly commonly youâ€™ll use an unordered list. There are two other types of lists that you could use as well: the ordered list and the definition list. Of course an ordered list can be used for items with priorities, or to show a specific order of [...]
These two tags are often used inter-changeably by developers for different reasons, so what are the differences between them? How should they be used to markup web pages?
Often a designer will wish to have a section or paragraph title bar which contains two separate pieces of text displayed on one line. This may be a text title on the left and a date or time stamp on the right. This can be accomplished very cleanly with a few CSS attributes applied to [...]
Thereâ€™s pretty much one element you absolutely canâ€™t live without when marking up your pages. Itâ€™s the paragraph element. Youâ€™ll use this tag to mark, you guessed it, paragraphs. Hereâ€™s how: <p>This is my paragraph that isnâ€™t much of a paragraph. Arenâ€™t paragraphs 3-4 sentences long?</p>
Due to the nature of the Internet, people may be viewing your web page with many different types of browsers such as a text-only browser, a voice browser, or a cell phone; they may be clicking through your site without a mouse, or keyboard, or they may be browsing hands-free. Some people may be accessing [...]