You are on page 1of 5

Contact www.solvedcare.

com for best and lowest cost solution or email solvedcare


@gmail.com
Web Designing V1
Section A
Ques 1. Write and Explain important attributes for the following tags
1. <body>
2. <form>
3. <textarea>
4. <iframe>
5. <applet>
Ques 2 Explain in detail
1. Different Style Sheets
2. Different tags and attributes to create HTML table
3. Image Maps
Ques 3 Write Codes
1. Write a program to create an image map with all the three shapes
2. Write a program to open the link in first frame in another frame
Ques 4. What is the use of CSS in XML document? How will you create CSS for
a particular XML file?
Ques 5. Give the output of the following code segment:
<BODY>
<SCRIPT LANGUAGE="JavaScript">
var sum = new Array(6);
var Total = 0;
sum[0] = 0;
for(var icount = 1; icount < 4; icount++)
{
Total += icount; sum[icount] = Total;
document.write(sum[icount]+"<br>")
}
document.write(Total)
</SCRIPT>
<BODY>
Section B
Ques1
Following is the HTML code for the above web page .
<HTML>
<BODY>
<H1>Enter the details</H1>
<FORM NAME="frm1">
Enter your nationality:
<INPUT TYPE="Text" NAME="txtNat" SIZE="20"><BR><BR>
Enter your age:
<INPUT TYPE="Text" NAME="txtAge" SIZE="2">
<BR><BR>
<INPUT TYPE="Button" NAME="BSubmit" VALUE="Send details">
</FORM>
</BODY>
</HTML>
Write the JavaScript code to be embedded in the above HTML code for the click
event of the button which will display the alert message Eligible for Voting if
the following validations are true:
The age should be numeric and should be > 18
The nationality should be Indian
The alert message Not eligible to vote should be displayed if any of the above
mentioned validations are false.
2.What is cascade?

3.What is cascading order?


4.What are inline, block, parent, children, replaced and floating elements?
5.How does inheritance work?
6.Are Style Sheets case sensitive?
7.Which characters can CSS-names contain?
Section C
1. What does HTML stand for?
Hyperlinks and Text Markup Language
Home Tool Markup Language
Hyper Text Markup Language
2. Who is making the Web standards?
The World Wide Web Consortium
Microsoft
Mozilla
3. Choose the correct HTML tag for the largest heading
<h6>
<h1>
<head>
<heading>
4. What is the correct HTML tag for inserting a line break?
<br />
<break />
<lb />
4. What is the correct HTML tag for inserting a line break?
<br />
<break />
<lb />
5. What is the correct HTML for adding a background color?
<body style="background-color:yellow">
<background>yellow</background>
<body background="yellow">
6. Choose the correct HTML tag to make a text bold
<b>
<bold>
7. Choose the correct HTML tag to make a text italic
<italic>
<i>
8. What is the correct HTML for creating a hyperlink?
<a href="http://www.w3schools.com">W3Schools</a>
<a url="http://www.w3schools.com">W3Schools.com</a>
<a name="http://www.w3schools.com">W3Schools.com</a>
<a>http://www.w3schools.com</a>
9. How can you create an e-mail link?
Cascading Style Sheets
Creative Style Sheets
<a href="mailto:xxx@yyy">
<a href="xxx@yyy">
<mail href="xxx@yyy">
<mail>xxx@yyy</mail>
10. How can you open a link in a new browser window?
<a href="url" target="new">
<a href="url" target="_blank">
<a href="url" new>
11. What does CSS stand for?
Colorful Style Sheets
Computer Style Sheets
<script>
12. What is the correct HTML for referring to an external style sheet?
<link rel="stylesheet" type="text/css" href="mystyle.css">
<style src="mystyle.css">

<stylesheet>mystyle.css</stylesheet>
13. Where in an HTML document is the correct place to refer to an external
style sheet?
At the end of the document
At the top of the document
In the <head> section
In the <body> section
14. Which HTML tag is used to define an internal style sheet?
<style>
<css>
// this is a comment
/* this is a comment */
15. Which HTML attribute is used to define inline styles?
style
class
font
styles
16. Which is the correct CSS syntax?
{body:color=black(body}
body {color: black}
body:color=black
{body;color:black}
17. How do you insert a comment in a CSS file?
color:
// this is a comment //
' this is a comment
18. Which property is used to change the background color?
bgcolor:
color:
background-color:
19. How do you add a background color for all <h1> elements?
h1 {background-color:#FFFFFF}
all.h1 {background-color:#FFFFFF}
h1.all {background-color:#FFFFFF}
20. How do you change the text color of an element?
text-color=
text-color:
fgcolor:
21. Inside which HTML element do we put the JavaScript?
<scripting>
<script>
<javascript>
<js
22. What is the correct JavaScript syntax to write "Hello World"?
document.write("Hello World")
response.write("Hello World")
("Hello World")
"Hello World"
23. Where is the correct place to insert a JavaScript?
The <body> section
The <head> section
msgBox("Hello World")
Both the <head> section and the <body> section are correct
24. What is the correct syntax for referring to an external script called
"xxx.js"?
<script type="text/javascript" name="xxx.js">
<script type="text/javascript" href="xxx.js">
<script type="text/javascript" src="xxx.js">
25. The external JavaScript file must contain the <script> tag
True

False
26. How do you write "Hello World" in an alert box?
alert("Hello World")
alertBox("Hello World")
alertBox="Hello World"
if i==5 then
27. How do you create a function?
function=myFunction()
function myFunction()
function:myFunction()
28. How do you call a function named "myFunction"?
myFunction()
call function myFunction
call myFunction()
29. How do you write a conditional statement for executing some code if
"i" is equal to 5?
if i=5 then
if (i==5)
if i=5
XML uses XSL to describe data
30. How do you write a conditional statement for executing some code if
"i" is NOT equal to 5?
if =! 5 then
if (i <> 5)
if <>5
if (i != 5)
31. What does XML stand for?
eXtra Modern Link
eXtensible Markup Language
X-Markup Language
Example Markup Language
32. There is a way of describing XML data, how?
XML uses a DTD to describe the data
Dynamic Type Definition
XML uses a description node to describe data
33. XML's goal is to replace HTML
True
False
34. What is the correct syntax of the declaration which defines the XML
version?
<?xml version="1.0" />
<?xml version="1.0"?>
<xml version="1.0" />
35. What does DTD stand for?
Do The Dance
Direct Type Definition
Document Type Definition
36. Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
Yes
No
37. Is this a "well formed" XML document?
<?xml version="1.0"?>
<to>Tove</to>

<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
Yes
No
38. Which statement is true?
All XML elements must be lower case
All XML elements must be properly closed
All XML documents must have a DTD
All the statements are true
39. Which statement is true?
All the statements are true
XML tags are case sensitive
XML documents must have a root tag
XML elements must be properly nested
40. XML preserves white spaces
False
True
Contact www.solvedcare.com for best and lowest cost solution or email solvedcare
@gmail.com

You might also like