100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary HTML/CSS/JS Fundamental Notes

Rating
-
Sold
-
Pages
112
Uploaded on
06-01-2024
Written in
2019/2020

Content to learn web development fundamentals HTML, CSS and JavaScript key to assist with developing web-based projects during brunel university projects.

Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Unknown
Course

Document information

Uploaded on
January 6, 2024
Number of pages
112
Written in
2019/2020
Type
Summary

Subjects

Content preview

🌐
CSS Notes

CSS Crash Course


CSS Basics


Cascading Style Sheets - Primary styling language of the web.
It allows us to style our websites as well as describing the layout of how we want our
website to be presented such as the size and positioning of elements


Casading



The order that stylesheets are used. There are 3 main types of style sheets:
1.) User Agent Stylesheets: Contain browser defaults for styles, these get the lowest
level of precedence.


2.) User Stylesheets: Contain user preferences saved in the browser, which override
user agent stylesheets.


3.) Author Stylesheets: Contain the CSS code we write, these get the highest level of
precedence (assuming !important has not been used)


Declaration




CSS Notes 1

, CSS is just a collection of declarations. A declaration is a CSS property-value pair in the
form:
property: value;


Declaration block
A group of declarations surrounded by {}




Ruleset
A selector followed by a declaration block for styling elements matching the selector
with the declarations in the declaration block. Rulesets follow this syntax:




Comments




CSS Notes 2

, Linking To HTML
The link tag goes on the head. It uses the relationship attribute and the hypertext
reference attribute.




Selectors

A Pattern used at the beginning of a ruleset for choosing which elements will be affected
by the declarations.




Universal selector: * selects everything




CSS Notes 3

, Pseudo Classes And Elements

Pseudo classes are an addition to a CSS selector used for selecting based on the
current state of the element. These start with “:” e.g. button:hover would select buttons
currently hovered over


Pseduo elements are an addition to a CSS selector used for selecting a specific portion
of the element.

e.g. p::first-letter would select the first letter of the paragraphs.
::before and ::after are special pseudo elements that insert children before or after the
content of the element, allowing for styling before or after the content. This is often
times used with the CSS content property but not always.


Selector Specificity

What happens to conflicting declarations?

The highest weight is selected. The more specific one is used.


Specificity is roughly calculated by counting the number of each selector type involved
in a selector and multiplying by a weight. If weighting is the same it defaults to the last
rule in the stylesheet.




CSS Notes 4

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
cslbrunel Brunel University
Follow You need to be logged in order to follow users or courses
Sold
63
Member since
3 year
Number of followers
34
Documents
29
Last sold
4 months ago
Brunel Computer Science (1st Class Honours)

I achieved a First Class Honours degree in Computer Science from Brunel University - I will be uploading some of my work. Please do not purchase any documents looking for the solution to your assignments or deliverables. No refunds / exchanges.

5.0

2 reviews

5
2
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions