XHTML 2.0 Explained – Making the Switch – Part 2
Sections and Headings
The old <h1> through <h6> tags are still in XHTML 2.0. However, there is a similar feature intended to replace them. Basically, one just defines a section and then has headings in the section. Something along these lines can be done:
<section>
<h>Heading</h>
<section>
<h>First Point Heading</h>
<p>Content</p>
</section>
<section>
<h>Second Point Heading</h>
<p>Content</p>
</section>
</section>
The point of all of this is to add a level of structure to the document. Everything is laid out simply and in a hierarchal manner. Search engines can get the information more easily, and non-visual web browsers can more easily let the blind user access the page more easily since they just have to look at the heading in the <h> tag.
The new <p> element
Unlike old versions of XHTML, in XHTML 2.0 the <p> element can contain block-level elements. (It still can’t nest <p> elements, though.) What this means is that it is possible to put lists in a <p> element, tables, and all other sorts of elements. The <p> will be more of a “conceptual idea of a paragraph” according to W3C, the makers of XHTML.
Forget <hr />, introducing <separator />
Not nearly as big of a change as all the previous lists, but <hr /> has been replaced with <separator /> in order to more clearly state its purpose. It will place a separator (usually a horizontal line) in the document.
XForms: The Future of Forms
XForms give you total control over client-side form entry and are very powerful. XForms are very complicated, and covering them completely is out of the scope of this article. However, the idea is that they use XML. Everything is in the <xforms:model> tag. The form defines generic tags which are specified by XHTML. Something like this will be done:
<xforms:model>
<xforms:instance>
<name />
<age />
<sex />
</xforms:instance>
<xforms:submission action = “post.php” method = “post” />
</xforms:model>
Then, in regular XHTML, you would go ahead and define them however you want.
<input ref = “name”>
<label>Name: </label>
</input>
<input ref = “age”>
<label>Age: </label>
</input>
<input ref = “sex”>
<label>Sex: </label>
</input>
<submit submission = “submit”>
<label>Send</label>
</submit>
If you are interested in using XForms, check out the specification:
XHTML 2.0 Explained – Making the Switch
No more <img> tags?
The <object> tag has already replaced the <applet> tag and other similar tags, but now it will replace the <img> tag too. Instead of…
<img src = “someimage.png” alt = “Some Description” />
…it is now…
<object data=”someimage.png” type=”image/png”>Some Description</object>
Lines, not line breaks
The <br /> tag is now gone in favor of the new <line> tag. This is used like so this: (note that the first line is the old way and the second is the new way)
in XHTML 1.0: Mary had a little<br />lamb
in XHTML 2.0: <line>Marry had a little</line>lamb
You don’t need an <a> tag to link
It will now be possible to link to pages without using the <a> tag.
in XHTML 1.0: <h1><a href = “page2.html”>Link</a></h1>
in XHTML 2.0: <h1 href = “page2.html”>Link</h1>
XHTML 2.0 Explained – Get Ready for New Types of Lists
The <nl> tag is coming and it represents the new navigational lists. Navigational lists work so well because users select them in order to see more. It works like a menu. It has a <label> element that defines the heading for the navigation list. Something like this would be a list:
<nl>
<label>Heading</label>
<li href = “#section1″>Section1</li>
<li href = “#section2″>Section2</li>
</nl>
This is not the only new list. Definition lists have headings and list items below them. It defines four tags (dl, dd, dt, and di) but is fairly simple. Everything is in the <dl> tag and then you have a <di> for each section. The <dt> contains inline content (the heading) and the <dd> will then contain block level content. Something like this:
<dl>
<di>
<dt>Heading 1</dt>
<dd>Content Content Content</dd>
</di>
<di>
<dt>Heading 2</dt>
<dd>Content Content Content</dd>
</di>
</dl>
Free Resources with Visual Studio 2008
Here you can find 101 LINQ Samples.
This resource include:
– Restriction Operators
– Projection Operators
– Partitioning Operators
– Ordering Operators
– Grouping Operators
– Set Operators
– Conversion Operators
– Element Operators
– Generation Operators
– Quantifiers
– Aggregate Operators
– Miscellaneous Operators
– Custom Sequence Operators
– Query Execution
Visual Studio 2008
On Monday, Nov. 19, Microsoft announced that Visual Studio 2008 and the .NET Framework 3.5 were released to manufacturing (RTM). With more than 250 new features,Visual Studio 2008 includes significant enhancements in every edition, including Visual Studio Express and Visual Studio Team System.
Download Trial Editions of Visual Studio 2008
New features:
- Multi-Targeting support
- VS 2008 Web Designer and CSS support
- ASP.NET AJAX and JavaScript support
- New language feature and LINQ
- Better access to date through LINQ to SQL