Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

semantic markup - What's the best HTML5 tag to use for marking up blog excerpts? -


it's common pattern blogs have archive pages (eg date or category) list relevant blog posts, along excerpts (a paragraph or) , link. can't quite work out of html5 elements it's best use individual posts, however.

the <article> tag might seem fit (and if displaying whole content), i'm not sure whether it's appropriate excerpts. specification says:

the article element represents self-contained composition in document, page, application, or site , is, in principle, independently distributable or reusable, e.g. in syndication.

is excerpt self-contained , independently distributable piece of content? i'm not sure.

other options might <blockquote> tag (but it'd weird quoting own posts), or <ol> list (ordered publication date) containing headers , paragraphs.

any thoughts?

i'd use:

 <li>     <blockquote cite="original url">     </blockquote>  </li> 

<blockquote> appropriate this:

the blockquote element represents section quoted source.

quoting not weird. definition of element doesn't have quote else. quote document lives under url.

i think <article> (instead of <li>) acceptable, it's not necessary (the definition of article pretty lax, it should have been called <infolump> ;)

my litmus test <article> whether it'd useful in rss/atom feed, , can find feeds article excerpts.


the <summary> element part of <details>, has different purpose.

<aside> describes role of content within page. when excerpts main part of archive page, it's not tangential content. otoh if "see also" section on post page, <aside> perfect.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -