<?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, 19 Mar 2010 00:27:46 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>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 &#8217;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 &#8217;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>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>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>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>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>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>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>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>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>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>&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>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>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>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>&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>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head profile="http://gmpg.org/xfn/1">
<title>meyerweb.com</title>
<link rel="openid.server" href="http://www.myopenid.com/server">
<link rel="openid.delegate" href="http://emeyer.myopenid.com/">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link rel="shortcut icon" href="/favicon.ico"><link rel="home" href="http://meyerweb.com/" title="Home" ><link rel="stylesheet" href="http://meyerweb.com/ui/meyerweb.css" type="text/css" media="screen, projection"><link rel="stylesheet" href="http://meyerweb.com/ui/theme.css" type="text/css" media="screen, projection" id="themeLink"><link rel="stylesheet" href="http://meyerweb.com/ui/print.css" type="text/css" media="print"><script src="http://meyerweb.com/ui/addresses.js" type="text/javascript"></script><link rel="stylesheet" href="/ui/wordpress.css" type="text/css" media="screen">
<link rel="stylesheet" href="/ui/tfe.css" type="text/css" media="screen">
<link rel="stylesheet" href="/ui/home.css" type="text/css" media="screen">
<link rel="alternate" type="application/rss+xml" title="Thoughts From Eric" href="/eric/thoughts/rss2/full" />
<link rel="alternate" type="application/rss+xml" title="Thoughts From Eric (only technical posts)" href="/eric/thoughts/category/tech/rss2/full" />
<link rel="alternate" type="application/rss+xml" title="Thoughts From Eric (only personal posts)" href="/eric/thoughts/category/personal/rss2/full" />
<link rel="alternate" type="application/rss+xml" title="Distractions" href="/eric/thoughts/recent-links/rss2" />
<link rel="alternate" type="application/rss+xml" title="Excuse of the Day" href="/feeds/excuse/rss20.xml" />
</head>
<body id="www-meyerweb-com" class="hpg">

<div id="sitemast"><h1><a href="/"><span>meyerweb</span>.com</a></h1></div><div id="search"><h4>Exploration</h4><!-- SiteSearch Google --><form method="get" action="http://www.google.com/custom" target="_top"><div><input type="hidden" name="domains" value="meyerweb.com"></input><label for="sbb" style="display: none">Submit search form</label><input type="submit" name="sa" value="Google Search" id="sbb"></input><label for="sbi" style="display: none">Enter your search terms</label><input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input><p><input type="radio" name="sitesearch" value="meyerweb.com" checked id="ss1"></input><label for="ss1" title="Search meyerweb.com">meyerweb.com</label><input type="radio" name="sitesearch" value="" id="ss0"></input><label for="ss0" title="Search the Web">Web</label></p><input type="hidden" name="client" value="pub-3772084027748653"></input><input type="hidden" name="forid" value="1"></input><input type="hidden" name="ie" value="ISO-8859-1"></input><input type="hidden" name="oe" value="ISO-8859-1"></input><input type="hidden" name="safe" value="active"></input><input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input><input type="hidden" name="hl" value="en"></input></div></form><!-- SiteSearch Google --><!-- <form method="get" action="http://www.google.com/custom"><div><input type="submit" name="sa" value="Search"><input type="text" name="q" size="20" maxlength="255" value=""><input type="hidden" name="sitesearch" value="meyerweb.com"></div></form><small><a href="http://www.google.com/search">Powered by Google</a></small> --></div><div id="main"><div class="skipper">Skip to: <a href="#extra">site navigation/presentation</a></div><div class="skipper">Skip to: <a href="#thoughts">Thoughts From Eric</a></div>
<div id="thoughts">


<div class="entry">
<h3><a href="http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/" rel="bookmark" title="Permanent Link: Class Presentation">Class Presentation</a></h3>
<ul class="meta">
<li class="date">Sun 3 Apr 2005</li>
<li class="time">2032</li>
<li class="cat"><a href="http://meyerweb.com/eric/thoughts/category/tech/xhtml/" title="View all posts in (X)HTML" rel="category tag">(X)HTML</a><br> <a href="http://meyerweb.com/eric/thoughts/category/tech/css/" title="View all posts in CSS" rel="category tag">CSS</a></li>
<li class="cmt"><a href="http://meyerweb.com/eric/thoughts/2005/04/03/class-presentation/#comments">40 responses</a></li>
<li></li><li></li></ul>

<div class="text">
<p>
A little while back, I made <a href="/eric/thoughts/2005/02/23/keep-your-classes-clean/" title="Keep Your Classes Clean">a joke about presentational class names</a>.  As it happened, there was a second joke hidden within the joke&#8212;as is so often the case with me&#8212;and I was delighted to see that <a href="/eric/thoughts/2005/02/23/keep-your-classes-clean/#comment-5119" title="Mark Kawakami wrote in to say...">one of my readers caught it</a>.
</p>
<p>
But is there a reasonable alternative?  I&#8217;ve long been using the <code>class</code> value <code>border</code> to indicate when I want to put a border around a picture.  This is, to me, one of those gray-area situations that&#8217;s very hard to resolve.  I can claim that <code>border</code> is not very presentational: it doesn&#8217;t say anything about the specific appearance of the border, only that there should be one.  I could also argue that it&#8217;s entirely too presentational: from a semantic point of view, what does it matter if the picture is bordered or not?  It doesn&#8217;t, so the class name is unacceptable.
</p>
<p>
And yet, it <em>does</em> matter.  Visually, some images need to have borders, while others need to lack a border.  I can&#8217;t invent a new element or attribute to express the difference (not without writing my own DTD, anyway).  Technologically, <code>class</code> values are the only place I can make the distinction.
</p>
<p>
There are some other sort-of-presentational <code>class</code> names hanging around my site, too.  <code>standalone</code> 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, <code>standalone</code> doesn&#8217;t say exactly <em>how</em> the images stand alone.  It just says that they do.
</p>
<p>
I&#8217;ve yet to come up with a good semantic way of saying &#8220;this image needs to have something that visually separates it from the rest of the page&#8221;.  I&#8217;ve kicked around ideas for other values, like <code>framed</code> or <code>separated</code>, but these fall into the same gray area&#8230; probably because the intent is basically presentational.  I&#8217;ve abstracted the presentationalism of the intent, but it&#8217;s still there.
</p>
<p>
So, anyone have a better <code>class</code> name, or even a better approach to drawing the distinction?  And before anyone tells me to quit worrying about this, I&#8217;m not worrying&#8212;I&#8217;m playing.  It&#8217;s like doing a crossword, or working on a logic puzzle.  Usually I just do this stuff in my head, but in this case I&#8217;m fairly stumped, and could use some help.
</p></div>

</div>

</div>
<p style="font-size: 90%; text-align: right; margin-top: 0.5em; padding-top: 0;">(If you care, there's even an <a href="/eric/thoughts/page/2/">archive of previous thoughts</a>...)</p>

</div><div id="extra"><div class="panel" id="archipelago"><h4>Identity Archipelago</h4><ul><li><a href="http://flickr.com/photos/meyerweb/" rel="me">Flickr</a></li><li><a href="http://twitter.com/meyerweb/" rel="me">Twitter</a></li><li><a href="http://dopplr.com/traveller/meyerweb">Dopplr</a></li><li><a href="http://www.linkedin.com/in/meyerweb" rel="me">LinkedIn</a></li><li><a href="http://technorati.com/profile/emeyer" rel="me">Technorati</a></li></ul></div><div class="panel" id="pointers"><h4>Projects Elsewhere</h4><ul><li><a href="http://aneventapart.com/">An Event Apart</a></li><li><a href="http://complexspiral.com/">Complex Spiral Consulting</a></li><li><a href="http://www.webassist.com/go/css/emeyer/">CSS Sculptor</a></li><li><a href="http://css-discuss.org/">css-discuss</a></li><li><a href="http://microformats.org/">Microformats</a></li><li><a href="http://s5project.org/">S5</a></li></ul></div><div class="panel" id="tour"><ul><li><a href="http://fray.com/issue3/"><img src="http://fray.com/images/i3c.gif" alt="Fray Contributor (Issue 3: Sex &amp; Death)" /></a></li><!-- <li><a href="http://www.webassist.com/go/css/emeyer/"><img src="/pix/CS_ad_180x109.jpg" alt="CSS Sculptor for Dreamweaver" style="max-width: 100%;" /></a></li> --></ul></div><div class="panel">
<h4>Recently Tweeted</h4>
<p class="more"><a href="http://twitter.com/meyerweb">see more</a></p>
<p>Now that Congress has passed health insurance reform, is there any sign they're thinking about reforming health care as well? <small>&#8211;tweeted 6 hours, 49 minutes ago</small></p>
</div><div id="sideblog" class="panel">
<h4>Distractions</h4>
<p class="more">
<a href="/eric/thoughts/recent-links/">archive</a>
</p>
<ul>
<li><a href="http://tweetagewasteland.com/2010/03/my-head-is-in-the-cloud/" title="March 18 | &#8220;I sense that my addiction to the realtime stream is only making room for the consumption of a faster stream.&#8221;">My Head is in the Cloud</a> <small>[via <a href="http://daringfireball.net/">John</a>]</small></li>
<li><a href="http://8bitnyc.com/" title="March 17 | All of a sudden I want to establish a mission in Central Park and negotiate with the natives for gold and food.">8-Bit NYC</a></li>
<li><a href="http://www.youtube.com/watch?v=nFicqklGuB0&amp;feature=player_embedded" title="March 12 | Wry comment expressing my appreciation of the creative derivativeness of this video and its uncanny accuracy in mocking common tropes.">Academy Award Winning Movie Trailer</a></li>
<li><a href="http://www.youtube.com/watch?v=414TmP12WAU" title="March 9 | &#8220;Apple juice&#8230; for half price!&#8221;  More like twice PRICELESS.  (Note: If you&#8217;re at work, don your headphones.)">Happy in Paraguay</a> <small>[via <a href="http://unstoppablerobotninja.com/">Ethan</a>]</small></li>
<li><a href="http://www.youtube.com/watch?v=9V5ubAOeOBk&amp;feature=player_embedded" title="February 10 | This is approximately the best thing ever.">U900 -Walk Don&#8217;t Run (Isogabamaware)</a></li>
<li><a href="http://www.456bereastreet.com/archive/201002/sifr_default_css_hides_content_from_at_least_one_screen_reader/?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A 456bereastreet %28456 Berea Street%29" title="February 8 | -9999px comes through again, but I really wish we were beyond that kind of thing.">sIFR default CSS hides content from at least one screen reader</a></li>
<li><a href="http://www.macosxhints.com/article.php?story=20100117064356428" title="February 8 | Storing this for future use.">Take a picture with the iSight camera when a folder is opened</a></li>
<li><a href="http://mingle2.com/blog/view/web-developer-mind" title="February 4 | Mostly valid.  (SEE WHAT I DID THERE?)">The Mind of a Web Developer: An Illustrated Diagram</a></li>
<li><a href="http://www.theonion.com/content/news/science_channel_refuses_to_dumb" title="January 28 | &#8220;Punkin Chunkin, for Christ&#8217;s sake&#8230; What more do you people want?&#8221;">Science Channel Refuses To Dumb Down Science Any Further</a></li>
<li><a href="http://www.mailchimp.com/blog/project-omnivore-declassified/" title="January 27 | Sounds like quite a feat.  But I wonder how we&#8217;d feel if Microsoft or Google announced the same kind of thing on their e-mail services.">MailChimp&#8217;s Project Omnivore: Declassified</a></li>
<li><a href="http://www.politifact.com/truth-o-meter/statements/2010/jan/25/carolyn-maloney/congresswoman-says-democratic-presidents-create-mo/" title="January 26 | &#8220;Obviously, luck matters a lot, but when there is a consistent pattern over more than 60 years, it starts to look like more than just luck.&#8221;">Congresswoman says Democratic presidents create more private-sector jobs</a></li>
<li><a href="http://www.ted.com/talks/taylor_mali_what_teachers_make.html" title="January 25 | Truth.">Taylor Mali: What teachers make</a></li>
<li><a href="http://notebook.johnmartz.com/how-websites-work?c=1" title="January 22 | At last, the truth is out and I can stop pretending:  beatific monkeys are what makes it all go.">How websites work</a></li>
</ul>
</div>
<div class="panel" id="advisory">
<div class="guarded">
<a href="http://blogadvisorysystem.com/"><img src="/pix/bas/guarded.png" alt="Blog Advisory System Alert Level: Guarded"></a>
</div>
</div>

<div class="panel" id="excuse">
<h4>The <a href="/feeds/excuse/">excuse of the day</a> is</h4>
<p>Republicans</p>
</div>

<div class="panel" id="extras">
<h4>Extras</h4>
<ul>
<li><a href="/feeds/">Feeds</a> &#8226;</li>
<li><a href="/eric/faq.html">FAQ</a> &#8226;</li>
<li><a href="/family.html">Family</a></li>
</ul>
</div>

</div>

<div id="navigate">
<h4>Navigation</h4>
<ul id="navlinks">
<li id="archLink"><a href="/eric/thoughts/">Archives</a></li>
<li id="cssLink"><a href="/eric/css/">CSS</a></li>
<li id="toolsLink"><a href="/eric/tools/">Toolbox</a></li>
<li id="writeLink"><a href="/eric/writing.html">Writing</a></li>
<li id="speakLink"><a href="/eric/talks/">Speaking</a></li>
<li id="otherLink"><a href="/other/">Leftovers</a></li>
<li id="aboutsite"><a href="/ui/about.html">About this site</a></li>
</ul>
</div>

<div id="footer">
<p class="sosumi">All contents of this site, unless otherwise noted, are &copy;1995-2008 <strong>Eric A. and Kathryn S. Meyer</strong>.  All Rights Reserved.</p>
<p>"<a href="/eric/thoughts/">Thoughts From Eric</a>" is powered by the &uuml;bercool <a href="http://wordpress.org/">WordPress</a></p>
</div>
</body>
</html>
