• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.0 Semantic HTML

F

Floris

Guest
#63
If you know what you're doing, you already know what you're doing. It doesn't matter if it is:

<header> or <div id="header">

You know it's a header block.

Easier reading of code is NOT semantic HTML, or what it is about. There's nothing to disagree with me on in regards tot his, because it's not an opinion, it's fact.
 

Shamil

Well-known member
#64
If you know what you're doing, you already know what you're doing. It doesn't matter if it is:

<header> or <div id="header">

You know it's a header block.

Easier reading of code is NOT semantic HTML, or what it is about. There's nothing to disagree with me on in regards tot his, because it's not an opinion, it's fact.
To me,
Code:
<abbr class="dtstart" title="20070125T2000Z">January 25th 8pm</abbr>
means a lot more than

January 25th 8pm.

But that's the point of semantics. I'm not disagreeing with you though.
 

Shamil

Well-known member
#70
He's frustrated that apparently (I say apparently because I don't know enough about Semantic HTML to make a qualified decision) you don't get the true reason/advantages of Semantic HTML. :)
I think we need to "agree to disagree" have a step back, and maybe, revisit this later, or not at all.
 
F

Floris

Guest
#71
Let's go with NOT at all ..

You obviously don't get what Semantic HTML means, and you're trying to disagree on what are facts.
 

Shadab

Well-known member
#76

Danny.VBT

Active member
#77
Trust me, bear Berners-Lee quirky presentation style and see how a "semantic web" can revolutionize our notions of the internet.


Even though he is talking about "linked data" on a macro level, on a micro-scale, "semantic" HTML can make the content on your community re-usable, malleable, and mash-able (CMS ? ) using the advantages of (X)HTML as a semantic mark-up language.
 

feldon30

Well-known member
#78
Look at most of the new HTML5 tags if you want to see what symantic HTML is all about. It's about telling the browser/user/reader which parts of the page are content and which parts are navigation, user profile info, sidebar, etc.

Two years ago, we worried about Google indexing duplicate content from page-to-page. (t=49213, p=95382 taking you to the same page).

Today, we worry about Google indexing duplicate content within the page (navbar, user profile fields, header, footer, breadcrumb, user signatures, etc.).

It's not enough to do a Google sitemap and avoid duplicate content. Now we map out each page to help Google rank content.
 

Anthony Parsons

Well-known member
#79
Semantic HTML meaning: Semantic HTML is the use of HTML markup to reinforce the semantics, or meaning, of the information in webpages rather than merely to define its presentation (look).

http://en.wikipedia.org/wiki/Semantic_HTML

Semantically correct HTML in essence is about using the correct tag for the correct job, correctly nested, correctly identified throughout, so the reader can completely understand the structure, etc etc...

It is semantically incorrect to be using font tags in xhtml, or using italic tags vs. the semantically correct emphasis tag.

The semantically correct code for HTML5 will be the use of the header, footer, nav, etc tags, not div with an id, even though both could be argued as semantically correct for backwards compatibility.
 

Kier

XenForo Developer
Staff member
#80
The semantically correct code for HTML5 will be the use of the header, footer, nav, etc tags, not div with an id, even though both could be argued as semantically correct for backwards compatibility.
Absolutely right - although you will find that XenForo uses conventions such as
HTML:
<header>
	<div id="header">
	...
	</div>
</header>
as a certain ghastly browser is still unable to apply styling to HTML5-specific tags, even in version 8 :(