What is CSS in HTML with example?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SwatiSood
    Senior Member
    • Jul 2014
    • 104

    What is CSS in HTML with example?

    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> elements (on that page) to blue, and the text color of ALL the <p> elements to red.
  • Guest

    #2
    CSS stands for Cascading Style Sheets with an emphasis placed on “Style.” While HTML is used to structure a web document (defining things like headlines and paragraphs, and allowing you to embed images, video, and other media), CSS comes through and specifies your document's style—page layouts, colors, and fonts .

    Comment

    • lisajohn
      Senior Member

      • May 2007
      • 359

      #3
      CSS (Cascading Style Sheets) is used to style and layout web pages — for example, to alter the font, color, size, and spacing of your content, split it into multiple columns, or add animations and other decorative features.
      Last edited by lisajohn; 05-27-2022, 12:06 AM.

      Comment

      Working...