CSS TYPES INLINE CSS INTERNAL CSS EXTERNAL CSS

Опубликовано: 06 Октябрь 2024
на канале: Vimal Computer
148
like

CSS can be added to HTML documents in 3 ways:
• Inline - by using the style attribute inside HTML elements
• Internal - by using a style element in the head section
• Internal CSS
• An internal CSS is used to define a style for a single HTML page.
• An internal CSS is defined in the head section of an HTML page, within a style element.
• The following example sets the text color of ALL the h1 TAG elements (on that page) to blue, and the text color of ALL the p elements to red. In addition, the page will be displayed with a "blue" background color:
body {background-color: blue;}
h1 {color: blue;}
p {color: red;}

• External - by using a link element to link to an external CSS file
• External CSS
• An external style sheet is used to define the style for many HTML pages.
• To use an external style sheet, add a link to it in the head section of each HTML page:

By- Ashutosh Tiwari (Vimal Computer)
Address- Vimal Computer, H N 128 Ma Vimla Devi Ji Bhawan (Mathia) Sri Sai Nath Ji Colony, opp. Civil Court, Civil Line, Ballia, Uttar Pradesh 277001
  / vimals.computersballia  

#vimalcomputer