SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Aug 2010
    Posts
    349
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    New to blogs...how to structure HTML

    So I don't know much about blogs, never set one up before, but I'm not a stranger to correct mark up.

    My buddy has a a site and on his home page there is a blog. It didn't take me long enough to see there was a big problem. Every blog entry, the title was an H1. His homepage has around 12 different H1 tags.

    #1) Is the homepage bad place for the blog? (It is a recording studio site not a blogging site, but they like to make updates about their clients and work)

    #2) How do you write correct mark up for all those blog entries? Is each title an H2 or H3?

    thanks!

  2. #2
    SitePoint Member doni's Avatar
    Join Date
    Apr 2012
    Location
    TN
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most of the time, the blogpost titles are H2 tags.

    Usually in my themes I use this structure:

    Code:
    <div id="post_(num)" class="post>
        <h2>The Title</h2>
        <p class="date">posted on ...</p>
        <p>Your post.....</p>
    </div>

  3. #3
    SitePoint Zealot mike.fro's Avatar
    Join Date
    Jun 2005
    Location
    Lewisville, Texas
    Posts
    130
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Bades View Post
    So I don't know much about blogs, never set one up before, but I'm not a stranger to correct mark up.

    My buddy has a a site and on his home page there is a blog. It didn't take me long enough to see there was a big problem. Every blog entry, the title was an H1. His homepage has around 12 different H1 tags.

    #1) Is the homepage bad place for the blog? (It is a recording studio site not a blogging site, but they like to make updates about their clients and work)

    #2) How do you write correct mark up for all those blog entries? Is each title an H2 or H3?

    thanks!
    1.) It really depends on the type of website. I rarely, if ever have the blog on the first page. I usually always dedicate a separate blog page and have the index or main page be different then the blog, widgets, sliders, etc.... You can change the default "Homepage" and blog in Settings>Reading (wp-admin of course)

    2.) What do you mean by correct markup? How do you re-write the way the blogs are displayed? Sorry, the question was just a bit confusing for me.
    Michael John Froseth
    Freelance Web Developer | MichaelFroseth | dotCom

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2012
    Location
    New Delhi
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Edit your theme CSS, you can specify there which H tags you want to use like h2...h6 as par your need for the post title.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •