HTML Interview Question and Answer:
Number 1: What are some examples of lists that are used in design in web pages?
There are three types that are used in design in web pages
- Order list or Number list: <ol></ol> tag used to create order list
- Unorder list or Bullter list: <ul></ul> tag used to create unorder list
- HTML Description list or Definition list: <dl></dl> tag used to create definition list.
- <dl>: To start the list.
- <dd>: Define a terms
- <dt>: Define a term description.
Semantic tag is very important to tag. Semantic tags are used in web pages to render the correct meaning of information. Semantic tag is SEO-friendly because it's easy to understand both humans and machines.
so, we should use semantic tag instead of <d> div tag. take a look below