Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Explain Small element in HTML?

Answer»

Explain Small element in HTML?
We USE small element to REPRESENTS some of the side comments. And when we need to PRINT some small print for example to print copyright and some legal text. And by default it renders text within it one font-size smaller, such as from small to x-small.


small element
And OUTPUT of above code is:-

This is website which helps to crack your interview.
(for asp.net java sqlserver bigdata)

2.

Main difference between span and div tag in HTML?

Answer»

Main difference between span and div tag in HTML?
Below are the main difference between span and div tag in HTML
(1)div tag is a block element
(2)span tag is a inline element
Now come to some other point in both of this it is illegal to place block element in an inline element. To UNDERSTAND this we will take an example of p tag. We can place p tag in the div tag and p tag can ALSO have the span tag. ANd it is almost imposible for span tag to have div and p tag inside.
So it is quite CLEAR the content of block and inline element. Block element have the inline element but a inline element DONOT have the block element.

3.

How to Refresh a Web Page on any interval in HTML with help of Meta Tag?

Answer»

How to REFRESH a Web Page on any INTERVAL in HTML with help of Meta Tag?
Below is the code to refresh a page after EVERY 30 SECONDS through this Meta tag. We can change this 30 seconds to any values but value should be in seconds. And this meta tag is define in Head section of web page. And below is the code for the same

meta http-equiv="refresh" content="30"


Metatag refresh

4.

What do you mean by term Sanitize HTML?

Answer»

What do you mean by term SANITIZE HTML?
As we aware we use sanitizer is just use to get rid of germs and some diseases. Similarly HTML sanitization will be USED to protect against attacks LIKE cross-site scripting(XSS) by just sanitizing HTML code which is submitted by the user.
Now we just go THROGH the process of sanitization in HTML sanitization we will process and examining HTML document and produce a new HTML document which will preserves only tags that are designated "Safe" and desired.

5.

web standards are made by ___________

Answer»

web STANDARDS are made by ___________
CHOOSE the correct option from below list
(1)GOOGLE
(2)MICROSOFT
(3)The W3 Consortium
(4)Internet Explorer

Answer:-(3)The W3 Consortium

6.

Define different HTML Versions and there details

Answer»

Define different HTML Versions and there details
Answer:-Below are the six different VERSION of HTML as given below
(1)HTML 1.0:- It was the first version of HTML and had very limited usage.

(2)HTML 2.0:- It was the second release of HTML and it is released by adding some new features to its older version HTML 1.0 and this was the standard application for website development.

(3)HTML 3.0:-This version COMES to picture due to IMPROPER standards of the existing version of HTML and it is popular browser developer Netscape Navigator had some of its own tags. This is when HTML 3.0 was INTRODUCED.

(4)HTML 3.2:- This version stopped the non-standardized HTML by introducing World WIDE Web Consortium (in short W3C) to keep the language standardized.

(5)HTML 4.0:-Base of this version is to evolution as the browser support was undertaken by Microsoft in their Internet Explorer (IE).

(6)HTML 5.0:-This the current version of HTML which was introduced especially to work with any type of devices like mobile, tablets, large monitors etc.

7.

Can section elements contain article elements or vice versa Provide usage examples.

Answer»

Can section elements contain article elements or VICE versa Provide USAGE examples.
Answer for both of this is yes. < section> can contain < article> elements, and an < article> can contain

elements. To under this we TAKE a example for a personal dashboard that contain < section> for social network interactions as well as a < section> for the latest news articles and LATTER of which could contain several < article> elements. SIMILARLY < article> might contain a < section> at the end for reader comments.

8.

What does a placeholder do in HTML?

Answer»

What does a placeholder do in HTML?
Placeholder in html will HELPS you to hint text INSIDE a form FIELD.


Placeholder example

9.

Some facts about meta tags in HTML?

Answer»

Some facts about meta tags in HTML?
Below are some facts and important information about the meta tags in HTML:-
(1)Meta tags are always placed inside head tag of HTML page.
(2)Meta tags follows the name/value pairs.
(3)Meta tags are not being displayed on page but intended for browser.
(4)Meta tags CONTAIN some useful information about CHARACTER encoding, DESCRIPTION, title of document etc.

10.

which of the following attribute specifies the alternative text to be displayed when an image cannot be displayed?

Answer»

which of the following attribute specifies the alternative text to be DISPLAYED when an IMAGE cannot be displayed?
Choose the correct OPTION from below LIST
(1)Caption Attribute
(2)Alt Attribute
(3)Value Attribute
(4)text attribute

Answer:-(2)Alt Attribute
Alt attribute specifies and alternate text for an images and if images is not display then this alt text display

11.

Which protocol is ideal for transmitting large files?

Answer»

Which protocol is IDEAL for TRANSMITTING large files?
CHOOSE the correct option from below list
(1)HTTP
(2)FTP
(3)SMTP
(4)RTP

Answer:-(2)FTP

12.

Is it possible to add custom attribute to an HTML tag?

Answer»

Is it POSSIBLE to add custom attribute to an HTML TAG?
YES to do that we NEED to write below code to create a custom attribute. Below is the example and code is written below.


Download Code


Custom Attribute

Below is the output of above code


Custom Attribute Output

And clicking on any above PROGRAMMING langauge we will get below alert



Custom Attribute Alert

13.

Create Color selction Panel in HTML?

Answer» CREATE Color selction PANEL in HTML?
Below is the code to create a color selction panel and this code will WORK only in some of the browser.
Download Code

(1)Code in HTML


Color Panel Code

Output of above code


Color PanelRCB

Color PanelHSL

Color Panel

14.

How to create a number list in HTML write down the syntax?

Answer»

How to create a number list in HTML write down the SYNTAX?
Below code will HELPS you to understand about the numberlist. And the tag that is used here is < OL>. We can also set a STARTUP number as given in below code



html ol tag

And output of above code is given below:-



html ol output

Download Code

15.

How to apply Align attributes to TD of Table in HTML

Answer»

How to apply Align attributes to TD of Table in HTML
HTML td align attribute is used mainly to set the horizontal alignment of text content in td element. And we cannot use Align attributes in HTML 5.

Syntax for Align attributestd align ="left | right | center | justify | CHAR"

Attribute VALUES:-
(1)left:-It will SETS the text left align in TD tag.
(2)right:-It sets the text right align in TD tag.
(3)center:-It sets the text center align in TD tag.
(4)justify:-It stretches the text of PARAGRAPH to set the width of all lines equal.
(5)char:- It sets the text align to a specific character in TD

16.

CSS code to make horizontal line with words in the middle of line?

Answer» CSS CODE to make horizontal LINE with words in the middle of line?
CSS per below is the HTML CSS to code write some text in middle of horizontal line. We can be ACHIEVED by using simple CSS properties in below html file.
Download Code


Horizontal Line
And below is the output for above code


Horizontal Output

17.

What are the Nesting elements in HTML?

Answer»

What are the NESTING elements in HTML?
We can put elements INSIDE other elements in HTML it is called netsing. To understand this we will take a example to highlight some word in particular statements as given below.
Welcome to crackyourinterview.com.
Here in above example crackyourinterview.com is bold. And rest of data in normal so "crackyourinterview.com" is in nested elements.

And SYNTAX for Nesting elements is given below:-




Nested HTML tag

And some points you need to take CARE that elements must have open and close correctly. If you overlap as per below syntax then web browser try to make best guess. And it can lead to unexpected results.



incorrect Nested HTML

18.

Which of the following is used to create a numbered list in HTML?

Answer»

Which of the following is USED to create a numbered LIST in HTML?
Choose the correct option from below list
(1)DL
(2)list
(3)ol
(4)ul

Answer:-(3)ol

19.

Key difference between HTTP and HTTPS

Answer» KEY DIFFERENCE between HTTP and HTTPS
Below are the key difference between HTTP and HTTPS:-
20.

What is Screen Object in Javascript how it is useful?

Answer»

What is Screen Object in JAVASCRIPT how it is useful?
Screen object is a object which helps us to GET the information about the user screen. From this object we will get the information of screen like WIDTH, HEIGHT, Color Depth, Pixel Depth etc. From this information we can set the size of images and other layout of the pages. Below example will helps you to UNDERSTAND the screen objects.

Download Code


Code HTML

Html Properties

21.

What is Cell Padding and Cell spacing in HTML with example?

Answer»

What is Cell PADDING and Cell spacing in HTML with example?
FIRST Cell Spacing is the space or gap between two of consecutive cells. On the other hand Cell Padding is the space or a gap between the content of cell and it is also border of the cell or we can SAY gap between text/content of cell and the edge/border of cell. Below figure will clarify the information about both both of this.

Cell Padding Spacing

22.

Use two class attribute of internal CSS on html tag with example and uses?

Answer»

Use two CLASS attribute of internal CSS on html TAG with example and uses?
Here in below example i have used a internal CSS in html page and use two class attribute on HTML tag. Here i have used two class on SPAN tag of HTML. And in output we see that both of the class applied on the span tag in HTML. We have added two class attribute one is font-size and another is COLOUR of text as DEFINE in below code.



MultiClass Attribute

And output of above code is given below:-



MultiClass Attribute

Download Code

23.

Name three HTML tag that doesnot need an end tag?

Answer»

Name three HTML tag that doesnot NEED an end tag?
Below are the three main HTML tag that doesnot need an end tag. That are "br,HR,img".

HTML Tag

24.

How hyperlink will displaying after placing that in HTML?

Answer»

How hyperlink will displaying after placing that in HTML?
There are three ways how hyperlink is DISPLAYED after placing on html page
(1)Unvisited link:-This will be displayed as blue in colour and underlined.
(2)VISITED link:-Visited link is displayed as purple in colour and underlined.
(3)ACTIVE link:-Active Link is displayed as red in colour and it is underlined.

25.

What is template tag in HTML

Answer»

What is template tag in HTML
template tag in HTML will HOLDS the CONTENT hidden from the client. This template element holds HTML code without DISPLAYING it. And content inside the < template > tag will not be rendered. And it used when HTML code we want to use over and over again. Below image will HELP you to get syntax of template Tag


Template Tag HTML

26.

How to optimize website assets and reduce page load time?

Answer»

How to optimize website assets and reduce page load time?
Below are the 8 main optimize point for website assets which reduce page load time.
(1)NAMED for all assets should be properly defined.
(2)Must use CDN for all media FILES(Content Delivery Network).
(3)ALWAYS use CSS Sprites for images.
(4)Must disable etags.
(5)Try to minimize the use of JS in code.
(6)Hosting assets on different domains while also reducing DNS lookups
(7)Always try to use cookie free domain to place assets and splitting them among domains
(8)Always try to Minimize INLINE CSS and using internal and external style sheets.

27.

How to indicate the character set being used by a document in HTML?

Answer»

How to indicate the character SET being used by a document in HTML?
We need to DEFINE the character set in META tag INSIDE the head element. Below is the method to do that.


Charset HTML