Use what's appropriate. It's it's a bunch of text content, use <p>. If it's the beginning of sections, use <h1>, <h2>, etc. If it's a list, use <ul>. Keep in mind, for SEO purposes, you only use one <h1> per page. You can use as many divs as you need, nested however you need. Also, keep in mind, don't have block level elements inside of inline elements. It's not semantically correct. For example, don't do <li><div>stuff</div></li>. If you need a block level element within an inline element, use a <span> and display:block in the CSS.
Also, keep in mind, don't have block level elements inside of inline elements. It's not semantically correct. For example, don't do <li><div>stuff</div></li>.
LI's are not inline elements. There are cases when DIV's inside LI's make total sense. For example: http://jsfiddle.net/d8Txw/17/
I'm always up for networking with fellow web professionals. Connect with me on LinkedIn if you like!
Use what's appropriate. It's it's a bunch of text content, use <p>. If it's the beginning of sections, use <h1>, <h2>, etc. If it's a list, use <ul>. Keep in mind, for SEO purposes, you only use one <h1> per page. You can use as many divs as you need, nested however you need. Also, keep in mind, don't have block level elements inside of inline elements. It's not semantically correct. For example, don't do <li><div>stuff</div></li>. If you need a block level element within an inline element, use a <span> and display:block in the CSS.
I use XHTML STRICT, its easy until you want to add videos.
I doubt the use of <H1> will make your site any better for SEO, It should really be outdated like the "FONT" tag.
LI's are not inline elements. There are cases when DIV's inside LI's make total sense. For example: http://jsfiddle.net/d8Txw/17/
The XHTML 1.0 Strict Validator sorts this out for me.
You can have a <ul> <li> inside a <table> and a <div> and a <P> and you can access them with css.
I have just realized ho difficult it is to add video compatible to popular browsers and formats.
I am using HTML 5 <video> Tag, I have to say they are on the right track with this one.
For all I have seen of embed and object and all the nasty writing you have to do, I am much happier just making a few extra copies with my converter and using <video> tag.
Thanks HTML 5, you may have saved the web jostling corporates, my faith is resumed.
h1, h2, h3 tags have nothing to do with formatting content. It has everything to do with semantics. H is for heading ... would you suggest putting headings in paragraph tags? Or div tags?
I'm always up for networking with fellow web professionals. Connect with me on LinkedIn if you like!
h1, h2, h3 tags have nothing to do with formatting content. It has everything to do with semantics. H is for heading ... would you suggest putting headings in paragraph tags? Or div tags?
Ok I can see the point.
But for what purpose? Does SEO really read so much of a page that it needs to digest your site as if reading a book?
Bookmarks