0% found this document useful (0 votes)
11 views

upler question answer html

Uploaded by

PRABHAT SINGH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

upler question answer html

Uploaded by

PRABHAT SINGH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 24

HTML INTERVIEW QUESTION ANSWER

Q-Is HTML a programming language or not?


A just supposed if I asked you what will be 2+2 so we get write Ans 4 that is
compute output which means there will some do mathematical operation. if
asked again same thing 2+2 as format than output is 2+2 that means html is
not programming language same like CSS is not a programming language that is
cascade styling for particular document.
Q-What is HTML?
HTML is stand for hypertext markup language used for creation and display of
attractive, interactive and dynamic web page.

Q-What is Boilerplate in html?


An html boiler plate is a pre prepared library of code that copied and is meant
to be used as a starting point to start building web project.
Q-What is Doctype in html?
Ans -The html doctype tag is first line in the html document .it tell the browser
what version of html the document is written so that the browser knows what
to expect.
Q-What do you understand by HTML tag?
All the content of website will be inside this closing and opening tag
.it tell the browser that the content file of html.
Q2-What is meta tag used?
Meta is used to give information about the data... It specifies
page description, keywords, copyright, language, author of the
documents, etc.

, This type of information not displayed anymore and consist of


element but it is used by search engines, browsers and other
web services which scan the site or webpage to know about the
webpage.

The <meta> tag is placed within the <head> tag, and it can be
used more than one times in a document.

Q2- what is <meta charset =” utf-8”> used?


It is defining the character encoding. The value of charset is
“UTF”-8 which means it will support to the display any
language.
Q3- what is <meta name =” keywords” content=”HTML,
CSS, JAVA SCRIPT > used?
It is specifying the list of keywords which is used by search
engines.
Q4-what is <meta name =” description” content used?
It is defining the website description which is useful to provide
relevant search performed by search engines.
Q5-what is <meta name =” refresh” content=”50”> used?
It specifies to provide instruction to the browser to
automatically refresh the content after every 50sec (or any
given time).
Q6-what is meta http-equip = “refresh “content = “5,
URL=https//www.javapoint.com> used?
we have set a URL with content so it will automatically redirect
to the given page after the provided time.
Q7-what is meta http-equip = “refresh “content =
“width=device-width ,initial -scale=1.0”> used?
It specifies the viewport to control the page dimension and
scaling so that our website looks good on all devices. If this tag
is present, it indicates that this page is mobile device
supported.
Q- What is head tag in html?
The <head> tag contain addition information about the website .The content
inside the head tag will not be visible on your browser. The head element meta
data, character set, document title style etc. this data is not shown to viewers .
Q- What is title tag in html?
The title tag is present inside the <head> tag. The text present inside the tags
appears at the top of the browser window. The tittle is written between
<title></title> tag.
Q- What is body tag in html?
The body tag contains content all content of the webpage like text, video, audio
etc. Everything you can see on the web browser and the always written
between in body tag.
Q- What is p tag in html?
The p tag contain paragraph of text .which is always written in p tag.

Q6-What is html meter tag?


HTML <meter> tag is used to measure data within a given
range. It defines a scalar measurement with range. It is also
known as a gause.

It should be used to display disk usage, voting population etc.

Q7-What is HTML?
The full form of HTML stands for Hypertext Markup Language and it also allows
the user to create and structure sections, paragraphs, headings, links, and
blockquotes for web pages and applications. Which is used for more interactive
dynamic page.
Q8-What are tag?
HTML tags are composed of three things: an opening tag, content and
ending tag. Some tags are unclosed tags.

HTML documents contain two things:

o content, and
o tags

When a web browser reads an HTML document, the browser reads it from
top to bottom and left to right. HTML tags are used to create HTML
documents and render their properties.

Q9-Do all html tag end tag?


No there are some tag which don’t need the end tag .like <image> tag, <br>
<hr> .
Q10-What is formatting tag in html?
The html formatting tag is process of formatting of the text to make better look
and feel.it is uses different tags to make bold, italic form, and underlined.
Q11-How many type of heading does contain in html?
There are six types of heading does contain in html. <h1>to<h6>. Each type of
heading displays different text size from another. So <h1> is largest heading tag.
<h6> is smallest heading tag.
Q12- How to create hyperlink in html?
To create a hyper link in html page we will be using anchor tag .anchor tag is
create a hyperlink that link one page to another. This tag an appear in any of
following ways:
 unvisited link - It is displayed, underlined and blue.
 Visited link- It is displayed, underlined and purple.
 Active link- It is displayed, underlined and red.
Q13-which html tag used to display the data in tumbler
form?
The html tag used to display the data in tumbler form like row and coulomb .it
is also Manage layout of the page. For example- head section, navigation
bar, body section, footer section.

<table> It defines a table


.<tr> It defines a row in a table
.<th> It defines a header cell in a table
.<td> It defines a cell in a table.
<caption> It defines the table caption>.
<cogroup> It specifies a group of one or more columns in a table for
formatting.
<col> It is used with <colgroup> element to specify column properties for each
column.
<tbody> It is used to group the body content in a table.
<thead> It is used to group the header content in a table.
<tfooter> It is used to group the footer content in a table.

Q14-What are some common lists that are used when


designing page?
There are some common lists that are used when designing page. like
 Ordered list -The ordered list always display element in numbered
formate.it is represented by <ol> tag. This attribute is used to
specifies that the ordered of the list should be reversed.
type: This attribute is used to specifies the type of list
item maker. The value of this attribute is decimal
(Default)/lower-roman/upper roman/lower-alpha/upper
alpha
 Unordered list-The unordered list always display element in bullet
form.it is represented by <ul> tag.
 Definition list-The definition list always display element in definition
form like dictionary. The dl ,dt and dd tag are used to define description
list.
Q15-how to inserted image in html?
To inserted image in html we are using <img=src . Images are not
inserted into a web page; basically, they are linked to web page. img tag
helps to create a holding space for the referenced image.
The tag is normally empty, it has attributes only, and does not have a
closing tag. image tag has two required parameters:
● src – The path to the image
● alt – An alternate text for the image.
Q15-What is HTML attribute?
o HTML attributes are special words which provide additional
information about the elements or attributes are the modifier of the
HTML element.
o Each element or tag can have attributes, which defines the
behaviour of that element.
o Attributes should always be applied with start tag.
o The Attribute should always be applied with its name and value pair.
o The Attributes name and values are case sensitive, and it is
recommended by W3C that it should be written in Lowercase only.
o You can add multiple attributes in one HTML element, but need to
give space between two attributes.

Q-What is features of HTML?


 It is Beginner friendly, Easy to learn and use.
 It’s Supported by all browsers and plate
independent.
 It completely free and open source
 It’s also provide Option to add like Audio, Video,
image and Sound also.
 Its is case sensitive. The html is always written in
either uppercase and Lowercase.

Q16- How many tag in html?


There are four types of tag required in HTML. These are
HTML ,Head, Tittle ,Body it is always represented with open tag and
closing tag.

Q16- What is a anchor tag in html?


The HTML anchor tag defines a hyperlink that links one page to
another page. It can create hyperlink to other web page as well as
files, location, or any URL. The "href" attribute is the most important
attribute of the HTML a tag. and which links to destination page or
URL.

Q17- What is attribute used in html?


The href attribute is used to define the address of the file to be
linked. In other words, it points out the destination page.

VALUE DESCRIPTION
_self Opens the page in the same tab/window. This is the default.
_blank Opens the page in a new tab.
_parent Opens the page in the parent iframe. In the same iframe if there is
_top Opens the page in the topmost part of the iframe. In the same ifra
no topmost.
framename Opens the page in a named iframe.

Q18- What is target attribute used in html?


A target attribute with the value of “_blank” opens the linked
document in a new window or tab
The target attribute specifies where, in which tab or window, the
linked page will open. Linked pages can be opened in the same tab,
a new tab, a new window, or an iframe.
If target is not set, the link opens in the same tab/window as the
current page.

Q18- What is <link> used in html?


HTML <link> tag is used to specify the relationship between the current
document and external source. The <link> tag is commonly used to link
the external Stylesheet document but it can also use with link site icon. It
is placed on the head section of the document.

Q18- What is rel used in html?


It describes the relationship between the current
document and linked document. (required).
Q19- What is rev used in html?
It describes the relationship between the linked document and the
current document. (Not supported in HTML5
Q20 – How to change font in html?
There are two ways to change font in html ….
 Using HTML Tag
 Using style attribute

Using HTML Tag. – if we want to change the font of text using html
tag which is To be displayed on a web page.so now first of all we are
write our boilerplate
Code in html. that will be something like this. Doctype html, HTML,
head, and
Body tag use with open tag and end of closing tag. Suppose we are
writing
Heading for web page .and want to do change font of heading. Ten
we are using <font></font. Within the heading tag. After that font will be
change…….

Using style attribute -if we want to change font of text using


html tag which is to be displayed on web page so now first of all we are
write our boilerplate
Code in html. that will be something like this. Doctype html, HTML,
head, and
Body tag use with open tag and end of closing tag. Suppose we are
writing
A paragraph for web page .and want to do change font of paragraph
. Then we are using style attribute Within the paragraph tag. After that
font will be change…….

Q21-How many methods are there to change the


colour of the text in HTML?
There are three ways you can change colour of your text with
CSS, these are using Inline, Internal or External styling.
Q22-How many methods are there to change the
background colour in HTML?
There are three way you can change background colour in html.
 Using bgcolor attribute
 Using an inline styling and Using Internal CSS

Next page of interview question answer

Q22-How to comment in html?


The comments in the html document are text of the html
which are
Not Interpreted by the Brower.
In html comments are represented by <!---something like
that--->
Q23-How to give space in Html?
To give the space between the text we are using &nbsp;
which is
Also know as a Non breaking space .it help to prevent line
breck at is location.no matter how many type you entered
space …
Q24-How to link CSS in html?
There are three ways to link CSS in html.
 Inline – by putting the style attribute inside HTML elements
 Internal – by putting a section
 External – by adding a element to link to an external
Q25-what does algin the text means?
Text alignment is a paragraph formatting attribute that
determines the appearance of the text in whole paragraph.
For example, in a paragraph that is left-alignment text is
aligned with left margin. In a paragraph that is justified text
is aligned with both margins. align text left.
Q26- How to create a Table in HTML?
HTML table help web developer to set the data in row and columns..
Each table row can be defined with a <tr> tag.
Each header can be defined with a <th> tag.
Each data or cell defined with a <td> tag.
If your text is in the <th> element then they will be bold and centred.
If your text is the <td> element then they will be regular and left aligned .
Q27-How to convert HTML to pdf?

Q22-What is url and type in html?


A URL stand for Uniform Resource Locator .a URL is Nothing more
Than the address of given unique resources on the web. FOR EXAMPLE –
AN HTML page , CSS Document ,an image etc.

Q29-What is Absolute Path?


An Absolute path is full path specifying the location of the file.
Q29-What is Absolute Path?
An Absolute path is full path specifying the location of the file.
A Relative path describes the location from the root directory.
o Example: An Absolute path of any directory always
starts with a slash (/) representing the directory root.
Besides this, all slashes in the directory path separate the
directories.
o All directories’ names in the absolute path are written in
the hierarchy order. The parent directory name is written
on the left side.
o The last name in an absolute path may belong to a file or
directory. Besides the last name, all names belong to the
directories.
o The absolute path of the current directory can be
determined by using the pwd command.

Q30-What is relative path?


The relative path of a file is its location relative to the
current working directory. It never starts with a slash (/). It
begins with the ongoing work directory.

Q24- How many different between html and html5?


There are many different between html and html5.

HTML was the first version used which consisted of only 18


element .in this HTML all html tag supported by all browsers.
There is no audio video support. And does not allow to draw
shape like or circle, rectangle. HTML are used cookies for
storage that hold small amount of data.

HTML5 is current version used which consists of


approximately 110 tags And some html tag are not
supported by the all browser. In html5 audio video supported
and also allowed to draw Shap like circle and
rectangle.HTML5 use local web storage which is significantly
higher.

Q25-How can see the html code behind the any


website?
We can see simple way to html code behind the any website.
So first of all, we open any website on google .and click right
click on the Page and select the inspect click the view page
source option from the right click menu.

Q26-What is vs code?
Visual Studio Code, Abbreviated as VS code is coding
application for html with in built features and extension to boot
the coding experience of developer.

Q27-Why use the live sever Extension?


The changes are made automatically on the default browser with the help of
the live server extension.

Among the many extensions that our VS Code hosts, a live server extension is
one of them.

Usually, when we are coding & we need to see the changes live, we have to
reload the page manually. We code 1 line, and we refresh it once. This
process is repeated over & over again till we are done making changes & our
project is ready. It can be tiring. But not with the live-server extension.

By enabling VS Code’s live-server extension, this process is automated. With


a single click, a self-operating localhost runs in the browser that updates our
code with every addition, deletion, and change made.

Q27-How to install a vs code Extension?


 The first step is to make sure vs code install on the computer.
 Open to app welcome screen will appear. take some time to Explore
the application by over, some icon, creating new file and managing
them through the explorer.

 Now the leftmost side. there are 4 icon that serve different purposes.
The icon below the run and debug icon gives us to chance to download
and investigate all extensions.

 One of the most common live servers used to developed by Ritwick


day. Installing that is ideal option. It is used many and easy to
understand interface.

Q28-What is list-style-type?
This attribute is used to specifies the bullet style. That will be
used as the list item maker. the value of attribute is
NON/Disc/Circle/square.

Q29-What do you understand by HTML element?


The collection of start and end tag with the content inserted in
between them is known as element tag.

Q30-What is Empty tag?


The tags that do not contain any closing tags are known as
empty tags. Empty tags contain only the opening tag but they
perform some action in the webpage. Examples: <image>, <brr>,
<hr>, etc.

1. <br>: Inserts a line break in a webpage wherever


needed.
2. <hr>: Inserts a horizontal line wherever needed in the
webpage.
3. <img>: This tag is used to display the images on the
webpage which were given in the src attribute of the tag.
4. <input>: This is mainly used with forms to take the input
from the user and we can also define the type of the input.
5. <link>: When we store our CSS in an external file this can
be used to link external files and documents to the
webpage and it is mainly used to link CSS files.
6. <meta>: Contains all metadata of the webpage.
Metadata is the data about data and is described in the
head tag.
7. <source>: When an external media source is needed to
be included in the webpage. source tag is used to insert
any media source like audio, video etc… in our webpage.

Q31-What do you Understand by HTML Attribute?


HTML attributes are the special words placed inside the opening tags and
used to define the characteristics of an HTML element. The HTML
attributes contain two parts, attribute name, and its value. The attribute
pairs (attribute name, attribute value) are separated using equal (=)
operator. The attribute value is closed inside double quotes (" ").

Q32- What is HTML global attribute?


HTML global attribute refer to the attribute common to all HTML elements.
Although They may have no effect on some elements. Global attributes
specified on the standard and nonstandard element.

Example:

hidden: It is used to define the visibility of elements. It contains a


boolean value. If this attribute is used then browsers will not display
elements that have the hidden attribute specified.

Q33-What is meta tag?


The metadata means information about data. The <meta> tag in HTML
provides information about HTML Document or in simple words, it
provides important information about a document.

 name: This attribute is used to define the name of the property.


 http-equiv: This attribute is used to get the HTTP response
message header.
 content: This attribute is used to specify properties value.
 charset: This attribute is used to specify a character encoding for
an HTML file.
Q31-How many ways to implement meta tag?
There are various other ways to implement the <meta> tag that can use
some attribute values:

 Highlighting Important Keywords: The meta tag contains


important keywords that are present on the web page and is utilized
by the web browser to rank the page according to searches. Search
Engine Optimization is another term for this optimizing the SEO rank
of the content.
 Providing a Description of the web page: A brief/short
description of the web page can be included in the Meta tag, which
will help the web page rank on the internet.
 Document Revision Date: The meta tag is used to give the
information about the last updated document. This information is
used by various web browsers when refreshing the web page.
 Automatic Refresh: A specified time will be mentioned in the
meta tag after which the webpage will be automatically refreshed
ie., this meta tag is used to specify a duration after which the web
page will keep refreshing automatically after the given duration.
 Specifying Author of the Webpage: Metatag allows us to
mention the name of the author of the webpage as follows.

Q31- What is used of. Button tag?


The <button> tag is used to create a clickable button within HTML form
on your webpage. You can put content like text or image within the
<button>........</button> tag.

You should always specify the type attribute for a <button> tag. Different
browsers use different default type for the button element.

HTML Button tag can be used inside and outside the form.

If you use it inside the form, it works as the submit button. You can also
use it as reset button.

If you use it outside the form, you can call JavaScript function on it.
Q32- What is used of Division tag HTML?

6. Division tag: Following tag is used to create a division:

<div>….</div>: This defines a section in a document. The


webpage can be divided to different sections using the
<div>….</div> tag.
7. Iframe tag: Following tag is used for inline framing:

<iframe src=”link.com> </iframe>: When some other document


is to be embedded like some video or image into HTML we use this
tag.
8. Navigation tag: Following tag is used to set a navigation link:

<nav>…</nav>: Defines a navigation bar that contains a set of


menu or a menu of hyperlinks.
9. Script tag: Following tag is used to add JavaScript code to the
webpage:

<script>…</script> : This contains the javascript code that adds


interactivity to the webpage.
10. Lists: Following tags are used to write data in the form of ordered
and unordered lists:

 <ol>…</ol>: This tag is used to create ordered lists.


 <ul>…</ul>: This tag is used to create unordered lists.
 <li>…</li>: This tag is used to add list items.

Q33-What do you Understand by <a> HTML?


The HTML anchor tag defines a hyperlink that links one
page to another page. It can create hyperlink to other web
page as well as files, location, or any URL. The "href"
attribute is the most important attribute of the HTML a tag.
and which links to destination page or URL. In other word say
its point out destination page.

<a herf=” “>link text</a>


Q34-What do you Understand by Target attribute
HTML?
The target attribute is used to specify the location
where the linked document is opened.
 If you set the target attribute to “blank” the link will open
new browser window or tab.
 If you set the target attribute to “self “the link be open in
the same window or tab.
 If you set the target attribute to “top “the link will be open
in the full body of the window.
 If you set the target to “parent” the link will open in the
parent frame.

Q36-What do you Understand by <image>


attribute HTML?
HTML <img> tag is used to add image inside
webpage/website. Its represented by <image> and end of
closed of tag </image>.

 src: It is used to specify the path to the image.


 alt: It is used to specify an alternate text for the image. It is useful
as it informs the user about what the image means and also due to
any network issue if the image cannot be displayed then this
alternate text will be displayed.
 crossorigin: It is used to import images from third-party sites that
allow cross-origin access to be used with canvas.
 height: It is used to specify the height of the image.
 width: It is used to specify the width of the image.
 ismap: It is used to specify an image as a server-side image map.
 loading: It is used to specify whether a browser should defer loading
of images until some conditions are met or load an image
immediately.
 longdesc: It is used to specify a URL to a detailed description of an
image.
 referrerpolicy: It is used to specify which referrer information to
use when fetching an image i.e. no-referrer, no-referrer-when-
downgrade, origin, origin-when-cross-origin, unsafe-url.
 sizes: It is used to specify image sizes for different page layouts.
 srcset: It is used to specify a list of image files to use in different
situations.
 usemap: It is used to specify an image as a client-side image map.
Q37- How can you describe lay out of html
page.?
 Header: The part of a front end which is used at the top of the page. <header> tag is used
to add header section in web pages.
 Navigation bar: The navigation bar is same as menu list. It is used to display the content
information using hyperlink.
 Index / Sidebar: It holds additional information or advertisements and is not always
necessary to be added into the page.
 Content Section: The content section is the main part where content is displayed.
 Footer: The footer section contains the contact information and other query related to
web pages. The footer section always put on the bottom of the web pages. The <footer>
tag is used to set the footer in web pages.

Q38- How can you describe lay out of html


page.?
Q39-How many type of HTML tag use?
There are two ways classified to html tag ...

 Semantic Element - Semantic elements have meaningful names


which tells about type of content. For example, header, footer,
table, … etc. HTML5 introduces many semantic elements as
mentioned below which make the code easier to write and
understand for the developer as well as instructs the browser on
how to treat them.
 article
 aside
 details
 fig caption
 figure
 footer
 header
 main
 mark
 nav
 section

Article: It contains independent content which doesn’t require any other


context. Example: Blog Post, Newspaper Article etc

Aside: It is used to place content in a sidebar i.e. aside the existing


content. It is related to surrounding content. example: Blog Post,
Newspaper Article etc.
Details and Summary: “details” defines additional details that the user
can hide or view. “Figure and Fig caption: These are used to add an
image in a web page with small description. summary” defines a visible
heading for a “details” element.

Header: As the name suggests, it is for the header of a section


introductory of a page. There can be multiple headers on a page.

Footer: Footer located at the bottom of any article or document, they can
contain contact details, copyright information etc. There can be multiple
footers on a page.

Main: It defines the main content of the document. The content inside
main tag should be unique.

Section: A page can be split into sections like Introduction, Contact


Information, Details etc and each of these sections can be in a different
section tag.

nav: It is used to define a set of navigation links in the form of navigation


bar or nav menu.

 Non-Semantic Elements: Tags like div, span fall under the non-
Semantic categories as their names don’t tell anything about what
kind of content is present inside them.

div It is a block level element or division of a section. It is used as a


container.

span: It is an inline element which doesn’t start on a new line and takes up
only the necessary width. For more details
use https://www.geeksforgeeks.org/span-tag-html/.

Supported Browsers:

 Google Chrome 6.0 and above


 Internet Explorer 9.0 and above
 Mozilla 4.0 and above
 Opera 11.1 and above
 Safari 5.0 and above

Q40-What is block level element?


A block-level element always starts on a new line and stretches out to
the left and right as far as it can i.e, it occupies the whole horizontal
space of its parent element & the height is equal to the content’s
height.

 HTML <address> Tag


 HTML <blockquote> Tag
 HTML <dd> Tag
 HTML <Div.> Tag
 HTML <dl> Tag
 HTML <dt> Tag
 HTML <canvas> Tag
 HTML <form> Tag
 HTML <Heading> Tag
 HTML <hr> Tag
 HTML <li> Tag
 HTML <main> Tag
 HTML <nav> Tag
 HTML <no script> Tag
 HTML <ol> Tag
 HTML <pre> Tag
 HTML <section> Tag
 HTML <tfoot> Tag
 HTML <ul> Tag
 HTML Tables
 HTML Paragraphs
 HTML5 <Video> Tag
 HTML5 <aside> Tag
 HTML5 <article> Tag
 HTML5 <fig caption> Tag
 HTML5 <field set> Tag
 HTML5 <figure> Tag
 HTML5 <footer> Tag
 HTML 5 <header> Tag

Basically know as block level element …..

 <h1>-<h6> : This element is used for including headings of


different sizes ranging from 1 to 6.
 <div>: This is a container tag and is used to make separate
divisions of content on the web page.
 <hr>: This is an empty tag and is used for separating content by
horizontal lines.
 <li>: This tag is used for including list items of an ordered or
unordered list.
 <ul>: This tag is used to make an unordered list.
 <ol>: This tag is used to make an ordered list.
 <p>: This tag is used to include paragraphs of content in the
webpage.
 <table>: This tag is used for including the tables in the webpage
when there is a need for tabular data.
Div. element: The <div> element is used as a container for other
HTML elements. It has no required attributes. Style, class, and id are
the commonly used attributes.

Q41-What is Inline element?


Inline Elements: An inline element is the opposite of the block-level
element. It does not start on a new line and takes up only the necessary
width ie., it only occupies the space bounded by the tags defining the
HTML element, instead of breaking the flow of the content.

 HTML <br> Tag


 HTML <button> Tag
 HTML <time> Tag
 HTML <tt> Tag
 HTML <var> Tag
 HTML <a> Tag
 HTML <abbr> Tag
 HTML <acronym> Tag
 HTML <b> Tag
 HTML <cite> Tag
 HTML <code> Tag
 HTML <dfn> Tag
 HTML <em> Tag
 HTML <i> Tag
 HTML <output> Tag
 HTML <q> Tag
 HTML <samp> Tag
 HTML <script> Tag
 HTML <select> Tag
 HTML <small> Tag
 HTML <span> Tag
 HTML <strong> Tag
 HTML <sub> Tag
 HTML <sup> Tag
 HTML <text area> tag
 HTML <bdo> Tag
 HTML <big> Tag
 HTML <img> Tag
 HTML <input> Tag
 HTML <kbd> Tag
 HTML <label> Tag
 HTML <map> Tag
 HTML <Object> tag

Examples of Inline elements:


 <a>: This tag is used for including hyperlinks in the webpage.
 <br>: This tag is used for mentioning line breaks in the webpage
wherever needed.
 <script> : This tag is used for including external and internal
JavaScript codes.
 <input>: This tag is used for taking input from the users and is
mainly used in forms.
 <img>: This tag is used for including different images in the
webpage to add beauty to the webpage.
 <span>: This is an inline container that takes necessary space
only.
 <b>: This tag is used in places where bold text is needed.
 <label>: The tag in HTML is used to provide a usability
improvement for mouse users i.e., if a user clicks on the text within
the <label> element, it toggles the control.

Q43-What is HTML?
HTML stands for Hypertext Markup Language. It is used to design web
pages using a markup language. It is a combination of Hypertext and
Markup language. HTML uses predefined tags and elements that tell
the browser how to properly display the content on the screen.

Q44-What is HTML Form?


Form is a container that contains input elements, like text, email,
number, radio buttons, checkboxes, submit buttons, etc. Forms are
generally used when you want to collect data from the user. For
example, a user wants to buy a bag online, so he/she has to first enter
their shipping address in the address form and then add their payment
detail in the payment form to place an order. Forms are created by
placing input fields within paragraphs, preformatted text, lists and
tables.

These are the following HTML <form> elements.

 <label>: It defines label for <form> elements.


 <input>: It is used to get input data from the form in various type such as text, password,
email, etc by changing it's type.
 <button>: It defines a clickable button to control other elements or execute a
functionality.
 <select>: It is used to create a drop-down list.
 <text area>: It is used to get input long text content.
 <field set>: It is used to draws a box around other form elements and group the related
data.
 <legend>: It defines caption for field set elements.
 <data list>: It is used to specify pre-defined list options for input controls.
 <output>: It display the output of performed calculations.
 <option>: It is used to define option in drop-down list.
 <opt group>: It used to defines group related options in a drop down list.

Q45-How to create Radio Button HTML Form?


To create a radio button, we use the <input> tag following by radio
type to provide users to choose a limited number of choices.

Note: The value attribute defines the unique value associated with
each radio button. The value is not shown to the user, but is the value
that is sent to the server on "submit" to identify which radio button
that was selected.

Q46- How to Add Checkbox in an HTML Form?

To create a checkbox in an HTML form, we use the <input> tag


following by the input type checkbox. It is a square box to ticked to
activate this. It used to choose more options at a time.

Q47- How to Add Combo box in an HTML Form?

Combo box is used to create a drop-down menu in your form which


contains multiple options. So, to create an Combo box in an HTML
form, we use the <select> tag with <option> tag. It is also known as a
drop-down menu.

Q48- How to Add Submit button in an HTML Form?

In the HTML form, submit button is used to submit the details of the
form to the form handler. A form handler is a file on the server with a
script that is used to process input data.

Q49- How to Add Text Area in an HTML Form?

In the HTML form, a text area is used to add comments or reviews, or addresses
in the form. Or in other words, the text area is a multi-line text input control. It
contains an unlimited number of characters, and the text renders in a fixed-width
font and the size of the text area is given by the <rows> and <cols> attributes.
To create a text area in the form use the <text area> tag.

Q50- What is used of iframe?


The Iframe tag specifies an inline frame An inline farm used to embed
document video ,interactive media within a page Attributes value: It
contains a single value URL that specifies the URL of the document that
is embedded in the iframe. There are two types of URL links which are
listed below:

 Absolute URL: It points to another webpage.


 Relative URL: It points to other files of the same web page.

Q50- What is used of field set?

The <field set> tag in HTML5 is used to make a group of related


elements in the form, and it creates the box over the elements. The <field
set> tag is new in HTML5.

The <legend> tag is used to define the title for the child’s contents. The legend
elements are the parent element. This tag is used to define the caption for the
<fieldset> element.

Q50- What is used of legend?

The legend tag is used to define the title for the child contents. The
legend elements are the parent element. This tag is used to define the
caption for the <fieldset> element.

Q51- What is pre tag?

The pre tag used to define the block of formatted text, which preserve the
text space, line breck tab and other character which are ignore by web
browser .Text in the <pre> element is displayed in the fixed width
font ,but it can be change using Css.pre tag require a starting and end tag
..

Q52-What is span tag used?

The HTML span element is generic inline container for inline element and
content .it is used to group element for styling purpose . span is always
start with open tag and Closing tag.

Span is very similar to the div tag but div is block level tag and Span is
Inline Tag….
Q53-What is Different between GET and POST?

Both GET and POST Method is used data transfer from client to server in
HTTP Protocol BUT Main different between GET and POST Method is that
get carries request parameter appended in url string While post carries
request parameter in massage body which makes it more secure way of
transferring data from client to server.in case of get request only limited
amount of data can be sent because data is sent in header .in case of post
request large amount of data can be send because data is send in body .

Q53-What is advantage of using forms?

The Advantage of using frames that allows multiple document to be viewed with
the single web page Easier navigation and static navigation can be kept visible
on the website at all time ..

Q54- What is understand by marquee tag?

The marquee tag is used non -standard HTML element Which is used to Scroll a
Image or text Horizontally or vertically.

Q55-What is Different between inline vs block level


element?

Inline element Occupy only enough width that is sufficient to it and allow other
element next to it which are inline .. Inline element don’t start from a new line
and don’t have top bottom and margins as block element have <a> ,<br> ,
<script > <input> ,<img> , <span> , <b>….

Block level element …. They consume a entire width available irrespective of


third suffice .they always start in anew line and have top and margins .it does not
contains any other element ..

<h1 to h2 > , <div> , <li> < ul> <ol> ,<table>

Q56—What is difference between Display none and


visibility: hidden?

Visibility: hidden hide the element, but it skill take up space in the lay out ,
display :none removes the element from the document it does not take up any
space ..

Q57- What is different between cellpadding and cell


spacing?

Space Cellpadding basically define the space present between a table cells
border and the content present in it.
Cell spacing basically define the space present between individual adjacent cell ..

The default cell padding value =1 Where the Default Cell spacing Value is 2

You might also like