- Rutgers Design 2B: W2
- HTML Quiz
- Instructions
- Questions
- Check Your Work
- CSS Introduction
- Let’s open up our Class Survey (the index file) from last week’s class.
- Practice
- CSS Properties
- Web Typography
- Exercise: Survey (part 2)
- Let’s look at some portfolio sites
- List
Visible to members of this folder
HTML Quiz
main > section > div > p > span
CSS Introduction
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="assets/css/main.css">
</head>
<body>
<h1>My structure</h1>
</body>
</html>
body {
background-color: lavender;
}
h1 {
color: blue;
}
#title {
color: blue;
}
.title {
color: blue;
}
<h1 class="title">Hello</h1>
Let’s open up our Class Survey (the index file) from last week’s class.
<div class="question-container">
<div class="question">What is your name?</div>
<div class="answer">Your answer goes here!</div>
<link rel="stylesheet" type="text/css" href="assets/css/main.css">
div {
color: gray;
}
.question {
color: pink;
}
<p>Not so special. Mostly gray and sad.</p>
<p id="most-special-paragraph" class="special-paragraph">This paragraph is special, that's why it's blue.</p>
<p>Also not so special.</p>
p {
color: gray;
}
#most-special-paragraph {
color: red;
}
.special-paragraph {
color: blue;
}
p {
color: gray;
}
#most-special-paragraph {
color: red;
}
.special-paragraph {
color: blue !important;
}
CSS Properties
.special-paragraph {
color: blue;
background: pink;
border: 1px solid red;
margin: 10px;
padding: 5px;
font-family: monospace;
font-size: 24px;
}
Web Typography
Exercise: Survey (part 2)
Let’s look at some portfolio sites