Css (cascading Style Sheets)

CSS(Cascading Style Sheets) is used for designing web pages by describing how the HTML elements are displayed on the screen. It controls the layout of a web page. By this, we can make a website look beautiful according to our needs.

There are three methods of bringing CSS into HTML, they are -

i) Inline CSS– By using inline CSS, CSS can be applied to a single element.

ii) Internal CSS– Internal CSS is used to add a unique style to a single document. It is written in the <head> section of the HTML page inside the <style> tag.

iii) External CSS– When you need to make changes to more than one page, you often use the external style sheet. <link> tag is used on every page and the <link> tag is put inside the head section.

# SPECIFICITY IN CSS :-- Specificity is how browsers decide which CSS property values are the most relevant to an element and therefore, will be applied. Suppose the same code of CSS is written in both inline and external CSS at that time browser will prefer the inline CSS.