Embedding CSS Styles

Notes:

HTML - style tag:

style tag is a paired tag.
style tag must be written in head section.
style tag is used to define styles for html elements or tags.
style tag is used to write embedded styles.
html document can have multiple style tags.
style tag contains set of style rule declaration blocks.

type attribute takes the value text/CSS. to indicate whatever we write within style tag is normal text or CSS code.

Interview Questions:

1. Which HTML tag is used to embed CSS styles in an HTML document?
a. script tag
b. style tag
c. style selector
c. none of the above
Answer: b