Category: 2. CSS

  • How to add CSS

    CSS is added to HTML pages to format the document according to information in the style sheet. There are three ways to insert CSS in HTML documents. Inline CSS Internal CSS External CSS 1) Inline CSS Inline CSS is used to apply CSS on a single line or element. For example: <p style=”color:blue”>Hello CSS</p>   2) Internal CSS…

  • CSS Selector

    CSS selectors are used to select the content you want to style. Selectors are the part of CSS rule set. CSS selectors select HTML elements according to its id, class, type, attribute etc. There are several different types of selectors in CSS. CSS Element Selector CSS Id Selector CSS Class Selector CSS Universal Selector CSS Group Selector…

  • CSS Syntax

    A CSS rule set contains a selector and a declaration block. Selector: Selector indicates the HTML element you want to style. It could be any tag like <h1>, <title> etc. Declaration Block: The declaration block can contain one or more declarations separated by a semicolon. For the above example, there are two declarations: color: yellow; font-size: 11…

  • What is CSS

    CSS stands for Cascading Style Sheets. It is a style sheet language which is used to describe the look and formatting of a document written in markup language. It provides an additional feature to HTML. It is generally used with HTML to change the style of web pages and user interfaces. It can also be…

  • Introduction to CSS

    CSS Tutorial CSS tutorial or CSS 3 tutorial provides basic and advanced concepts of CSS technology. Our CSS tutorial is developed for beginners and professionals. The major points of CSS are given below: CSS stands for Cascading Style Sheet. CSS is used to design HTML tags. CSS is a widely used language on the web. HTML,…