i
What Do You Mean By HTML and CSS?
Common HTML Terms
Creating HTML Document Structure
Common CSS Terms
Selectors
Referencing CSS
CSS Resets
Getting to Know HTML And Semantics Overview
Identifying Divisions and Spans
Using Text Based Element
Building Structure
Creating Hyperlinks
Getting to Know CSS :The Cascade
Calculating Specificity
Combining Selectors
Layering Styles With Multiple Classes
Common CSS Properties
CSS Aural Media/Style Sheets
CSS Pagination
CSS Overflow
CSS White Space
CSS Word Wrap
CSS Outline
CSS Visibility
CSS Counters
CSS Animation
CSS Transition
CSS Tooltips
CSS Tooltip Animation
CSS Arrow
CSS Flexbox
CSS Media Queries
CSS 2D Transforms
CSS 3D Transforms
How are Elements Displayed?
Display Property Controls And Box Model?
Working With Box Model
Width and Height
Margins and Padding
Borders, Individual Border Sides, Border Radius, Box Sizing, Content Box and Padding Box
Developer Tools
Removing Spaces between Inline-Block Elements
Positioning With Floats
Floats in Practice
Positioning With Inline-Block
Clearing and Containing Floats
Creating Reusable Layouts
Uniquely Positioning Layouts
Adding Colour To Text
Changing Font Properties
Font Family
Font Size, Font Style, Font Variant, Font Weight And Line Height
Shorthand Font Properties
Applying Text Properties
Text Properties All Together
Using Web-Safe Fonts
Including Citation And Quotes
Adding A Background Colour
Adding a Background Image and Background Repeat
Background Position and Shorthand Background Image Values
Designing Gradient Backgrounds
Changing the Direction of a Gradient Background
Using Multiple Background Images
Exploring New Background Properties
Unordered Lists
Ordered Lists
Description Lists
Nested Lists
List Item Styling
List Style Type Values
List Style Position Property
Adding Media And Adding Images
Sizing Images
Positioning Images, Inline Positioning Images, Blocking Positioning Images , Positioning Images Flush Left or Right
Adding Audio
Adding Videos
Adding Inline Frames
Semantically Identifying Figures And Captions
Building Forms And Initializing a Form
Text Fields And Text Areas
Multiple Choice Inputs And Menus
Form Buttons
Other Inputs
Organizing Form Element
Form And Input Attributes
Login Form Example
Organizing Data with Tables
Creating A Table
Table Header
Table Structure
Table Head, Body and Foot
Combining Multiple Cells
Table Borders
Table Striping
Aligning Text
Completely Styled Table
HTML Coding Practices
Use the Proper Document Structure
Keeping the Syntax Organized
Use Practical ID and Class Values
CSS Coding Practices
Write CSS Using Multiple Lines and Spaces
Use Proper Class Names
Build Proficient Selectors
Use Desired Classes When Needed
Use Shorthand Hexadecimal Color Values
Drop Units Zero Values
HTML abbr tag
HTML acronym tag (Not for HTML 5)
HTML area tag
HTML basefont tag
HTML blockquote tag
HTML datalist tag
HTML Description List
HTML ins tag
Marquee HTML Tag
HTML object tag
HTML picture tag
HTML SVG
CSS offers us the ability to add designs and layout inside our web page. One can also share those layouts with different elements and pages of the website. Before unlocking all features, there is a couple of different languages we should completely comprehend.
As we begin, we need to understand how the styles get processed. One of the most important thing that we need to learn is about the working procedure of different selectors and how their different order may affect the style of the page. We also need to have a good idea about a couple of property value like that of color and length.
Let's start with CSS and see what is going to happen.
The Cascade
Here we are going to start the study by knowing the rendering process of the styles. For this, we will be looking at the cascade and learning a couple of examples regarding it. In the CSS file all styles cascade from top to bottom.
Let’s take an example here
p {
background: orange;
font-size: 24px;
}
p {
background: green;
}
In the above code, at first, we have selected all the paragraph on the web page and changed their background to orange and the font size to 24px. Towards the bottom, we select the paragraph again and changes the colour to green.
As the paragraph selector that has the background colour of green comes after the paragraph selector that has the background colour of orange, it will take precedence. Every paragraph will be appearing green. But the font size of the paragraph will be of 24 pixels.
Cascading Properties
The cascade property from top to bottom works well inside an individual selector. Let's take up an example of this.
p {
background: orange;
background: green;
}
In the above example, you can see that inside the paragraph element, we have given two backgrounds values one after the other, one says orange, and the other says green. As the green value of the background is after the orange one, the whole background for the paragraph will be green.
Thus we can see in the above examples that all styles cascade from top to bottom in our style sheet. But still, there are many places where the cascade property does not come into play. This situation only takes place when the web page uses different selectors, and the particularity of those selectors breaks the course. Let’s check them out.
Don't miss out!