What is CSS? Cascading Style Sheet. CSS is a styling language used to describe how HTML elements presented and displayed on a webpage. It is used to control the layout, color, font and overall visual appearance of web content. CSS allows web developers to separate the structure from the presentations of webpage, making it easier to create visually appealing and consistent design across a website. We have various types of CSS as below: - inline CSS ○ It is used to apply a unique style to a single HTML element. - internal CSS ○ It is used to define the style for a single HTML page. It is defined in the head section of an HTML page within the style element. - External CSS ○ It is used to define . It is used as external stylesheet, add link to it in the head section of each HTML page.
2. traversal of a binary tree: traversal in binary tree involves visiting all the nodes of binary tree. 3 ways . inorder traversal (left-current(node)-right) .pre-order traversal(current-left-right) .post order traversal (left-right-current)
Css selectors are patternss that define which elements on a web page should be style. They help you target specific html elements for applying CCS style.
Specificity determines which style rules are applied when multiple conficting styles are defiend for the same elements . its like a hierachy of importance.
types of selector; . element selector Tag selector The element selector selects elements based on the element name . syntax: p{ text-align: center; color; red; } . ID selector The ID selector used the ID attribute of an HTML element to select a specific element An ID should be unique within a page , so the ID selector is usedd to select a single,unique element. to selecte an element with a specific ID , write a hash character(#) followed by the ID of the element . syntax: #para{ text-align: center; color: red; }
. class selector: The class selector selects elements with a specific class attribute. To select element with a specific class , write a period(.) character followed by the class name. Here,all element with class="center" will be red and center-aligned. syntax: .center{ text-align: center; color: blue; } .
What is CSS?
ReplyDeleteCascading Style Sheet.
CSS is a styling language used to describe how HTML elements presented and displayed on a webpage. It is used to control the layout, color, font and overall visual appearance of web content. CSS allows web developers to separate the structure from the presentations of webpage, making it easier to create visually appealing and consistent design across a website. We have various types of CSS as below:
- inline CSS
○ It is used to apply a unique style to a single HTML element.
- internal CSS
○ It is used to define the style for a single HTML page. It is defined in the head section of an HTML page within the style element.
- External CSS
○ It is used to define . It is used as external stylesheet, add link to it in the head section of each HTML page.
Binary tree ;; traversal
ReplyDelete2. traversal of a binary tree: traversal in binary tree involves visiting all the nodes of binary tree. 3 ways
. inorder traversal (left-current(node)-right)
.pre-order traversal(current-left-right)
.post order traversal (left-right-current)
css selectors and specificity
ReplyDeleteCss selectors are patternss that define which elements on a web page should be style. They help you target specific html elements for applying CCS style.
Specificity determines which style rules are applied when multiple conficting styles
are defiend for the same elements . its like a hierachy of importance.
types of selector;
ReplyDelete. element selector
Tag selector
The element selector selects elements based on the element name .
syntax:
p{
text-align: center;
color; red;
}
. ID selector
The ID selector used the ID attribute of an HTML element to select a specific element An ID should be unique within a page , so the ID selector is usedd to select a single,unique element.
to selecte an element with a specific ID , write a hash character(#) followed by the ID of the element .
syntax:
#para{
text-align: center;
color: red;
}
. class selector:
The class selector selects elements with a specific class attribute. To select element with a specific class , write a period(.) character followed by the class name. Here,all element with class="center" will be red and center-aligned.
syntax:
.center{
text-align: center;
color: blue;
}
.