Hacker News new | ask | show | jobs
by mkyc 6036 days ago
Have a look at the source:

    <div class="utterance"><div class="name">Iwata</div> 
    <div class="message">In this interview, we're going...
I would have chosen "speaker" rather than "name", but this sort of attention is nice to see :)
1 comments

Good attention to class names, but terrible use of markup. He should be using paragraphs instead of divs. Edit: Span for the name.
Is a paragraph a logical or a visual concept? Can a paragraph have a name/speaker attached to it? The author answered these questions differently than you, and kudos to them for thinking about the problem. Markup is "terrible" when people don't think about structure at all.
Why on earth would you use a semantically insignificant element (SPAN) to markup something as significant as the name of the interview object?

I'd easily mark this up as a DIALOG:

   <dialog>
      <dt>Iwata
      <dd>In this interview, we're going…
   </dialog>