Ok, I think you’re right - I’m tripping over terminology.
What I said was something like
‘…your implementation is changing the content to suit the presentation…’
which isn’t quite right.
Instead what I was really trying to get at is something like:
‘…your suggested implementation throws away the semantics of the markup in order to minimise the number of tags used…’
^ Ahem… beginner showing off… ahem… The content needs not to be grouped, but structured. Big difference. And divs are not the only ones doing the structuring. And divs are NOT semantic. And semantic attribute values is not the same with semantic html element use. And so on and so forth
Please don’t, I’ll stand behind it proudly And you’ve just committed a paradox. You didn’t quietly ignore it
Are you the same guy saying:
I fail to see how this will make it semantic to begin with. A p having a class flash is a semantic nonsense in my book. But hey, only presumably
Dave, all good points and food for thought. Just a couple of comments.
I disagree. My aim is to mark up the distinction between:
(header1 text1 header2 text2)
…where header 2 doesn’t make sense outside of the context of following header1
and (header text)(header text)
where the two sections are independent.
Yes, totally aware of that (separate) issue and will be addressing it in a future release by replacing the compass point with part of the postal code (which everyone in London knows and recognises.
I can’t see no sections, semantics or anything like that in there. How did you came to those conclusions about div, beats me
div is “the generic container of the last resort”. First, you need to know enough HTML as to see if there aren’t any other more fitted and semantic container elements for your content. Slapping divs carelessly around means insufficient HTML knowledge. Beginner posing as a pro
I’ve been called-in; since obviously there is some misunderstanding about markup. Yes, people can go overboard with application of DIV however they are designed to hook ‘styles’ or ‘languages’ are they are generic containers.
Presentational markup is considered bad practice; as is placing unnecessary title attributes repeating the exact same thing as the hyperlink itself.
Having an EM in a H1 is also a little weird since it is just overkill, over emphasising the already most important heading in the first place.
I’d agree with Dave on some of those points about stripping some of the unnecessary DIV wrappers.
The superfluous DIV values do not really add semantic structures to the page they are neutral and like I previously said are; generic block-level language/style containers. Nothing more… if they were more then also SPAN would be completely redundant.
They don’t create section islands; your headings denote the sections like was mentioned. Even if you buy into that non normative HTML5 mumbo-jumbo; they realised you cannot use DIV to define semantic sections.
The DIV is no more relevant than the P paragraph element. The DIV element is a generic container for flow content that by itself does not represent anything.
nonnope: yes, I would consider someone who seems to take pleasure in antagonising others and putting them down a Bad Guy. Perhaps I’ve read you wrong, but please look over what you’ve written and see that that’s how you come across.
If I have come across like that also, then I apologise, this was not my intention.
That article was not my “reference” - just something I found during the discussion.
Don’t worry, Noonnope’s English is improving; I’d assume his first language is Romanian. Sometimes people get a little confused by what he is saying and take it the ‘wrong way’ he wasn’t trying to insult you.