<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Class Presentation</title>
	<atom:link href="http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/feed/" rel="self" type="application/rss+xml" />
	<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/</link>
	<description>Things that Eric A. Meyer, CSS expert, writes about on his personal Web site; it&#039;s largely Web standards and Web technology, but also various bits of culture, politics, personal observations, and other miscellaneous stuff</description>
	<lastBuildDate>Fri, 10 May 2013 11:50:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Dean</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-6331</link>
		<dc:creator>Dean</dc:creator>
		<pubDate>Sun, 04 Sep 2005 02:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-6331</guid>
		<description><![CDATA[I like using &#039;standalone&#039; for an image as Eric describes.  In my mind it &lt;em&gt;is&lt;/em&gt; structural rather than presentational -- it says that the image sits apart (or &quot;stands alone&quot;) from the rest of the content just like &#039;entry&#039; is used to single out individual blog entries.  I use &#039;standalone&#039; myself and intend to continue using it.

I don&#039;t know what to do for &#039;border&#039; though.

A problem I have is what class names to give to other images like the ones floated within an article, or photos of the author, etc.  Two people above suggested &#039;illustrative&#039; for the former.  Maybe that&#039;s good, I don&#039;t know.  It assumes all such images would always be floated right, or always floated left.  What if I want variety like in a newspaper?  Speaking of that, I wonder what class names / naming conventions are used by printers.  We&#039;ve already adopted their use of &#039;masthead&#039; -- maybe they have some other good ideas we can use.

I wish I had more ideas on this because, in this blog topic at least, there isn&#039;t a clear naming convention yet.  I&#039;ll have to go see how Eric names his floated images. ;-)]]></description>
		<content:encoded><![CDATA[<p>I like using &#8216;standalone&#8217; for an image as Eric describes.  In my mind it <em>is</em> structural rather than presentational &#8212; it says that the image sits apart (or &#8220;stands alone&#8221;) from the rest of the content just like &#8216;entry&#8217; is used to single out individual blog entries.  I use &#8216;standalone&#8217; myself and intend to continue using it.</p>
<p>I don&#8217;t know what to do for &#8216;border&#8217; though.</p>
<p>A problem I have is what class names to give to other images like the ones floated within an article, or photos of the author, etc.  Two people above suggested &#8216;illustrative&#8217; for the former.  Maybe that&#8217;s good, I don&#8217;t know.  It assumes all such images would always be floated right, or always floated left.  What if I want variety like in a newspaper?  Speaking of that, I wonder what class names / naming conventions are used by printers.  We&#8217;ve already adopted their use of &#8216;masthead&#8217; &#8212; maybe they have some other good ideas we can use.</p>
<p>I wish I had more ideas on this because, in this blog topic at least, there isn&#8217;t a clear naming convention yet.  I&#8217;ll have to go see how Eric names his floated images. ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Thompson</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5561</link>
		<dc:creator>Eric Thompson</dc:creator>
		<pubDate>Fri, 29 Apr 2005 20:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5561</guid>
		<description><![CDATA[I&#039;d have to second the idea of enclosing the &lt;code&gt;img&lt;/code&gt;s inside &lt;code&gt;em&lt;/code&gt;&lt;code&gt;s and/or &lt;/code&gt;&lt;code&gt;strong&lt;/code&gt;s, if they&#039;re meant to be emphasized.  If not, well, then I think you&#039;re stuck with purely presentational classes for them.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;d have to second the idea of enclosing the <code>img</code>s inside <code>em</code><code>s and/or </code><code>strong</code>s, if they&#8217;re meant to be emphasized.  If not, well, then I think you&#8217;re stuck with purely presentational classes for them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Clay</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5560</link>
		<dc:creator>Steve Clay</dc:creator>
		<pubDate>Fri, 29 Apr 2005 20:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5560</guid>
		<description><![CDATA[I have &lt;a href=&quot;http://mrclay.org/index.php/2005/04/29/avoiding-presentational-classnames/&quot; rel=&quot;nofollow&quot;&gt;a couple potential solutions&lt;/a&gt;, one of which is to use Javascript to add presentational classNames so they stay out of the document...]]></description>
		<content:encoded><![CDATA[<p>I have <a href="http://mrclay.org/index.php/2005/04/29/avoiding-presentational-classnames/" rel="nofollow">a couple potential solutions</a>, one of which is to use Javascript to add presentational classNames so they stay out of the document&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Israel</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5557</link>
		<dc:creator>Larry Israel</dc:creator>
		<pubDate>Wed, 27 Apr 2005 06:26:06 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5557</guid>
		<description><![CDATA[In some cases, you just need two or three different styles, and the reason for styling differently may be tricky to describe in a class name, so why not give them generic but meaningless names? On a business site where I need two different styles for tables (yes, tabular data) and am faced with a similar naming issue, I&#039;ve sometimes resorted to simply:
&lt;code&gt;.tablestyle1&lt;/code&gt; and &lt;code&gt;.tablestyle2&lt;/code&gt;
or &lt;code&gt;table.style1&lt;/code&gt; and &lt;code&gt;table.style2&lt;/code&gt;

I avoid such names where possible, but there are some cases where nothing else seems particularly better. Eric&#039;s example may or may not have more meaningful solution than this. If you want to change one class of styles later, you can do so without it being misnamed. A disadvantage is that you sometimes forget which style is which and have to refer to the style sheet.

Such naming and process is similar to what I&#039;ve done when working on technical documents in FrameMaker where my template has a couple table styles named generically, and this seems like a reasonable test or comparison. I think it&#039;s interesting to imagine what you would do if you were using the Styles feature while working in (for example) InDesign or another DTP program.]]></description>
		<content:encoded><![CDATA[<p>In some cases, you just need two or three different styles, and the reason for styling differently may be tricky to describe in a class name, so why not give them generic but meaningless names? On a business site where I need two different styles for tables (yes, tabular data) and am faced with a similar naming issue, I&#8217;ve sometimes resorted to simply:<br />
<code>.tablestyle1</code> and <code>.tablestyle2</code><br />
or <code>table.style1</code> and <code>table.style2</code></p>
<p>I avoid such names where possible, but there are some cases where nothing else seems particularly better. Eric&#8217;s example may or may not have more meaningful solution than this. If you want to change one class of styles later, you can do so without it being misnamed. A disadvantage is that you sometimes forget which style is which and have to refer to the style sheet.</p>
<p>Such naming and process is similar to what I&#8217;ve done when working on technical documents in FrameMaker where my template has a couple table styles named generically, and this seems like a reasonable test or comparison. I think it&#8217;s interesting to imagine what you would do if you were using the Styles feature while working in (for example) InDesign or another DTP program.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5553</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Sat, 23 Apr 2005 06:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5553</guid>
		<description><![CDATA[I like your comment, Eric, where you warn off those who would tell you not to worry about this. That you &lt;i&gt;enjoy&lt;/i&gt; pondering such quandries. Well, let&#039;s take it a bit further. I like enclosing especially spectacular bits of text with tildes and other typographical bric-a-brac. Should such bracketing elements be set off with a css selector? How about some block-quoted ascii-art? 
&lt;code&gt;
.art { // here we present the presentation....
font:: monospace;
padding: 10px;
}
&lt;/code&gt;
It&#039;s amusing to see this discussion enter the realm of Austin&#039;s demarcation of the &quot;performative.&quot; Eric, you should check out Derrida&#039;s &quot;Limited Inc.&quot; for an amusing consideration of the philosophical ground on which you are starting to tread. CSS designers aren&#039;t the first to become pleasantly (if maddeningly) distracted with this question.....
]]></description>
		<content:encoded><![CDATA[<p>I like your comment, Eric, where you warn off those who would tell you not to worry about this. That you <i>enjoy</i> pondering such quandries. Well, let&#8217;s take it a bit further. I like enclosing especially spectacular bits of text with tildes and other typographical bric-a-brac. Should such bracketing elements be set off with a css selector? How about some block-quoted ascii-art?<br />
<code><br />
.art { // here we present the presentation....<br />
font:: monospace;<br />
padding: 10px;<br />
}<br />
</code><br />
It&#8217;s amusing to see this discussion enter the realm of Austin&#8217;s demarcation of the &#8220;performative.&#8221; Eric, you should check out Derrida&#8217;s &#8220;Limited Inc.&#8221; for an amusing consideration of the philosophical ground on which you are starting to tread. CSS designers aren&#8217;t the first to become pleasantly (if maddeningly) distracted with this question&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Leombruno</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5498</link>
		<dc:creator>Jeff Leombruno</dc:creator>
		<pubDate>Fri, 15 Apr 2005 20:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5498</guid>
		<description><![CDATA[Eric,

Without knowing under what circumstances you choose to &quot;border&quot; your imags, one can&#039;t really address the question.

Yes, the class of &quot;border&quot; is not correct, as at some point in the future you could decide that these images should not be bordered.  

Even another class name that is presentational, but not as specific as &quot;border&quot; could work for you here.

&lt;img class=&quot;slickLookingImage&quot;&gt;  or something of the sort.  :-)]]></description>
		<content:encoded><![CDATA[<p>Eric,</p>
<p>Without knowing under what circumstances you choose to &#8220;border&#8221; your imags, one can&#8217;t really address the question.</p>
<p>Yes, the class of &#8220;border&#8221; is not correct, as at some point in the future you could decide that these images should not be bordered.  </p>
<p>Even another class name that is presentational, but not as specific as &#8220;border&#8221; could work for you here.</p>
<p>&lt;img class=&#8221;slickLookingImage&#8221;&gt;  or something of the sort.  :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Meiert</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5497</link>
		<dc:creator>Jens Meiert</dc:creator>
		<pubDate>Fri, 15 Apr 2005 08:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5497</guid>
		<description><![CDATA[Just determine the &lt;em&gt;function&lt;/em&gt; of the element you need a class or ID for, and if it becomes too special (for example, you might need it for some other elements, too), choose a more &lt;em&gt;generic name&lt;/em&gt; (this demands some foresight). Of course generalizing, but almost always sufficient.

- &lt;a href=&quot;http://meiert.com/&quot; rel=&quot;nofollow&quot;&gt;Jens&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p>Just determine the <em>function</em> of the element you need a class or ID for, and if it becomes too special (for example, you might need it for some other elements, too), choose a more <em>generic name</em> (this demands some foresight). Of course generalizing, but almost always sufficient.</p>
<p>- <a href="http://meiert.com/" rel="nofollow">Jens</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Hodder</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5493</link>
		<dc:creator>Dave Hodder</dc:creator>
		<pubDate>Thu, 14 Apr 2005 16:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5493</guid>
		<description><![CDATA[If &lt;code&gt;img&lt;/code&gt; is a block element, and the purpose of the border is to emphasise or draw the eye to the image, how about &lt;code&gt;class=&quot;blockemphasis&quot;&lt;/code&gt;?  Or alternatively forget about &lt;code&gt;class&lt;/code&gt; and place you &lt;code&gt;img&lt;/code&gt; within &lt;code&gt;em&lt;/code&gt;?]]></description>
		<content:encoded><![CDATA[<p>If <code>img</code> is a block element, and the purpose of the border is to emphasise or draw the eye to the image, how about <code>class="blockemphasis"</code>?  Or alternatively forget about <code>class</code> and place you <code>img</code> within <code>em</code>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Bernstein</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5486</link>
		<dc:creator>Joel Bernstein</dc:creator>
		<pubDate>Sun, 10 Apr 2005 07:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5486</guid>
		<description><![CDATA[Maybe he&#039;s just testing us :D]]></description>
		<content:encoded><![CDATA[<p>Maybe he&#8217;s just testing us :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5485</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sun, 10 Apr 2005 04:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5485</guid>
		<description><![CDATA[I figured Eric would have chimed in by now.]]></description>
		<content:encoded><![CDATA[<p>I figured Eric would have chimed in by now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Bernstein</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5482</link>
		<dc:creator>Joel Bernstein</dc:creator>
		<pubDate>Fri, 08 Apr 2005 21:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5482</guid>
		<description><![CDATA[&lt;blockquote&gt;But images are presentational, right?&lt;/blockquote&gt;Some images are indeed presentational (backgrounds, borders, banner logos), but these shouldn&#039;t even &lt;em&gt;have&lt;/em&gt; tags; they should be added in later with CSS image replacement or DOM scripting.

Anything that &lt;em&gt;does&lt;/em&gt; get an img tag is content, like text, and the classname applied to that tag should describe something meaningful about the content of the image, just like the classname of a span describes the text content inside it. 

&lt;blockquote&gt;So what&quot;s wrong with defining their presentational context along with semantic context.&lt;/blockquote&gt;Because the presentational context could change down the line, and suddenly you have a bunch of images with &quot;border&quot; classes which aren&#039;t bordered, and a bunch of images without that class which are.

&lt;blockquote&gt;(I mean, it&quot;s not like you&quot;re saying class=”thickgreenborder”)&lt;/blockquote&gt;So you&#039;re saying that as long as we use &lt;em&gt;vague&lt;/em&gt; presentational classnames, it makes it all better?

&lt;strong&gt;Classnames describe content; they do not describe what we want to have happen to the content later.&lt;/strong&gt;]]></description>
		<content:encoded><![CDATA[<blockquote><p>But images are presentational, right?</p></blockquote>
<p>Some images are indeed presentational (backgrounds, borders, banner logos), but these shouldn&#8217;t even <em>have</em> tags; they should be added in later with CSS image replacement or DOM scripting.</p>
<p>Anything that <em>does</em> get an img tag is content, like text, and the classname applied to that tag should describe something meaningful about the content of the image, just like the classname of a span describes the text content inside it. </p>
<blockquote><p>So what&#8221;s wrong with defining their presentational context along with semantic context.</p></blockquote>
<p>Because the presentational context could change down the line, and suddenly you have a bunch of images with &#8220;border&#8221; classes which aren&#8217;t bordered, and a bunch of images without that class which are.</p>
<blockquote><p>(I mean, it&#8221;s not like you&#8221;re saying class=”thickgreenborder”)</p></blockquote>
<p>So you&#8217;re saying that as long as we use <em>vague</em> presentational classnames, it makes it all better?</p>
<p><strong>Classnames describe content; they do not describe what we want to have happen to the content later.</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Block Sheep</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5481</link>
		<dc:creator>Block Sheep</dc:creator>
		<pubDate>Fri, 08 Apr 2005 18:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5481</guid>
		<description><![CDATA[I agree, it&#039;s going to always difficult to apply semantic classification to an image, because it&#039;s not something humans do very often -- whereas semantic classification is a natural way to structure language/text.]]></description>
		<content:encoded><![CDATA[<p>I agree, it&#8217;s going to always difficult to apply semantic classification to an image, because it&#8217;s not something humans do very often &#8212; whereas semantic classification is a natural way to structure language/text.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5480</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Fri, 08 Apr 2005 17:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5480</guid>
		<description><![CDATA[But images &lt;em&gt;are&lt;/em&gt; presentational, right? So what&#039;s wrong with defining their presentational context (I mean, it&#039;s not like you&#039;re saying class=&quot;thickgreenborder&quot;) along with semantic context. It&#039;s essentially the same idea as comment 6, but more flexible.]]></description>
		<content:encoded><![CDATA[<p>But images <em>are</em> presentational, right? So what&#8217;s wrong with defining their presentational context (I mean, it&#8217;s not like you&#8217;re saying class=&#8221;thickgreenborder&#8221;) along with semantic context. It&#8217;s essentially the same idea as comment 6, but more flexible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent Murphy</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5476</link>
		<dc:creator>Vincent Murphy</dc:creator>
		<pubDate>Thu, 07 Apr 2005 12:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5476</guid>
		<description><![CDATA[First, glad to see that other folks have the same naming trouble that I tend to have. ;) 

I think that Tom, up there in comment 11, has a good solution. Why create a new class name when there&#039;s a tag that does what you want: the strong or em tag would work well in a situation like this, it seems. You really are adding some emphasis to an item, in this case a border. Very appropriate for the task at hand. ]]></description>
		<content:encoded><![CDATA[<p>First, glad to see that other folks have the same naming trouble that I tend to have. ;) </p>
<p>I think that Tom, up there in comment 11, has a good solution. Why create a new class name when there&#8217;s a tag that does what you want: the strong or em tag would work well in a situation like this, it seems. You really are adding some emphasis to an item, in this case a border. Very appropriate for the task at hand. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian D.</title>
		<link>http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5474</link>
		<dc:creator>Adrian D.</dc:creator>
		<pubDate>Thu, 07 Apr 2005 07:51:51 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comment-5474</guid>
		<description><![CDATA[&lt;blockquote&gt;There are some other sort-of-presentational class names hanging around my site, too. standalone is used when an image, or set of images, stands on its own, as opposed to illustrative images that are floated. The intent is presentational, though again, standalone doesn&quot;t say exactly how the images stand alone. It just says that they do.&lt;/blockquote&gt;

It seems that illustrative images are the exception here. How about &lt;code&gt;class=&quot;illustrative&quot;&lt;/code&gt; for the floated images, and leave the standalone images unclassed?]]></description>
		<content:encoded><![CDATA[<blockquote><p>There are some other sort-of-presentational class names hanging around my site, too. standalone is used when an image, or set of images, stands on its own, as opposed to illustrative images that are floated. The intent is presentational, though again, standalone doesn&#8221;t say exactly how the images stand alone. It just says that they do.</p></blockquote>
<p>It seems that illustrative images are the exception here. How about <code>class="illustrative"</code> for the floated images, and leave the standalone images unclassed?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->