Tuesday, 12 April 2016
HTML Interview Question & Answers for Freshers
A List of HTML Interview Question & Answers is Given Below:
What is HTML?
HTML is Refer as Hypertext Markup Language. HTML is Set of Markup Symbols or Codes Which is Inserted in a File for display a Web Page’s on World Wide Web (www). HTML Document Made with Two things: one is HTML Element & other is Tags.
What is the Difference in Between HTML Element & Tags?
HTML tags is Just Opening & Closing Entity For Example: <P> </P> are called HTML Tags
HTML element encompasses opening tag, closing tag, content (optional for content-less tags) Eg:
<p>This is the content</p>
: This complete thing is called a HTML element
What is a Hyperlink Text?
A Hyperlink Text is a especially type of tag which is basically used to link one Page to another page or resources. when anyone click on the link it jumps to another page.
What is the difference between HTML and HTML5?
HTML5 is upgraded version of HTML where in HTML5 supports the innovative features such asVideo, Audio/mp3, date select function, placeholder, Canvas, 2D/3D Graphics, Local SQL Database added so that no need to do external plugin such as Flash player or other library elements.
Advantage of HTML5?
a) Improved Semantics/ GEO Location Support.
b) Client side Database Avaliable.
c) full fill the Needs of web application.
b) Client side Database Avaliable.
c) full fill the Needs of web application.
What is Marquee in HTML?
Marquee tags used to display the text in blinked manner in only its supporting browser.
|
What is the <!DOCTYPE>?
The <!DOCTYPE> is an Instruction to the web browser about what version of HTML the page is written in. The <!DOCTYPE> tag does not have an end tag. It is not case sensitive.
What is HTML Attribute?
tags can also have attributes, which are extra bits of information. Attributes appear inside opening tag and their values set inside quotation marks. They look something like Margarine. We will come across tags with attributes later. for Example-a Person properties like his name, Roll No, Section, City is term as its attribute.
What lists are commonly used to design a web page?
- unordered list
- ordered list
- directory list
- definition list
- menu list
What is an image map?
An image map allows you to link to several web pages through one image. Simply define shapes within images and link these to the pages you want. Here’s a video to help you learn more about images and LINK in HTML.
What are the tags to create lists in HTML?
<ul> – unordered list
<ol> – ordered list
<ol> – ordered list
How will you display a picture in background of HTML?
By using the tag: <body style=”background-image:url(image path)”>
W3C stands for…?
World Wide Web Consortium…
What are applets?
Applets are small programs that can be embedded within web pages to perform some specific functionality, such as computations, animations, and information processing. Applets are written using the Java language.
What are the various elements provided by HTML 5 for media content?
audio – It defines sound content.
video – It defines a video.
source – This tag defines the source of video and audio.
embed – It provides a container for an external application.
track – It defines text tracks for videoand audio.
video – It defines a video.
source – This tag defines the source of video and audio.
embed – It provides a container for an external application.
track – It defines text tracks for videoand audio.
What is a Canvas? What is the default border size of a canvas?
Canvas is a rectangular area on a HTML page, specified with the canvas tag.
By default, It has no border. To get a border style attribute can be used.
By default, It has no border. To get a border style attribute can be used.
What is SVG?
SVG is the abbreviation for Scalable Vector Graphics and is recommended by W3C.
It is used to define vector-based graphics for the Web
It is used to define vector-based graphics for the Web
What is HTML5 Web Storage?
It store the data locally in the user’s browser
Differentiate between session Storage and local Storage objects?
Session Storage object stores the data only for one session while local Storage object stores the data without an expiry date.
What is a Manifest file?
A Manifest file is a simple text file that tells the browser what to cache and what not to cache.
What is a Web Worker?
A web worker is a JavaScript which runs in the background.
A web worker is a JavaScript which runs in the background.
What is the purpose of HTML5 versus XHTML?
HTML5 is the next version of HTML 4.01, XHTML 1.0 and DOM Level 2 HTML. Its aim to reduce the need for proprietary plug-in-based rich internet application (RIA) technologies such as Adobe Flash, Microsoft Silverlight etc.
HTML5 is the next version of HTML 4.01, XHTML 1.0 and DOM Level 2 HTML. Its aim to reduce the need for proprietary plug-in-based rich internet application (RIA) technologies such as Adobe Flash, Microsoft Silverlight etc.
WHAT are some other advantages of HTML5?
Cleaner markup than earlier versions of HTML
Additional semantics of new elements like header, nav, and time
Cleaner markup than earlier versions of HTML
Additional semantics of new elements like header, nav, and time
What is the !DOCTYPE? Is it mandatory to use in HTML5?
The !DOCTYPE is an instruction to the web browser about what version of HTML the page is written in. The !DOCTYPE tag does not have an end tag. It is not case sensitive.
The !DOCTYPE is an instruction to the web browser about what version of HTML the page is written in. The !DOCTYPE tag does not have an end tag. It is not case sensitive.
What are the various tags provided for better structuring in HTML5?
article – This tag defines an article.
aside – It defines content other than the page content.
bdi – This tag isolates a part of text for formatting.
command – It defines a command button to be invoked by the user.
details – It defines additional details that can be viewed .
dialog – It defines a dialog box.
figure – This tag specifies content like illustrations, diagrams, photos, code listings etc.
figcaption – It is used to provide a caption for a figure element .
footer – This tag defines a footer for a document or section.
header – This tag is used to define a header for a document .
hgroup – When there are multiple levels in a heading, it groups a set of h1 to h6 elements.
mark – It defines highlighted text.
meter – It defines a scalar measurement within a known range.
nav – It defines links for navigation.
progress – This tag exhibits the progress of a task.
ruby – It defines a ruby annotation for East Asian typography.
rt – It defines an explanation/pronunciation of characters for East Asian typography.
rp – This tag tells the system what to display in browsers that do not support ruby annotations.
section – It defines a section in a document.
summary – It provides a visible heading for a details element.
time – This tag defines a date/time.
wbr – This tag defines a line-break.
aside – It defines content other than the page content.
bdi – This tag isolates a part of text for formatting.
command – It defines a command button to be invoked by the user.
details – It defines additional details that can be viewed .
dialog – It defines a dialog box.
figure – This tag specifies content like illustrations, diagrams, photos, code listings etc.
figcaption – It is used to provide a caption for a figure element .
footer – This tag defines a footer for a document or section.
header – This tag is used to define a header for a document .
hgroup – When there are multiple levels in a heading, it groups a set of h1 to h6 elements.
mark – It defines highlighted text.
meter – It defines a scalar measurement within a known range.
nav – It defines links for navigation.
progress – This tag exhibits the progress of a task.
ruby – It defines a ruby annotation for East Asian typography.
rt – It defines an explanation/pronunciation of characters for East Asian typography.
rp – This tag tells the system what to display in browsers that do not support ruby annotations.
section – It defines a section in a document.
summary – It provides a visible heading for a details element.
time – This tag defines a date/time.
wbr – This tag defines a line-break.
What is a Web Worker?
A web worker is a JavaScript which runs in the background.
What is the purpose of HTML5 versus XHTML?
HTML5 is the next version of HTML 4.01, XHTML 1.0 and DOM Level 2 HTML. Its aim to reduce the need for proprietary plug-in-based rich internet application (RIA) technologies such as Adobe Flash, Microsoft Silverlight etc.
WHAT are some other advantages of HTML5?
Cleaner markup than earlier versions of HTML
Additional semantics of new elements like header, nav, and time
Additional semantics of new elements like header, nav, and time
What is the !DOCTYPE? Is it mandatory to use in HTML5?
The !DOCTYPE is an instruction to the web browser about what version of HTML the page is written in. The !DOCTYPE tag does not have an end tag. It is not case sensitive.
web design code examples about html and css
ReplyDeletehtml code Label sets a text for option element