21. What is external style sheet? How can we link it?
Ans:External style sheet is a template/document/file which contains style and appearance information which can be used to link the HTML document and a large number of HTML documents can be linked using external style sheets. The file document can be linked using the LINK tag under the HEAD element. Files containing style information should have a suitable extension. For example, style.css. The proper syntax for linking the file using external style sheet is <head><link rel =stylesheet href=”style.css” type=”text/css”></head>
22.How do I make a webpage that someone can simply just send me a mail by just clicking on text with subject?
Ans:
We can apply this by using mailto command in an AHREF link tag given below:
< A href mailto:[email protected]?subject=enquiry””> click here to mail ABC</a>
23.How to align pictures so that they are one above the other?
Ans: By using the align statement in the IMG SRC tag.
<img src=”abdc.gif” align=top>. Align can also be modified as align=top, align=middle, align=centre etc.
24.What are the possible values for “position”?
Ans: The type of positioning used for the webpages can be determined by using “position” element. These include static, relative, fixed, inherit and absolute.
25.What are the different JavaScript types?
Ans: There are six types of JavaScript: Object, null, string, undefined, Boolean and number. Objects include functions, array and ordinary objects. Numbers may include integers and real1 numbers, and also include special values such as NaN and infinity. Strings include empty strings, ““,
26.What is called as negative infinity in JavaScript?
Ans:
It is a number in JavaScript which is formed by dividing a negative number by zero. The number will return undefined, if used by negative infinity. Example: number.negative_infinity.
27.What does the NaN function do?
Ans: Return ‘true’ if the argument is not a number.
28.What does “1”+2+4 return?
Ans: Since the question contains strings and + sign is usually used for catenation, the answer returned will be 124.
29.How do you convert numbers between different bases in JavaScript?
Ans: Usually to convert the number in their different bases use the parseInt() function. This function parses a string and returns a function. The first parameter is the number and the second parameter is the base to be changed. For example: to covert a hexadecimal number to a decimal number we use this function as (“3F”, 16).
30.What is a prompt box?
Ans: A prompt box is a pop up box that allows the user to enter the required inputs. This is done by providing a text box. The prompt box can also have the OK and the cancel button to proceed with the input entered so as to execute the action.