0% found this document useful (0 votes)
8 views1 page

HTML Basics: Tags and Usage Guide

The document provides a series of questions and answers related to HTML elements and their usage. Key topics include the purpose of the <div> tag, creating hyperlinks, and structuring lists and tables. It also covers attributes for iframes and links, as well as the functionality of nested lists and table headers.

Uploaded by

redha.sabt13
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

HTML Basics: Tags and Usage Guide

The document provides a series of questions and answers related to HTML elements and their usage. Key topics include the purpose of the <div> tag, creating hyperlinks, and structuring lists and tables. It also covers attributes for iframes and links, as well as the functionality of nested lists and table headers.

Uploaded by

redha.sabt13
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

HTML –Extra Practice

1) What is the purpose of a <div> tag?


Answer: To group or structure content.
2) How do you add a hyperlink to text?
Answer: <a href="url">text</a>.
3) What is the difference between <ul> and <ol>?
Answer: <ul> is for bullets, <ol> is for numbers.
4) How do you make a nested list?
Answer: Add a list inside another list.
5) What is an inline frame?
Answer: A webpage inside another webpage.
6) How do you set iframe height and width?
Answer: Using the height and width attributes.
7) What tag is used to create a table heading?
Answer: <th>.
8) What tag groups rows together?
Answer: <tbody>.
9) Can we put images inside table cells?
Answer: Yes.
10) How do you add a border to a table?
Answer: Use the border attribute.
11) What is a hyperlink?
Answer: A clickable link to another page.
12) What is the default type of list for <ul>?
Answer: Bulleted list.
13) How can you center a table?
Answer: Use CSS or the <center> tag.
14) What happens if href is empty?
Answer: The link does nothing.
15) What is the use of target in a link?
Answer: Controls where to open the page.
16) Can a <div> contain other <div>s?
Answer: Yes.
17) Why do we use tables?
Answer: To display data neatly.
18) Can an <iframe> show a YouTube video?
Answer: Yes.
19) What is the tag for a table header row?
Answer: <thead>.
20) What tag ends a table?
Answer: </table>.

You might also like