Questions

2 Marks Quetions

🎯

Test yourself on this topic

21 questions · timed · auto-graded

Question 12 Marks
Write the HTML code to generate the web page as shown below having lists in the given style:
Career Options
• Medical
1. Medicine$\quad$2. Research
• Engineering$\quad$ • Marketing
View full question & answer
Question 32 Marks
Where can a comment be placed in an HTML document? How is it useful?###How do you give a comment in HTML?###Why are comments included in HTML document? With the help of an example, explain how they are included in HTML code?###How are comments inserted in HTML code? Explain with an example.
Answer
Comments are inserted in HTML code with the help of $<$!-....-$>$ tag. To insert the text as comment, type the text between $<$!-and-$>$ tag, then that text will be ignored by the browser and will be invisible for the user.
e.g.
$<$HTML$>$$<$BODY$>$
$<$!--This is a comment.--$>$
This is a book
$<$/BODY$>$$<$HTML$>$
View full question & answer
Question 42 Marks
List any two types of alignment that can be applied to a paragraph in HTML.
Answer
Any two types of alignment that can be applied to a paragraph are as follows:
Left alignment: This type of alignment aligns text to left. This is the default alignment.
Syntax
$<$P align="left"$>$$<$/P$>$
Right alignment: This type of alignment aligns text to right within the paragraph.
Syntax
$<$P align="right"$>$$<$/P$>$
(Note: Answer may vary)
View full question & answer
Question 52 Marks
Identify error(s) in the following HTML code. Also, write the correct code.
$<$OL$>$ type="a" start="d">
Answer
$<$OL$>$ tag's attributes should be placed in between $<$and$>$. In $<$OL$>$ list, the start attribute must be set to a numeric value and type attribute specifies the type of list a user wants. So, the correct code is:
$<$OL type="a" start="4"$>$
View full question & answer
Question 62 Marks
Write HTML tags as directed:
a. Use the FONT tag to display "This text is in Red color." In Red color.
b. Change the given text to bold and italics "This text is in bold and italics".
Answer
self
View full question & answer
Question 82 Marks
Write an HTML code to display the following output: 
• Name:$\quad$ • Roll no:$\quad$ • Class:$\quad$ • School:
Answer
self
View full question & answer
Question 122 Marks
The result of a quiz contest is to be declared on a website "rank"-wise, to know who came first and who came second, etc. What form of list should be used?
Answer
self
View full question & answer
Question 132 Marks
Sandhya has created a web page that displays any five food items. She wants to make a list of items. Suggest to her the tag that she should use to accomplish the task.
Answer
self
View full question & answer
Question 142 Marks
Palvi has created a website for her school. She wants to add color to text and page. Which tag and attribute are used to accomplish her task?
Answer
self
View full question & answer
Question 192 Marks
Chinky has created an HTML page by including three paragraphs. She wants to draw a horizontal line between any two consecutive paragraphs. Suggest to her the tag that she should use to accomplish the task.
Answer
self
View full question & answer
Question 212 Marks
A website on the topic "Basics of HTML" is to be set up. Which tag should be used to give heading and title to the web page?
Answer
self
View full question & answer