<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Zico's Fancy Portfolio</title>
</head>
<body>
<header>
<nav>
<ul>
<li>About Me</li>
<li>Projects</li>
<li>Contact</li>
</ul>
</nav>
</header>
<main>
<section>About Me</section>
<section>Projects</section>
<section>Contact</section>
</main>
<footer>Created with love by Zico Deng :)</footer>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="description" content="Zico's personal portfolio website" />
<meta name="keywords" content="Zico, Portfolio" />
<meta name="author" content="Zico Deng" />
<title>Zico's Fancy Portfolio</title>
</head>
<body></body>
</html>
.container {
position: relative;
width: 300px;
height: 600px;
background-color: orange;
}
.menu {
display: flex;
align-items: center;
flex-direction: row;
justify-content: center;
}
.menu > .item {
color: black;
}
.menu > .item:hover {
color: red;
}
ID selector: #my-container
Class selector: .my-container
All selector: *
Pseudo-element selector: ::before, ::after
Attribute selector: [type="range"]
Descendant selector: div p
Child selector: div > p
Adjacent sibling selector: div + p
General sibling selector: div ~ p
...
Browser reads selector from right to left as opposed to human read it left to right
The right-most selector is called key selector because it determines which specific element we will be styling with
!important
inline style
ID
Class, attribute, and pseudo-class
Type
Box model is mainly used to create design and layout of web pages