Tech

Web Designing Interview Questions and Answers for Experienced and Fresher

The purpose of creating this post web designing interview questions and answers  is not helping you find the new job instead my main intention to create this post is to aware you some latest web designing interview questions and answers. So that, you can update yourself with latest trends and can learn new things which happening in market.

If you are reading this post get double benefit first will update yourself with latest trends and second it helps you to get the right job which you deserve. I have included web designing interview questions and answers for both experienced web designer and fresher web designer so that both the web designer can get benefit from it.

List of Advanced & Basic Web Designing Interview Questions and Answers

web designing interview questions and answersBefore you proceed to these questions and answers please bookmark this page may be you don’t have enough time right now as there are so many questions which need time to understand so that you can keep it in mind for long time or ever bookmark it to your computer.

Q.1. Tell me something about yourself?
Ans. Most common asked questions by almost every company it is just to check your confidence level, communication skills and test your experience in particular area. So be prepared yourself you can start with by telling your name, family background, educational background and word experience (if you have any).

Q.2. Wht is a CSS File? It is used for what purpose
Ans. CSS mainly stands for “Cascading Style Sheets”.  CSS help to control and manage font sizes, font styles and website colour combinations that are used in a web page. CSS files make global appearance changes easy a single change in CSS file will mean that any pages using that CSS file will automatically display the changes.

Q. 3. Is CSS case sensitive?
Ans. CSS is not case sensitive.

Q.4. What is external Style Sheet and How to link it?
Ans. External Style Sheet is a template/document/file containing style information which can be linked with any number of HTML documents. The file is linked with HTML documents via the LINK element inside the HEAD element. Files containing style information must have extension .css, e.g. style.css. < HEAD > < LINK REL=STYLESHEET HREF=”style.css” TYPE=”text/css”> < / HEAD>

Q.5. How do I make it so that someone can mail me by just clicking on text with subject?
Ans. It’s very easy we can do it by using mailto command in AHREF link tag example give below:

< A HREF=”mailto:kapil@speakingtechnically.com?Subject=Enquiry” “>Click here to mail Speaking Technically< / A> .

Q.6. How do I align pictures so that one may be higher or lower than the other?
Ans. By using align statement in your IMG SRG tag
< IMG SRC=”http://www.speakingtechnically.com/chguy.gif” align=top > Also, instead of align=top you can do align=middle, and align=bottom. .

Q.7. What are the five possible values for “position”?
Ans. static, relative, absolute, fixed, inherit.

Q.8. What are JavaScript types?
Ans. Number, String, Boolean, Function, Object, Null, Undefined.

Q.9. What is negative infinity?
Ans. It’s a number in JavaScript, derived by dividing negative number by zero.

Q.10. What does isNaN function do?
Ans. Return true if the argument is not a number.

Q.11. What does “1”+2+4 evaluate to?
Ans. Since 1 is a string, everything is a string, so the result is 124.

Q.12. How do you convert numbers between different bases in JavaScript?
Ans. Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal 3F to decimal, use parseInt (“3F”, 16);

Q.13. What is a prompt box?
Ans. A prompt box allows the user to enter input by providing a text box.

Q.14. What is the difference between an alert box and a confirmation box?
Ans. An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel.

Q.15. How Can you organize layers as in Photoshop?
Ans. For example you create a Ball in 1st layer and then in second layer you create the background. But you should lock all the layers and unlock the layer which u r working, because unlocked layers will be active always(active means, if u want to drag the ball, background layers also will be affected)

Q.16. What is work Area in Photoshop?
Ans. The work area in Photoshop has the following basic functionality and features: ? Menu Bar ? this is where you can access most of the commands and features in Photoshop ? Drawing Palette ? where the image being worked on will appear ? Options bar ? content sensitive display of tool options ? Changes as different tools are selected ? display using Window > Options or Click a tool in the toolbox. Lasso options bar ? Tool box – for creating an editing images (display or hide using Windows > Tools)? Palettes – to monitor and modify images (there are 5 palettes by default) ? Palette Well – to organize palettes in work area ? Drag a palette? tab into the palette well to store it in the palette well ? Once in the palette well click on the palette tab to use it.

Q.17. What is the difference between HTML and HTML5 ?
Ans. Don’t be confuse HTML5 is the latest version of HTML which includes few new features like as Video, Audio/mp3, date select function , placeholder , Canvas, 2D/3D Graphics, Local SQL Database added so that no need to do external plugin like Flash player or other library.

Q.18. What is the <!DOCTYPE> ? Is it necessary to use in HTML5?
Ans. The <!DOCTYPE> is an instruction to the web browser about what version of HTML the page is written in. AND The <!DOCTYPE> tag does not have an end tag and It is not case sensitive.

The <!DOCTYPE> declaration must be the very first thing in HTML5 document, before the <html> tag. As In HTML 4.01, all <! DOCTYPE > declarations require a reference to a Document Type Definition (DTD), because HTML 4.01 was based on Standard Generalized Markup Language (SGML). WHERE AS HTML5 is not based on SGML, and therefore does not require a reference to a Document Type Definition (DTD).

Q.19. How many New Markup Elements you know in HTML5
Ans. Below are the New Markup Elements added in HTML5

Tag                    Description
<article>:   Specifies independent, self-contained content, could be a news-article, blog post, forum post, or other articles which can be distributed independently from the rest of the site.
<aside>:    For content aside from the content it is placed in. The aside content should be related to the surrounding content
<bdi>:       For text that should not be bound to the text-direction of its parent elements
<command>:  A button, or a radiobutton, or a checkbox
<details>:  For describing details about a document, or parts of a document
<summary>:  A caption, or summary, inside the details element
<figure>: For grouping a section of stand-alone content, could be a video
<figcaption>: The caption of the figure section
<footer>: For a footer of a document or section, could include the name of the author, the date of the document, contact information, or copyright information
<header>: For an introduction of a document or section, could include navigation
<hgroup>: For a section of headings, using <h1> to <h6>, where the largest is the main heading of the section, and the others are sub-headings
<mark>: For text that should be highlighted
<meter>: For a measurement, used only if the maximum and minimum values are known
<nav>: For a section of navigation
<progress>: The state of a work in progress
<ruby>: For ruby annotation (Chinese notes or characters)
<rt>: For explanation of the ruby annotation
<rp>: What to show browsers that do not support the ruby element
<section>: For a section in a document. Such as chapters, headers, footers, or any other sections of the document
<time>: For defining a time or a date, or both
<wbr>: Word break. For defining a line-break opportunity.

Q.20. What are the New Media Elements in HTML5? is canvas element used in HTML5
Ans. Below are the New Media Elements have added in HTML5

Tag         Description

<audio>               For multimedia content, sounds, music or other audio streams
<video>               For video content, such as a movie clip or other video streams
<source>             For media resources for media elements, defined inside video or audio elements
<embed>            For embedded content, such as a plug-in
<track>               For text tracks used in media players
<canvas>           Yes we can use Canvas element in html5 like below

Q.21. How to add video and audio in HTML5
Ans. Like below we can add video in html5
<video width=”320″ height=”240″ controls=”controls”>
<source src=”pcds.mp4″ type=”video/mp4″ />
<source src=”pcds.ogg” type=”video/ogg” />
</video>

And audio like this
<audio controls=”controls”>
<source src=”song.ogg” type=”audio/ogg” />
<source src=”song.mp3″ type=”audio/mpeg” />
</audio>

Q.22. Do you know New Input Type Attribute in HTML5
Ans. Yes we can use below new input type Attribute in HTML5

Type      Value
tel          The input is of type telephone number
search   The input field is a search field
url          a URL
email    One or more email addresses
datetime             A date and/or time
date       A date
month A month
week     A week
time      The input value is of type time
datetime-local A local date/time
number                A number
range    A number in a given range
color      A hexadecimal color, like #82345c
placeholder       Specifies a short hint that describes the expected value of an input field

Q.23. What is the use of localStorage in HTML5?
Before HTML5 LocalStores was done with cookies. Cookies are not very good for large amounts of data, because they are passed on by every request to the server, so it was very slow and in-effective.

In HTML5, the data is NOT passed on by every server request, but used ONLY when asked for. It is possible to store large amounts of data without affecting the website’s performance.and The data is stored in different areas for different websites, and a website can only access data stored by itself.

And for creating localstores just need to call localStorage object like below we are storing name and address
<script type=”text/javascript”>
localStorage.name=”PCDS”;
document.write(localStorage.name);
</script>
<script type=”text/javascript”>
localStorage.address=”Mumbai India..”;
document.write(localStorage.address);
</script>

Q.24. What the use of Canvas Element in HTML5
Ans. The canvas element is used to draw graphics images on a web page by using javascript like below
<canvas id=”pcdsCanvas” width=”500″ height=”400″></canvas> <script type=”text/javascript”>
var pcdsCanvas=document.getElementById(“pcdsCanvas”);
var pcdsText=pcdsCanvas.getContext(“2d”);
pcdsText.fillStyle=”#82345c”;
pcdsText.fillRect(0,0,150,75);
</script>

Q.25. What is the session Storage Object in html5? How to create and acces ?
Ans. The session Storage object stores the data for one session. The data is deleted when the user closes the browser window. like below we can create and access a sessionStorage here we created “name” as session
<script type=”text/javascript”>
sessionStorage.name=”PCDS”;
document.write(sessionStorage.name);
</script>

Q.26. What is the difference between HTML elements and tags?
Ans. HTML elements communicate to the browser how to render text. When surrounded by angular brackets <> they form HTML tags. For the most part, tags come in pairs and surround text.

Q.27. What is “Semantic HTML?”
Ans. Semantic HTML is a coding style where the tags embody what the text is meant to convey. In Semantic HTML, tags like <b></b> for bold, and <i></i> for italic should not be used, reason being they just represent formatting, and provide no indication of meaning or structure. The semantically correct thing to do is use <strong></strong> and <em></em>. These tags will have the same bold and italic effects, while demonstrating meaning and structure (emphasis in this case).

Q.28. What does DOCTYPE mean?
Ans. The term DOCTYPE tells the browser which type of HTML is used on a webpage. In turn, the browsers use DOCTYPE to determine how to render a page. Failing to use DOCTYPE or using a wrong DOCTYPE may load your page in Quirks Mode. See example:

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>.

Q.29. What are the limitations when serving XHTML pages?
Ans. Perhaps the biggest issue is the poor browser support XHTML currently enjoys. Internet Explorer and a number of other user agents cannot parse XHTML as XML. Thus, it is not the extensible language it was promised to be. There are many other issues. Take your pick.

Q.30. What’s the difference between standards mode and quirks mode?
Ans. Quirks Mode is a default compatibility mode and may be different from browser to browser, which may result to a lack of consistency in appearance from browser to browser.

Q.31 How many HTML tags are should be used for the most simple of web pages?
Ans. 8 total. 4 pairs of tags.

<HTML>
<HEAD>
<TITLE>Simplest page ever!</TITLE>
</HEAD>
<BODY>
Doesn’t get simpler than this.
</BODY>
</HTML>

Q.32. What is the difference between linking to an image, a website, and an email address?
Ans. To link an image, use <img> tags. You need specify the image in quotes using the source attribute, src in the opening tag. For hyperlinking, the anchor tag, <a>, is used and the link is specified in the href attribute. Text to be hyperlinked should be placed between the anchor tags. Little known fact: href stands for “hypertext reference.” When linking to an email, the href specification will be “mailto:send@here.com.” See examples below:

<img src=”HTMLrocks.jpg”></img>
<a href=”www.skilledup.com”>Skilledup</a>
<a href=”brad@skilledup.com”>Email Me</a>

Q.33. My hyperlink or image is not displaying correctly, what is wrong with it?
Ans. It could be any number of things, but the most common mistakes are leaving out a tag bracket or quote missing for href, src, or alt text may be the issue. You should also verify the link itself.

Q.34. What is the syntax difference between a bulleted list and numbered list?
Ans. Bulleted lists use the <ul> tag, which stands for “unordered,” whereas <ol> is used to create an ordered list.

Q.35. What is the difference between <div> and <frame>?
Ans.  A <div> is a generic container element for grouping and styling, whereas a <frame> creates divisions within a web page and should be used within the <frameset> tag. The use of <frame> and <frameset> are no longer popular and are now being replaced with the more flexible <iframe>, which has become popular for embedding foreign elements (ie. Youtube videos) into a page.

Q.36. What is the difference between the application model of HTML and HTML5?
Ans. Trick question, there is no difference. HTML5 is a continuum of HTML and just a souped up version of the original HTML. There has been no major paradigm shift.

There are many. From a broader perspective, HTML was a simple language for laying out text and images on a webpage, whereas HTML5 can be viewed as an application development platform that does what HTML does that and more, including better support for audio, video, and interactive graphics. It has a number of new elements, supports offline data storage for applications, and has more robust exchange protocols. Thus, proprietary plug-in technologies like Adobe Flash, Microsoft Silverlight, Apache Pivot, and Sun JavaFX are no longer needed, because browsers can now process these elements without additional requirements.

Q.37. What is the new DOCTYPE?
Ans. Instead of typing out a ridiculously long DOCTYPE statement to tell the browser how to render your webpage, this long line of code has been truncated to <!doctype html>.

Q.38. What elements have disappeared?
Ans. As mentioned above, <frame> and <frameset> have been eliminated. Other elements that are no longer supported include: <noframe>, <applet>, <bigcenter> and <basefront>.

Q.39.  What are the new image elements in HTML5?
Ans. Canvas and WebGL. <Canvas> is a new element that acts as a container for graphical elements like images and graphics. Coupled with JavaScript, it supports 2D graphics. WebGL stands for Web Graphics Language, a free cross-platform API that is used for generating 3D graphics in web browsers.

Q.40. What is the difference between SVG and <Canvas>?
Ans. <Canvas> is an element that manipulates two-dimensional (2D) pixels while Scalable Vector Graphics works in 2D and three-dimensional (3D) vectors. Essentially, <Canvas> is to SVG as Photoshop is to Illustrator.

Q.41. What are data- attributes good for?
Ans. The HTML5 data- attribute is a new addition that assigns custom data to an element. It was built to store sensitive or private data that is exclusive to a page or application, for which there are no other matching attributes or elements.

Q.42. What is the difference between HTML5 interaction in Sencha and Twitter/Bootstrap?
Ans. Sencha and Twitter/Bootstrap are both HTML development frameworks that integrate HTML5, CSS3, and JavaScript. The major difference is that in Sencha, the three languages are all comingled together in code, whereas in Bootstrap, HTML and CSS and decoupled.

Q.43. What purpose do Work Workers serve and what are some of their benefits?
Ans. Web Workers are background scripts that do not interfere with the user interface or user interactions on a webpage, allowing HTML to render uninterrupted while JavaScript works in the background.

Q.44. What are some of the major new API’s that come standard with HTML5?
Ans. To name a few: Media API, Text Track API, Application Cache API, User Interaction, Data Transfer API, Command API, Constraint Validation API, and the History API.

Q.45. What is the difference in caching between HTML5 and the old HTML?
Ans. An important feature of HTML5 is the Application Cache. It creates an offline version of a web application. and stores website files such as HTML files, CSS, images, and JavaScript, locally. It is a feature that speeds up site performance.

Q.46. Describe the difference between cookies, sessionStorage, and localStorage.
Ans. Cookies are small text files that websites place in a browser for tracking or login purposes. Meanwhile, localStorage and sessionStorage are new objects, both of which are storage specifications but vary in scope and duration. Of the two, localStorage is permanent and website-specific whereas sessionStorage only lasts as long as the duration of the longest open tab.

Q.47. What is WebSQL?
Ans. WebSQL is a structured relational database at the client browser side. It’s a local RDBMS inside the browser on which you can fire SQL queries.

Q.48. Is WebSQL a part of HTML 5 specification?
Ans. No, many people label it as HTML 5 but it’s not part of HTML 5 specification. The specification is based around SQLite.

I know this is not enough and I will update my list with the passage of time if any of you guys share questions with me I will try to find the answer or any of you have any suggestion please do not forget to share it below in comment section.