Hello web programmers, and additionally Windows Phone 8 programmers,
Since all we can now code in HTML5 in our environments or devices where our apps or applications will run on.
I've been attending to courses that Microsoft offers free over Virtual Academy
and I want to share the first session's evaluation notes with you.
In fact this is some small notes not to forget for future while HTML5 programming.
The first note can be the difference between canvas and SVG graphics improvements in HTML5.
Don't forget if complex, SVG will be slow in rendering process. Although developers can identify and work with each object on SVG seperately, canvas will perform better if the graphic is too complex.
All graphic reach apps use canvas.
Here I mentioned an other important difference between canvas and SVG is that, SVG images can be searched within a DOM. But canvas is to be repainted one image everytime.
And the improved and new forms elements in HTML5.
For example, when you place an input element within an HTML5 form, you can mark the field as required in an input form just by adding the "required attribute" or setting the required attribute value to "required". Here is the sample HTML5 markup code. Both usage is correct.
<input type="text" required />
<input type="text" required="required">
An other evaluation questions were about the new HTML5 semantic tags.
For example if you want to place author and copyright data in your HTML5 web page, you can use the footer
If you want to place a stand-alone content seperated from others, you can use the figure
Figure semantic tag can be used for grouping stand-alone content like video or image.
And that is all for today's HTML5 self-training and evaluation