Connecting Tech Pros Worldwide Help | Site Map

Need Help With Semantic Markup

pr10n
Guest
 
Posts: n/a
#1: Jul 23 '05
Hello, all! I'm working on a personal blog and I'm trying to make it's
markup more semantic, using the right elements, removing needless div's
and so on.

I was wondering if someone would be kind enough to peek at the code and
see if they have any suggestions. I realize I am over using the list and
header elements. I am also in the process of shifting the content blocks
around in the code to get the meat of the site displayed first.

I'm not asking for help with the layout or the CSS, just looking for
advise from a purely HTML point of view.

Thanks for reading up to this point, I look forward to any help offered.

--
pr10n
w: pr10n.lowriderdog.com
e: paybacksucks@hotmail.com
Neal
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Need Help With Semantic Markup


On Tue, 12 Oct 2004 04:47:40 GMT, pr10n <paybacksucks@hotmail.com> wrote:
[color=blue]
> Hello, all![/color]

Hi
[color=blue]
> I'm working on a personal blog and I'm trying to make it's
> markup more semantic, using the right elements, removing needless div's
> and so on.
>
> I was wondering if someone would be kind enough to peek at the code and
> see if they have any suggestions. I realize I am over using the list and
> header elements.[/color]

Um...

Assuming http://pr10n.lowriderdog.com/ is the proper URL, no hx or list
elements there. At all.

What page are you referring to? All commentary suspended till this mess is
sorted out.
payback
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Need Help With Semantic Markup


Neal <neal413@yahoo.com> wrote in
news:opsfqrqaci6v6656@news.individual.net:
[color=blue]
> On Tue, 12 Oct 2004 04:47:40 GMT, pr10n <paybacksucks@hotmail.com>
> wrote:
>[color=green]
>> Hello, all![/color]
>
> Hi
>[color=green]
>> I'm working on a personal blog and I'm trying to make it's
>> markup more semantic, using the right elements, removing needless
>> div's and so on.
>>
>> I was wondering if someone would be kind enough to peek at the code
>> and see if they have any suggestions. I realize I am over using the
>> list and header elements.[/color]
>
> Um...
>
> Assuming http://pr10n.lowriderdog.com/ is the proper URL, no hx or
> list elements there. At all.
>
> What page are you referring to? All commentary suspended till this
> mess is sorted out.
>[/color]

My apologies, clearly my mistake. The page in question is:

http://pr10n.lowriderdog.com/blog/

The markup for the others essentially stem from this page.

Thanks for taking the time to look.

pr10n
Andy Dingley
Guest
 
Posts: n/a
#4: Jul 23 '05

re: Need Help With Semantic Markup


On Tue, 12 Oct 2004 04:47:40 GMT, pr10n <paybacksucks@hotmail.com>
wrote:
[color=blue]
>Hello, all! I'm working on a personal blog and I'm trying to make it's
>markup more semantic, using the right elements, removing needless div's
>and so on.[/color]

Looks pretty good so far.


I'm not sure what you're after for semantics here. It's a blog in HTML
- tiny little snippets, so there's no scope for structuring them, and
it's already in human-readable HTML so there's little need or
opportunity for descriptive markup or classification of elements.

If you're looking at RSS, _then_ you want to think about semantic
markup on the items - primarily categorisation, because once again the
content is too short to really be worth structuring.

You could take your RSS semantic descriptions and embed them in the
HTML, especially if they're in something like Dublin Core and you can
just namespace them into invisibility. But this doesn't add all that
much - if something is going to scrape your content and machine
process it, it would go straight for the RSS version.


Site is slow. Judging from the hit counter comment in the source,
you're regenerating it for every view - I'd ditch that and allow
caching to reduce load and hopefully speed things up a little. Caching
is your _friend_. Put sensible times on things and let the machinery
do its job.


<ul id="navlist">
<li id="blogsmall" class="navitem"><a class="navlink"
href="/blog/" title="Blog">Blog</a></li>

An id of "navsmall-blog" now will make content management easier in
the future. What if you put these icons in the footer later on? What
would you use for an id value then ?

You're already doing this with the classes. As they can be duplicated,
that's less necessary

<li class="contentitem">
<h2 class="contentheading"> [...] </h2>
<h3 class="contentsubheading"> [...] </h3>
<h4 class="contentnodisplay">Posted by pr10n</h4>

could quite easily be normalised to
<li class="contentitem">
<h2 class="heading"> [...] </h2>
<h3 class="subheading"> [...] </h3>
<h4 class="nodisplay">Posted by pr10n</h4>

But this has no tangible benefits and isn't really worth changing.



Keywords as
"Jennifer Rovero, Keith Flint"
not
"Jennifer, Rovero, Keith, Flint"


You can't do semantics in RSS 0.91 Go for RSS 1.0 or (Bob forbid)
even RSS 2.0

--
Smert' spamionam
Closed Thread