HTML5
– A Short Description
Introduction
- HTML5
is the next major revision to HTML
New
HTML5 Tags
- <section> – breaks a document into its logical
sections
- <header> – represents a header section, note
that this represents a document header, and is different
from <head> tag which is a HTML header
- <footer> – represents a
document footer
- <aside> – represents an
“aside” section that is unrelated to the rest of the document
- Form
inputs in HTML5 also introduced new input elements such as
<datetime>, <tel>, <url>, etc. Contrast this with
<input type=”text”>
- HTML5
also introduced the famous <video> and <audio> tags for
playing of videos and audio files respectively
Semantic
Markup and Page Layout
- article
- aside
- figcaption
- figure
- footer
- header
- hgroup
- mark
- nav
- section
- time
- Headers and footers are
self-explanatory and nav creates
a navigation or menu bar. You can use sectionsand articles to
group your content.
- aside element can
be used for secondary content, for example, as a sidebar of related links.
- hgroup element,
which grouped together my h1 and h2 headers
- mark element
allowed me to highlight or mark some important text.
- figure and figcaptionelements specify a figure in my content (like
an image, diagram, photo, code snippet, etc.)
- < canvas> tag. It’s just what it sounds like——a
blank surface for drawing. You need to use JavaScript to manipulate and
draw on the canvas.
- In HTML5,
you can embed audio and video using the new <audio> and
<video> tags.
No comments:
Post a Comment