Thursday, 29 August 2013

Very Important Question with Answer for web designer jobs


Wht is a CSS File and  Why we use it ?
CSS stands for "Cascading Style Sheets",and Its  used to control and manage font styles, font sizes, and web site color combinations.we can Change(font color, font style. size and web page layout color ) multiple web page format once through css file, Its save our time,Suppose you want all your H2 tags to appear in bold, then what you do, then we will use css file
example : 
<style type="text/css">
h2{ font-weight:bold;}
</style> 

How do I use a image as a background on my web pages?
< body background="imagename.jpg" >


How do I align pictures so that one may be higher or lower than the other?

we Use the align statement in our IMG SRC tag as shown below.
< IMG SRC="img1.jpg" align=top >
< IMG SRC="img2.jpg" align=bottom >

note:- img src align properties are  align=top , align=middle, and align=bottom. .

Is CSS case sensitive?
Cascading Style Sheets (CSS) is not case sensitive. However, font families, URLs to images, and other direct references

with the style sheet may be. The trick is that if you write a document using an XML declaration and an XHTML doctype,

then the CSS class names will be case sensitive for some browsers. It is a good idea to avoid naming classes where the

only difference is the case, for example: div.myclass { ...} div.myClass { ... } If the DOCTYPE or XML declaration is

ever removed from your pages, even by mistake, the last instance of the style will be used, regardless of case.



What are the five possible values for “position” ?

Values for position: absolute, relative, absolute, fixed, inherit



How do you convert numbers between different bases in JavaScript?

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);


What does "1"+2+4 evaluate to?

Since 1 is a string, everything is a string, so the result is 124.



What is the difference between  confirmation box  and a alert box?

 confirmation box:- he Confirm box displays two buttons namely OK and

cancel.   

alert box:- An alert box displays only one button which is the OK



2) Tables can be nested (table inside of another table).
a) True - correct answer
b) False


3) Which of the following is a two sided tag?
a) DT
b) LI
c) DD
d) DL - correct answer


4) _______are the HTML codes that control the apearance of the document contents
a) Tags - correct answer
b) Codas
c) Slashes
d) Properties
e) Code


5) To create a link to an anchor, you use the______property in A tag.
a) Name
b) Tag
c) Link
d) Href - correct answer


06) HTML Tags are case sensitive.
a) True
b) False – correct answer



07) Relative path make your hypertext links______.
a) Portable - correct answer
b) Discrete
c) Uniform



08) Which of the following path is supported by HTML?
a) Ralative
b) Defererenced
c) Absolute and Relative - correct answer


09) You cannot designate an inline image as a hypertext link.
a) True
b) False - correct answer


10) You can combine structures e.g, linear and hierarchical.
a) True - correct answer
b) False


11) What is HTML stands for?
a) Hypertext Mailing List
b) Hypertext Mark Language
c) Hypertext Markup Language - correct answer



12) What is the most widely use e-mail form script?
a) ASP
b) PHP – correct answer
c) Perl CGI
d) JSP



13) There are_____color names recognized by all version of HTML.
a) 6
b) 8
c) 256
d) 16 - correct answer