Answer: Contex api use for share data globaly. Contex api helps to share data without props. It can share data without pros drilling.
Answer: Semantics tags are meaningfull tags. A semantic element clearly describes its meaning to both the browser and the developer.
Some Sematics tag:
Answer:
Block | Inline | Inline block |
---|---|---|
Block element supports all kind of styles | Inline doesn’t support height width, only support margin left, right. | Inline Block supports margin, height, width. |
Block element always start on a new line. | An inline element does not start on a new line. | Inline block looks like block element but it also does not start on a new line. |