0% found this document useful (0 votes)
994 views

Write HTML Code To Get The Following Output

1. The document contains 20 multiple choice questions about HTML tags, elements, and concepts. The questions cover topics like the differences between static and dynamic websites, using appropriate heading tags (<h1>-<h6>) to change font sizes, inserting comments, internal vs external linking, using CSS to style elements, and basic HTML terminology. 2. Each question is followed by 4 answer choices in a multiple choice format. The correct answers would need to be evaluated based on the HTML knowledge tested in each question. 3. The questions assess understanding of fundamental HTML structures, tags, attributes, and CSS concepts. Selecting the right multiple choice response would require knowledge of how to properly use tags, attributes, and CSS to

Uploaded by

Revati Menghani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
994 views

Write HTML Code To Get The Following Output

1. The document contains 20 multiple choice questions about HTML tags, elements, and concepts. The questions cover topics like the differences between static and dynamic websites, using appropriate heading tags (<h1>-<h6>) to change font sizes, inserting comments, internal vs external linking, using CSS to style elements, and basic HTML terminology. 2. Each question is followed by 4 answer choices in a multiple choice format. The correct answers would need to be evaluated based on the HTML knowledge tested in each question. 3. The questions assess understanding of fundamental HTML structures, tags, attributes, and CSS concepts. Selecting the right multiple choice response would require knowledge of how to properly use tags, attributes, and CSS to

Uploaded by

Revati Menghani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Write Html code to get the following output :

1)
Dynamic Websites are used over Static Websites.
A. Updates can be done very easily in Dynamic websites by easy
interactions with databases.
B. Dynamic website is faster than Static website and content gets
loaded faster.
Choose the correct justification to the statement given above:
a) Only A b) Only B
c) Both A & B d) Neither A nor B

2)
Your school has asked you to design a feedback form for your
school’s website. The following pseudocode is written:
<html>
<head><title> My page </title></Head><body>
<H1><U><A name="#Top"> FEEDBACK FORM</A></u></h1>
….Statement 1
.
.
</body>
</html>
Referring to the code given above answer the question:
In order to change the size of heading in Statement 1 which
statement will be used.
Choose as per the correct justification.
a. <h2> … </h2> for bigger size
b. <h6>..... </h6> for smaller size
c. <h6>..... </h6> for biggest size
d. <h2> … </h2> for smaller size

3)
Your school want check boxes to be included to choose between
the streams:
Science, Commerce and Arts for filling feedback form. Which of
the following code will help you get the desired output?
a. <Input type=CHECKBOX value= “Science"> <Input
type=CHECKBOX value="Commerce"> <Input type=CHECKBOX
value="Arts">
b. <Input type=CHECKBOX value="Science"> Science <Input
type=CHECKBOX value="Commerce"> Commerce <Input
type=CHECKBOX value="Arts"> Arts
c. <Input type=CHECKBOX value> Science <Input
type=CHECKBOX value> Commerce <Input type=CHECKBOX
value> Arts
d. None of the above

4)
Which code should be written to insert a comment line?
a. <!-- -->
b. <--! --!>
c. <!-- --!>
d. <!-- !>

5) Referring to the code given below:


<A href=’#Top’> Top </A>
Which type of linking does it exhibit?
a. Internal Linking
b. External Linking
c. Web Link
d. None of the above

6)
You are designing a website for City Power & Light.
You write the following markup.
1.<!DOCTYPE html>
2.<html>
3.<head>
4. <title> City Power and light </title>
5.</head>
6.<body>
7. <p>Welcome to City Power & Light </p>
8.</body>
9.</html>
What style will be used to render the code?
a) The browser default style will be used.
b) An inline style will be used.
c) An international style will be used.
d) An external style will be used.

7)
<style>...</style>
a. The tag will override rules defined in any external style sheet
file even when declared in the Inline style sheets.
b. Inline style sheets take the highest priority. So, it will override
any rule defined in the above tags or rules defined in any external
style sheet file.
c. The tag will not override rules defined in any external style
sheet file.
d. Inline style sheets have least priority.

8)

Select the answer choice that answers the question based on the
information presented in the screenshot.
Which code segment will display the form element labelled A?
a. <input type=”radio” name=”firstname”>
b. <input type=”text” name”checkbox>
c. <input type=”checkbox” name=”subscribe” value =”Yes”>
d. <input type=”text” name=”Yes”>
9)
If we want to use a nice looking green dotted border around an
image, which css property will we use?
A.border-color B.border-decoration
C.border-style D.border-line

10)
Which element is used in the <HEAD> section on an HTML/XHTML
page, if we want to use an external style sheet file to decorate the
page ?
a) <src> b) <link> c) <style> d) <css>

11)
Which CSS property is used to control the text size of an element?
a) font-style b) text-size c) font-size d) text-style

12)
HTML is what type of language ?
a. Scripting Language b) Markup Language
c) Programming Language d) Network Protocol

13)
HTML uses
a) User defined tags b) Pre-specified tags
c) Fixed tags defined by the language
d) Tags only for linking
14)
Apart from <b> tag, what other tag makes text bold ?
a) <fat> b) <strong> c) <black> d) <emp>

15)
HTML web pages can be read and rendered by _________.
a) Compiler b) Server c) Web Browser d) Interpreter

16)
Which of the following is not a browser ?
a) Microsoft Bing b) Netscape Navigator
c) Mozilla Firefox d) Opera

17)
Which HTML tag produces the biggest heading?
a) <h6> b) <h9> c) <h4> d) <h1>

18)
Tags and texts that are not directly displayed on the page are
written in _____ section.
a) <head> b) <title> c) <body> d) <html>

19)
A page designed in HTML is called _____
a) Application b) Cover page c) Front-end d) Web Page
20)
An HTML document is saved with the ____ extension.
a) .htl b) .html c) .hml d) .htnl

You might also like