84 posts
  • 6 Years of Membership
  • Author Level 2
  • Beta Tester
  • Collector Level 1
+2 more
Oreius
says

Ok I had a question. I write in xhtml and css and I wanted to make sure that my idea of a semantic website was correct.

I always include

DOCTYPE blah blah

html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”

meta http-equiv=”content-type” content=”text/html; charset=utf-8”

the head and body tags I end them all and when it is an open tag it is ended like this

I link to external style sheets.

Is that basically all? am I missing anything? is there anything else you can think of to include or make sure I do?

I want to improve my web skill set and have done 2 websites thus far and am about to start another one

Thanks in advance

174 posts
  • 6 Years of Membership
  • Affiliate Level 1
  • Bundle Boss
  • Collector Level 1
+3 more
nedalm1
says

When your web site gets through W3C Validator withour errors, everything is included and valid.

Here is the validator – http://validator.w3.org/

180 posts
  • 5 Years of Membership
  • Collector Level 1
  • United States
SuperMario290
says

that sounds about right. Just make sure to do what Aerendyl said and put your website through the validator and if you’re lucky everything will be correct!

1173 posts
  • 6 Years of Membership
  • Australia
  • Author Level 5
  • Beta Tester
+4 more
Motionreactor
says

You absolutely are missing some things.

Semantics is different to just having well formed, validated XHTML .

Semantics is about the appropriate use of markup tags and metadata to give data meaning and context. So for example, using a heading tag on something that isn’t a heading is poor semantics. It makes it hard for a screen reader to determine properly what the document is about and a search engine too. Using citations, definition lists, emphasis tags correctly wraps a documents data in clear machine readable context. This makes the future of more intelligent automated web agents possible, such as search engines. If SEO matters to you, then semantic markup should matter to you too.

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

Note that semantic markup is what you are probably interested in for now. The actual vision for a semantic web goes deeper than a small list of semantic markup conventions, into things such as RDF (Resource Description Framework).

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

HTML 5 takes us a step closer with new semantic tags such as header, nav, article, section, footer…

84 posts
  • 6 Years of Membership
  • Author Level 2
  • Beta Tester
  • Collector Level 1
+2 more
Oreius
says

Great point Motionreactor I will look into these.

I am just wanting to make sure I do it right I was taught a lot of things wrong so I basically had to learn from the bottom up.

Thanks everybody!

1173 posts
  • 6 Years of Membership
  • Australia
  • Author Level 5
  • Beta Tester
+4 more
Motionreactor
says
Great point Motionreactor I will look into these.

I am just wanting to make sure I do it right I was taught a lot of things wrong so I basically had to learn from the bottom up.

Thanks everybody!

Nps, looks like you are doing it right in terms of XHTML . The key is to continually relearn and revisit your understanding of these things every once in a while.

I find Nettuts very useful for this, but also things like www.webdesignerwall.com and of course www.alistapart.com

84 posts
  • 6 Years of Membership
  • Author Level 2
  • Beta Tester
  • Collector Level 1
+2 more
Oreius
says

Ok thanks!

by
by
by
by
by
by