Re: [PHP] Formatting an ECHO statement.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There's nothing wrong with using <em> as it indicates emphasised text, which is semantic. Use span tags with classes only when the content you're styling has no semantic alternative.

<strong>important message</strong> is much better for machines (including search engines, screen readers, etc) to infer a meaning for than
<span class="bold_text">important message</span>

Thanks,
Ash
http://www.ashleysheridan.co.uk

----- Reply message -----
From: "tedd" <tedd.sperling@xxxxxxxxx>
Date: Mon, Oct 18, 2010 17:51
Subject: [PHP] Formatting an ECHO statement.
To: <php-general@xxxxxxxxxxxxx>

At 9:47 AM -0400 10/18/10, Steve Staples wrote:
>or create a style sheet, with a class definition for italic.
>
>Steve.


+1

The "best practices" way to do it.

Don't style output in an echo statement, but rather put styling in a 
css sheet, It's much cleaner there.

Cheers,

tedd

-- 
-------
http://sperling.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux