1. What is HTML? Define its
purpose and use as well?
HTML is the short form for Hyper Text
Markup Language and with the release of its latest version HTML5 is used
diversely in crafting animated and beautiful websites by creating web layouts
of amazing user experience.
2. What is the correct syntax
for Doctype in HTML5?
Latest syntax for HTML5 document type is
now <! DOCTYPE> only! It is not a HTML tag but instructs the browser
about the version of the HTML being used.
3. Explain the meaning of the
term ‘HTML attributes’!
These are part of the tags that gives
them context and purpose for their meaning like href attribute for <a>
tag in HTML. Similarly there are some HTML Global attributes which can be used
on all tags directly.
4. What are semantic elements?
A4. Semantic elements are those which
clearly defines their own meaning with names only like <form>,
<table> tags tell their work whereas <div>, <span> are
non-semantic elements telling none about their content placed inside them
whatsoever.
5. Is case-sensitivity a issue
with HTML5?
A5. No, you can write mixing of
uppercase and lowercase alphabets but recommended standard is lowercase.
6. Name few new HTML5 tags
that will form the core of the web for present and future modern layouts?
HTML5 brings with range of new elements
and tags that will be found in all modern layouts are <header>,
<nav>, <footer>, <section>, <article>. These are some
of the most important tags and are found in almost all the newer version of
themes, templates and web layouts.
7. Explain the benefits of
using HTML5 as opposed to earlier version of HTML!
HTML5 has made direct functionalities
and provides access for lot of things that were before could only be used with
3rd party plugins or separate programs.
1. New semantic elements that are
purposefully made for their name use like <header> for header section,
<footer> for footer section and other <nav>, <article>,
<section> & so on.
2. Improved JavaScript API for
geolocation, drag-and-drop and media APIs.
3. Support for audio with <audio>
tag, video with <video> tag and <canvas> tag for embedding graphics
directly into HTML5.
4. Enhanced support for multi-platform
accessibility.
5. New form elements (<time>,
<url> etc) and smooth validation process that works like charm.
8. What are the differences
between inline and block elements?
Inline elements take only the space in
their line with no margin-padding like <a>, <hr>, <span> etc
whereas Block elements block the whole area once placed in the html layout like
<div>, <h1>, <p> etc!
9. Define the data-attributes
in the current form of HTML5?
Data attributes in HTML5 are used to
embed custom data to an element which are quite helpful developing Single Page
Applications in the modern web development.
10. How you will explain the
datalist element in HTML5?
Using HTML5 datalist element,
auto-complete facility is provided in text box using just tags only.
11. Can you link image with
webpage? Is it possible? If possible please explain in detail!
Linking image with webpage is done by
placing the <img> tag inside <a> and closing the tags accordingly
within. Source of the image is defined with src attribute.
12. How you can differentiate
between <article> and <section> tags?
<article> defines a document
whereas <section> is part of the page. Both can be used inside each other
as the conditions ask for it with purposely defined structure in the web layout.
13. What are Web Workers?
These are mainly JavaScript files that
run in the background.
14. Explain the media tags
associated with HTML5!
<audio> and <video> tags are
the new addition in the HTML5 with
15. Are we allowed to multiple
use of tags like <header>, <footer> in the formation of the web
layouts of the designing?
Yes, these two tags <header>,
<footer> have been created with purpose of using them multiple times for
every part of the body (section). Every section can have their own
<header> tag and <footer marking their own identity in the HTML
16. Which tag has replaced
most of the properties of Flash in HTML5?
<Canvas> is the tag that has a lot
of properties similar to Flash directly integrated into HTML5 with access for
drawing boxes, paths, circles, text and graphic images.
17. Can we create new elements
in HTML5? Is there any criterion for it?
Yes, you can create new elements but
using JavaScript with purposeful meaning.
18. List few tags that are now
not supported with HTML5!
Yes there are some tags that are either
replaced with new tags or merged with some old ones and some replaced with CSS
properties entirely. These are <acronym>, <s> etc and click here
for complete list of tags not supported in HTML5.
19. Can you store data locally
in HTML5? Is there a possibility? Explain!
Yes, HTML5 offers local storage within
user’s browser. Earlier this functionality was handled by cookies. Localstorage
through HTML5 is permanent until user deletes it himself whereas Sessionstorage
is over as soon you close the browser of your system.
20. With the advent of HTML5,
are there any changes in API use for HTML5 with web development?
Yes there quite a few changes with API
integration with HTML5 that are new and will make development easy like High
Resolution Time API, Media API, Text track API, User timing API, Data Transfer
API, Command API, History API creating web environment for future.
21. What is the default
Browser font size of HTML5?
16
px is the browser default in case there are no specified font size value being
assigned in the CSS. Otherwise the given value will take effect respectively.
22. Is it necessary to
close HTML tags while making layouts?
Yes
One must close all the tags as they might have individual properties with
respect to inline or block elements. But there are single elements can survive
without closing like
<hr> tag, <br> tag etc.
<hr> tag, <br> tag etc.
23. Can we use
percentage in font sizes?
Only
if we use them with specific set for e.g. if the website is set with default
size 16px than we can use values like em to scale them with our choices i.e
1.25% em.
24. What is HTML Shiv?
HTML
Shiv is JavaScript fix made by Individual brilliance of Sjoerd Visscher for enable styling of HTML5 Internet
Explorer that are prior to version 9.
25. What is HTML5
boilerplate?
HTML5
Boilerplate is a professional front-end template that is used to create fast,
robust and adaptable HTML5 sites that are Cross Browser compatible features.
26. Which is the most
correct as per HTML5 Standards ..<br>, <br/>, or <br />?
As
per HTML5 Standards <br> is enough to get the desired results but these
values most often will give you the same results. Until HTML4 <br/> was
allowed and if you are using XTHML it is still preferred.
27. What are HTML5
ARIA?
HTML5
ARIA stands for HTML5 Accessible Rich Internet Application i.e. standard
semantic markup that web developers can add to HTML tags that allows better
reading standards for screen reader. role, attributes, button tag for button,
alt attributes that provides user information, informative link building with
titles, language declaration, and more semantic HTML standards. These ARIA
standards allow disable friendly HTML5 behaviour to the web pages.
28. What are meta
Charsets? Why are they written?
Along
with Doctype, these meta charsets define the type of HTML document is written in.
Below is the standard meta charset notation defined in HTML 5. They are written
to define the browser support for the HTML respectively
1
|
<meta
charset="utf-8" />
|
29. Which types of
Video formats are accepted with HTML5 Video tags?
MPE4,
WebM, Ogg are the three standard video format supported by HTML 5 tags while
you can run others using right codecs, plugins and libraries.
30. Do All browser
support HTML5?
Yes
all latest version of browser support HTML5 although there are specific
elements which have some issues which can be fixed by writing browser specific
CSS.
No comments:
Post a Comment