Questions

2 Marks Quetions

🎯

Test yourself on this topic

17 questions · timed · auto-graded

Question 12 Marks
Explain the purpose of NAME and HREF attributes.
Answer
The NAME attribute specifies the name of an anchor. It is used to create a bookmark inside a document.
Example:
$<$A NAME="Chapter 6">Chapter 6</A$>$
The HREF attribute specifies the URL of the page the link goes to.
The HREF attribute specifies the link's destination:
$<$A HREF="https://www.gmail.com"$>$$<$gmail/A$>$
View full question & answer
Question 22 Marks
Gaurav, a web designer in a company named "International Designers" has just created a webpage in which different sections of the webpage are linked and can be traversed by clicking on the text as "Top", "Middle" and "Bottom". Is it internal linking or external linking and why? Additionally, tell him about the suitable tag and its attribute(s) to open another webpage named 'second. html' by clicking on the text "Next".
Answer
Internal linking, because the links are used to traverse different sections in the same webpage. The tag and attributes to open another webpage named 'second.html' by clicking on the text "Next" is Next
View full question & answer
Question 32 Marks
Write the attributes for each tag:
a. $<$MG$>$$\quad$b. $<$TABLE$>$$\quad$C.$<$A$>$
Answer
a. The attributes of $<$IMG$>$ tag are SRC, ALT, HEIGHT and WIDTH.
b. The attributes of $<$TABLE$>$ tag are ALIGN, BGCOLOR, WIDTH, BORDER, CELLPADDING, CELLSPACING
c. The attributes of $<$A$>$tag are HREF, NAME
View full question & answer
Question 42 Marks
Identify which of the following is a tag or an attribute:
a. Border$\quad$b. IMG$\quad$c. HREF$\quad$d. ALT$\quad$e. SRC
Answer
a. Border is an attribute of the $<$TABLE$>$ tag.$\quad$
b. IMG is a tag.
c. HREF is an attribute of the$<$A$>$ tag.$\quad$d. ALT is an attribute of $<$IMG$>$ tag.
e. SRC is an attribute of the $<$IMG$>$ tag.
View full question & answer
Question 52 Marks
Write the HTML code to create a table with border of 2px in your web page.
Answer
$<$HTML$>$
$<$HEAD$>$
$<$TITLE$>$ Create a Table $<$/TITLE$>$
$<$/HEAD$>$
$<$BODY$>$
$<$TABLE BORDER = "2"$>$
$<$TR$>$
$<$TD$>$ Name$<$/TD$>$
$<$TD$>$ Age $<$/TD$>$
$<$/TR$>$
$<$TR$>$
$<$TD$>$Roll No.$<$/TD$>$
$<$TD$>$Class$<$/TD$>$
$<$/TR$>$
$<$/TABLE$>$
$<$/BODY$>$
$<$/HTML$>$
View full question & answer
Question 62 Marks
Write the HTML code to create a link for school.jpg located at c:/
Answer
$<$HTML$>$
$<$HEAD$>$
$<$TITLE$>$Create a Link $<$/TITLE$>$
$<$/HEAD$>$
$<$BODY$>$
$<$A HREF = "school.html"$>$$<$IMG SRC="c:\school.jpg"$>$$<$/A$>$
$<$/BODY$>$
$<$/HTML$>$
View full question & answer
Question 72 Marks
Name the attribute of $<$A$>$ tag which are used for internal linking in a web page.
Answer
$<$HTML$>$
$<$HEAD$>$
$<$TITLE$>$ Send an Email$<$/TITLE$>$
$<$/HEAD$>$
$<$BODY$>$
Send a mail to $<$A HREF= "MAILTO:abc0xyz.com"$>$abc0xyz.com$<$/A$>$
$<$/BODY$>$
$<$/HTML$>$
View full question & answer
Question 82 Marks
Write any two advantages of CSS.
Answer
Two advantages of CSS are listed below:
→ It completely changes the appearance of a webpage without originally changing the web page itself.
→ You can separate the formatting of HTML elements from the statements using them. This keeps the project modularized. (Note: Answer may vary)
View full question & answer
Question 92 Marks
What is the use of CSS?
Answer
CSS stands for Cascading Style Sheets. It controls the formatting of the HTML elements. It is used to specify simple to complex specification of the elements of a web page. It is used to enhance the style of the web page.
View full question & answer
Question 132 Marks
Consider the HTML code$<$A HREF = #intro$>$ Introduction $<$A$>$ In the above code,
a. What is the purpose of #?
b. What will happen when the user clicks "Introduction"?
Answer
self
View full question & answer