HTML & CSS Cheat Sheet
HTML Basics
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<link rel="stylesheet" href="[Link]">
</head>
<body>
<h1>Hello</h1>
<p>Paragraph</p>
</body>
</html>
Common HTML:
<h1>-<h6>, <p>, <a>, <img>, <div>, <span>, <ul>, <ol>, <li>, <table>, <form>, <input>,
<button>
CSS Basics:
selector {
property: value;
}
Common Properties:
color
background-color
font-size
font-family
margin
padding
border
width
height
display
flex
justify-content
align-items
position
text-align
border-radius
Example:
body{
font-family: Arial;
background:#f5f5f5;
}
.container{
display:flex;
justify-content:center;
align-items:center;
}
button{
background:blue;
color:white;
padding:10px 20px;
border:none;
border-radius:5px;
}