CSS Background

CSS background property is used to define the background effects on element. There are 5 CSS background properties that affects the HTML elements: ● background-color ● background-image ● background-repeat ● background-attachment ● background-position i) background-color:                          The background-color property is used to specify the background color of an element. Example: <!DOCTYPE html> <html> <head> <style> …

CSS Background Read More »

CSS Comments

Comments are used to explain your code, and may help you when you edit the source code later. Comments are ignored by browsers. Comments are single or multiple lines statement and written within /*…………*/. Example: <!DOCTYPE html> <html> <head> <style> p {     color: blue;     /* This is a single-line comment */     text-align: …

CSS Comments Read More »

CSS Selectors

CSS selectors are used <em>to select the content you want to style</em>. Selectors are the part of CSS rule set.                There are several different types of selectors in CSS. Class Selector Descendant Selectors Group Selector Type Selector Id Selector i) Type Selector:                   The most common and easy to understand selectors are type selectors. …

CSS Selectors Read More »

CSS Inclusion

There are three ways to associate styles with your HTML document. Most commonly used methods are inline CSS and External CSS. Embedded/Internal CSS :                            Internal styles are defined within the <style> element, inside the head section of an HTML page. Example: <!DOCTYPE html> <html>    <head>       <style type = “text/css” media = “all”> …

CSS Inclusion Read More »

About CSS

Cascading Style Sheets, fondly referred to as CSS, is a simple design language intended to simplify the process of making web pages presentable.