public static function tag($name, $attributes = array(), $content = null)
	{
		$tag = '<' . $name;

		$attributeString = static::arrayToAttributes($attributes);

		//Add the attribute string if needed
		if ( !empty($attributeString) )
		{
			$tag .= ' ' . $attributeString;
		}

		//Work out how we are going to close the tag
		if ( is_null($content) )
		{
			//No content for the tag so just close it.
			$tag .= '/>';
		}
		else
		{
			$tag .= '>' . $content . '</' . $name . '>';
		}

		return $tag;
	}