Posts

Showing posts with the label css selector

Learn CSS Selectors

Image
Learn CSS Selectors  This Blog You Will Learn  ஃ what is the CSS Selectors? ஃ Syntax  ஃ  Learn CSS Selectors    ஃ Explain Program ஃ   Output

css id selector

Image
        CSS ID Selector 1] css id selector  attribute  is the unique identifier in an html document. 2] id selector use # character. 3] css id selector is used to apply style specific HTML element. Syntax :- #id  { // css property } CSS id selector  Example:- <! DOCTYPE html > < html > < head >     < title > css id selector </ title >     < style >         #web         {             text-align : center ;             color : brown ;         }     </ style > </ head > < body >     < h2 id = "web" >         hello https://webdesigningtheory.blogspot.com/ </ h2 >         < h3 > This is program of Css ID Selector </ h3 >     </ h2 >     </ body ...

Type of CSS Selectors

Image
  Types of CSS selectors  Type   1. Universal Selector    2. ID Selector   3. Tag Selector 4. Class Selector    5. Attribute Selector 1. Universal Selector   The universal selector, written as is star symbol matches every single element the page. It is used for selecting all elements on a page. The universal selector omitted if other conditions exist on the target element. This selector is often use to remove the default margins and padding from the element for quick testing purpose. Syntax: *{ style properties } Universal Selector  Example   <!DOCTYPE html>  <html>  <head>  <style> *{  color: green;  font-size: 20px; } </style> </head>  <body>  <h2> Universal Selector</h2>  <p> This style is the applied on every paragraph.</p>   <p id="para1">Second Paragraph</p>  <p>and Third Paragraph</p...