2,3,4,5 HTML and CSS
2,3,4,5 HTML and CSS
<center>
</center>
<table cellspacing="10">
<tr>
<td>iOS Development</td>
<td>⭐⭐⭐⭐⭐</td>
</tr>
<tr>
<td>Web Development</td>
<td>⭐⭐⭐⭐⭐</td>
</tr>
<tr>
<td>Photography</td>
<td>⭐⭐</td>
</tr>
</table>
INLINE:
INTERNAL:
<style>
body {
background-color: blue;
}
</style>
EXTERNAL:
Create a styles.css file and link to that from index.html
ANATOMY:
selector { property : value; }
SELECTORS:
class: When you need to style a group of related
elements.
id: Use when an element is only a single one.
An element can have more than one class, but only ond ID.
Pseudoclass:
Pseudoclasses start with :
FAVICONS:
h1 {
margin-top: 0;
}
Ex:
p {
display: inline;
}
Example:
p {
display: inline-block;
}
span {
visibility: hidden;
}
1. Content is everything.
The content determines the width and height of the boxes.
Position:
Static
Relative
Absolute
Fixed
div {
position: relative
}
img {
position: absolute
right: 30px;
}
Example:
Use GOOGLE FONTS: Select the fonts that you like and copy
the link in the html file.
Ex:
<link
href="https://fonts.googleapis.com/css2?family=Merriwea
ther&family=Montserrat&family=Sacramento&display=swap"
rel="stylesheet">
1 em = 16px = 100%
90px = 5.625em
Only use float when really necessary and for what is meant.
Don’t use it for positioning. Only use this for wrapping
text.