// 5 May 2008 // No comments

Headings and Code

Important heading

Ideal for separating major chunks of text, h2 is the second most important heading in existence. The most important is, of course, h1, which is used for the post title.

Less important heading

Next in the pecking order is h3. Less important semantically, and hopefully less important looking on the page too if the styling’s correct.

So unimportant it’s almost not worth reading

Finally we have h4, which is ideal for all your really unimportant headings. Actually, the headings go all the way down to h9, though the structural complexity of a blog post that relied on that many levels of heading would be scary.

The code

As a bonus for those of you who clicked through, here’s some code first as an inline code element jQuery(document).ready and also as a separate pre block

jQuery(".FloatingThemeSwitcher p").addClass("Toggle");
jQuery(".FloatingThemeSwitcher ul").hide();

jQuery(".FloatingThemeSwitcher p.Toggle").click(function()
{
	jQuery(".FloatingThemeSwitcher ul").slideToggle();
});

0 comments

  • : (
    No comments yet…

    Why not kick things off by filling out the form below?

Leave a comment

Change Theme