, HTML 4.01, div, , div soup .
, HTML 5 ( hacks, ), . , :
<div class="nav">
<ul>
<li>Home</li>
<li>About</li>
</ul>
</div>
HTML5 :
<nav>
<ul>
<li>Home</li>
<li>About</li>
</ul>
</nav>
, :
<div class="post">
<h1>Example Blog Post</h1>
<div class="entry">
<p>Blog text goes here...</p>
</div>
<div class="entryFooter">
<p> Posted in example category.</p>
</div>
</div>
:
<article>
<header>
<h1>Example Blog Post</h1>
</header>
<p>Blog text goes here...</p>
<footer>
<p>Posted in example category.</p>
</footer>
</article>
, - , .
To put everything as I would like, I would use CSS3, but again, if you need to support older browsers, use CSS2.
To do this in VS2010, simply open the .aspx or .ascx pages and start writing markup. I find products like Dreamweaver to create garbage markup using the design interface, so it's best to write it manually.
Also, if you are following the HTML5 path and want intellisense in VS2010, here is an addon for it.
source
share