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
Font Size
The font-size offers with an option to set the size of text using common length value, including percentages, em units, points, pixels, or font-size keywords.
body {
font-size: 14px;
}
Font Style
To convert text into italics or to cease it from getting italicized, the font-style property is used. It takes in 4 keywords i.e., italic, normal, inherit, and oblique. Among them, the most popular ones are normal and italic.
.special {
font-style: italic;
}
Font Variant
It occurs most often, but sometime text will be required to set in small capitals, otherwise called small caps. For this purpose, we need font-variant property. It takes in 3 values i.e., small-caps, normal, and inherit.
.firm {
font-variant: small-caps;
}
Font Weight
Sometime it may be needed to make our text bold or provide it with some specific weight of a typeface. For this, we are going to use the property called font-weight. This property either accepts numeric or keyword values.
The keyword values include bold, normal, inherit, bolder, and lighter. It is advised to use bold and normal as your primary keyword. As opposed to utilizing the keywords lighter or bolder, it's smarter to utilize a numeric incentive for increasingly explicit control.
.daring {
font-weight: bold;
}
The numeric values incudes 100, 200, 300, 400, 500, 600, 700, 800 and 900. 100 refers to the thinnest weight and 900 refers to the thickest weight.
.daring {
font-weight: 600;}
Line Height
To define the distance present between 2 lines of text, we use the line-height property. It is recommended to keep the value of line-height as one and a half times that of a font-size value.
body {
line-height: 22px;
}
Line height also helps in making a single line of text within an element vertically.
.btn {
height: 22px;
line-height: 22px;
}
This process may be noticed with alert messages, buttons and other single-line text blocks.
Don't miss out!