Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Introduction to CSS and Bootstrap: A Beginner's Guide - Prof. Chigurupati, Cheat Sheet of Engineering

A comprehensive introduction to css (cascading style sheets) and bootstrap, a popular front-end framework. It covers the fundamentals of css, including its syntax, selectors, properties, and values. The document also explores the relationship between html and css, explaining how they work together to create web pages. Additionally, it delves into the key features of bootstrap, such as its typography, buttons, forms, and responsive design capabilities. Ideal for beginners who want to learn the basics of web development and understand how css and bootstrap can be used to create visually appealing and functional websites.

Typology: Cheat Sheet

2024/2025

Uploaded on 10/11/2024

geethika-3
geethika-3 ๐Ÿ‡ฎ๐Ÿ‡ณ

1 document

1 / 10

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1. CSS (Cascading Style Sheets):
CSS stands for Cascading Style Sheets, a stylesheet language used to describe the presentation (visual
appearance) of a document written in HTML or XML. CSS defines how HTML elements should be
displayed on screen, paper, or in other media.
2. Introduction to CSS:
CSS is introduced as a way to separate content from design. While HTML is used to structure content,
CSS is used to control how this content is presented, making it easier to manage the visual aspects of
a website.
3. Features of CSS:
Separation of Concerns: CSS allows you to separate the content (HTML) from its presentation (CSS),
making it easier to maintain and update.
Reusability: CSS styles can be reused across multiple HTML pages, ensuring consistent styling across a
website.
Efficiency: CSS allows for more efficient coding by enabling centralized control of styling. This means
that a change to a single CSS file can update the styling across multiple web pages.
Cascading: The "Cascading" part of CSS means that styles can be applied in a cascading manner,
meaning that styles can be inherited and overridden, allowing for flexible and sophisticated design.
4. Core Syntax:
Selectors: CSS uses selectors to target HTML elements that you want to style. For example, p { color:
red; } targets all <p> elements and sets their text color to red.
Properties: These define what aspect of the element you're going to change, such as color, font-size,
margin, etc.
Values: These specify the value of the property. For example, in color: red;, "red" is the value of the
color property.
Declaration Blocks: These are a combination of a property and value, enclosed in curly braces {}.
Multiple declarations can be separated by semicolons.
5. Style Sheets:
External Style Sheets: CSS can be written in a separate file with a .css extension, which is then linked
to the HTML document using the <link> tag.
Internal Style Sheets: CSS can be included within the <style> tag in the <head> section of the HTML
document.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Introduction to CSS and Bootstrap: A Beginner's Guide - Prof. Chigurupati and more Cheat Sheet Engineering in PDF only on Docsity!

  1. CSS (Cascading Style Sheets): CSS stands for Cascading Style Sheets, a stylesheet language used to describe the presentation (visual appearance) of a document written in HTML or XML. CSS defines how HTML elements should be displayed on screen, paper, or in other media.
  2. Introduction to CSS: CSS is introduced as a way to separate content from design. While HTML is used to structure content, CSS is used to control how this content is presented, making it easier to manage the visual aspects of a website.
  3. Features of CSS: Separation of Concerns: CSS allows you to separate the content (HTML) from its presentation (CSS), making it easier to maintain and update. Reusability: CSS styles can be reused across multiple HTML pages, ensuring consistent styling across a website. Efficiency: CSS allows for more efficient coding by enabling centralized control of styling. This means that a change to a single CSS file can update the styling across multiple web pages. Cascading: The "Cascading" part of CSS means that styles can be applied in a cascading manner, meaning that styles can be inherited and overridden, allowing for flexible and sophisticated design.
  4. Core Syntax: Selectors: CSS uses selectors to target HTML elements that you want to style. For example, p { color: red; } targets all

    elements and sets their text color to red. Properties: These define what aspect of the element you're going to change, such as color, font-size, margin, etc. Values: These specify the value of the property. For example, in color: red;, "red" is the value of the color property. Declaration Blocks: These are a combination of a property and value, enclosed in curly braces {}. Multiple declarations can be separated by semicolons.

  5. Style Sheets: External Style Sheets: CSS can be written in a separate file with a .css extension, which is then linked to the HTML document using the tag. Internal Style Sheets: CSS can be included within the