HTML Styles - CSS

CSS stands for Cascading Style Sheets
There are three ways in which you can add CSS to HTML
  • Inline: use a style attribute in HTML elements
  • Internal: use a <style> element in the HTML <head> section
  • External: Use one or more external CSS files

I will be using Internal styling

Input:

Output:
Note:
  • If you place an attribute after a similar attribute, only the first attribute will appear in the output. 
  • Both Gray and Grey are accepted as the same color/shade. 


Comments