Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Introduction to CSS

Rating
-
Sold
-
Pages
20
Uploaded on
25-08-2024
Written in
2023/2024

A course for student in computer science who wants to be a programmer or a web developer, this course is directly for you

Institution
Course

Content preview

Cascading Style Sheets
(CSS)
Mendel Rosenblum



CS142 Lecture Notes - CSS 1

,Driving problem behind CSS
What font type and size does <h1>Introduction</h1> generate?

Answer: Some default from the browser (HTML tells what browser how)

Early HTML - Override defaults with attributes

<table border="2" bordercolor="black">

Style sheets were added to address this:

Specify style to use rather than browser default

Not have to code styling on every element
CS142 Lecture Notes - CSS 2




, Key concept: Separate style from content
Content (what to display) is in HTML files

Formatting information (how to display it) is in separate style sheets (.css files).

Use an element attribute named class to link (e.g. <span class="test">)

Result: define style information once, use in many places

Consider can you make all the text in the app slightly bigger?
Or purple is our new company color.

DRY principle: Don't Repeat Yourself
CS142 Lecture Notes - CSS 3

Written for

Institution
Course

Document information

Uploaded on
August 25, 2024
Number of pages
20
Written in
2023/2024
Type
Class notes
Professor(s)
John paul
Contains
All classes

Subjects

$10.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
jeffreytony

Get to know the seller

Seller avatar
jeffreytony Hamplus technologies
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions