HTML and CSS Reference
The content of this view is separated into three sections:
The header, with the room name and presenter information
The “ask a question” form
The first two markup elements aren't anything wild, so let's get those out of the way first. Add the two additional
elements in the <section> :
The list of questions
<h2>Realtime Web Apps & the Mobile Internet</h2>
Presented by Jason Lengstorf
If you have a question and you don't see it below, ask it here.
<input type="text" name="new-question" tabindex="1" />
<input type="submit" value="Ask" tabindex="2" />
Using HTML5's data Attribute
The questions are going to be presented in an unordered list, but there's a twist: instead of creating an extra element
for the vote count, you're going to use the HTML5 data- attribute.
This serves two purposes:
jQuery has built-in support for accessing this attribute
CSS can use this attribute to generate content that is unimportant to the document
■ “unimportant” in the context of the previous statement means that the vote count is not vital to the information
being displayed. For that reason, it's being left out of the markup and displayed by CSS instead, thereby keeping the
markup clean and semantic.