Reputation
1,452
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
2 11 17
Newest
 Yearling
Impact
~60k people reached

  • 0 posts edited
  • 0 helpful flags
  • 42 votes cast
Nov
7
awarded  Yearling
Sep
25
comment Is the `<table>` tag and `display:table` a functional or a layout directive?
@JacquesB - Hmm... true, my definition is not very precise. But on the other hand - neither do I understand very precisely what "semantics" is, nor what the thing under CSS' control ("layout"?) is. Do you have any nice definitions for those?
Sep
23
comment Is the `<table>` tag and `display:table` a functional or a layout directive?
@LieRyan - Perhaps, although I think it's worth another debate of its own. If true, then that would be THE biggest most glaring flaw of HTML ever, because this (unspecified) functionality is what every web developer has to rely on every day to do anything at all.
Sep
23
comment Is the `<table>` tag and `display:table` a functional or a layout directive?
Functionality is what the tag does. Hmm.. how to better explain... imagine that we ignored all the semantic differences between tags and there was no default CSS for them, not even the default stuff that comes with the browser. In that case, there would be no difference at all between, say, <div>, <span>, <p>, <h1>, etc. All those tags would be equal in every way. But an <a href=""> would be different - it would display a link, which would redirect a user to another page when clicked. You can't do that with a <div> no matter what you do. That's a difference in functionality.
Sep
23
comment Is the `<table>` tag and `display:table` a functional or a layout directive?
@JacquesB - No, a <p> and <h1> actually have an identical functionality. They just group a bit of content and allow to apply style to it. So does <div>, <span>, <blockquote> and a whole lot of others. They have a different semantic meaning and a different default layout, but the same functionality. An <input type="checkbox"> for instance has a different functionality. No matter what layout you apply to it, you cannot make a <p> act like <input type="checkbox">, short of using Javascript.
Sep
22
comment Is the `<table>` tag and `display:table` a functional or a layout directive?
@JacquesB - When I apply display:table to a <div>, that <div> starts acting lika a <table>. In other words, it has adopted the functionality of a different tag. When I do this for layout purposes, the layout of the tag is correct (that's how I wanted it), the semantics are correct (that's what the tag represents, a division), but the functionality is wrong (it's a <table> masquerading as a <div>).
Sep
21
revised Is the `<table>` tag and `display:table` a functional or a layout directive?
added 96 characters in body
Sep
21
comment Is the `<table>` tag and `display:table` a functional or a layout directive?
OK, I think I finally got it. The table is really in an unfortunate spot. To get the correct layout you need to sacrifice either a correct semantic or a correct functionality. It's a choice between two evils, and the latter is widely considered to be the lesser one.
Sep
21
accepted Is the `<table>` tag and `display:table` a functional or a layout directive?
Sep
21
asked Is the `<table>` tag and `display:table` a functional or a layout directive?
Apr
6
comment Why are people making tables with divs?
@NotMe - True, but the differences will probably be noticeable only in some esoteric edge cases. I don't even know what to look for.
Apr
3
comment Why are people making tables with divs?
I'm accepting this answer because it seems that nothing else useful is coming in anymore. There are higher-voted answers but they basically say "because semantics" (and the only reason for semantics that they can provide is screen readers, which doesn't convince me). @HorusKol's answer mentioned responsiveness before yours, but yours is more to the point. If a better answer appears in the future, I will change that to be the accepted one.
Apr
3
accepted Why are people making tables with divs?
Apr
3
comment Why are people making tables with divs?
@Sildoreth - the extra markup is minimal and IMHO actually clarifies what is going on. As for the highest semantic value - why?
Apr
3
awarded  Famous Question
Apr
3
comment Why are people making tables with divs?
Wait, so there are different doctypes that make the same document render differently? Which ones? Mind you I'm talking about different doctypes, not doctype vs lack of doctype (aka quirksmode).
Apr
2
awarded  Favorite Question
Apr
2
awarded  Great Question
Apr
1
comment Why are people making tables with divs?
Offtopic about the DOCTYPE: I thought that, although there was a theoretical difference (and validators did take it seriously), in practice browsers didn't really differentiate between them. OK, maybe there were some minor changes between HTML/XHTML flavors, but the version and DTD information at least was not used. Which is why HTML5 dropped the whole thing anyway and went with just <!DOCTYPE html> and which is why it happens to work even in old browsers like IE6. Have I missed something?
Apr
1
comment Why are people making tables with divs?
Yes, responsiveness is one reason.