Re: Formatting an ECHO statement.

From: Date: Mon, 18 Oct 2010 17:03:44 +0000
Subject: Re: Formatting an ECHO statement.
Groups: php.general 
Request: Send a blank email to php-general+get-308798@lists.php.net to get a copy of this message
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@gmail.com> Date: Mon, Oct 18, 2010 17:51 Subject: [PHP] Formatting an ECHO statement. To: <php-general@lists.php.net> 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

« previous php.general (#308798) next »