Skip to main content

Posts

Showing posts with the label property

10/100 : Constructing Style Rule in CSS (Syntax of CSS)

 Welcome to day 10 of my 100 days web development challenge. Yesterday, I started with CSS which is used for styling html documents. I learnt the what , why and how of CSS and you can check it  here . Today, I learnt the following. Topic: Syntax of CSS 3 Parts of CSS Style Rule Syntax of CSS: An embedded style sheet consists of an opening and closing <style></style> tag which is placed between the <head> section of the HTML page. When we use CSS for styling an HTML element, the style rule begins with the name of that element. For example: if you are creating a rule that will apply to all instances of the <h1> tag, then start the rule with h1. < style >         h1     </ style > No brackets are necessary around h1 because it's already enclosed in the <style> tag. A CSS compromises of style rules that are interpreted by the browser and then applied to the corresponding elements in the HTML document. 3...