HTML Css Notes 1
HTML Css Notes 1
Difference btwn IDs and classes : id is unique, it should be one per element BUT
classes can be used for a a lot of elements
- it works trough attribute : <p id="something">
TEXT CSS :
color :#2F2570;
font-family: Georgia, 'Times New Roman', Times, serif;
font-style: italic;
font-size: 22px;
text-align: left;
text-decoration: wavy;
text-indent: 30px;
text-transform:uppercase;
word-spacing: 10px;
line-heigh:50px;(space betwn texts)
margin : 50px (to do space)
++++++++++++++++++
I can create a new window just by creating a new folder in html. calling it
contact.html for example
I can link it by just using the anchor <a href="contact.info"> click</a>
i can use it also for linking to a web site <a href="https://www.youtube.com/watch?
v=3SNUxn1Cn1o"> visit my channel</a>
but this will open it on the same window, so to open it from a different window
what i can do is to add an attribute :
target
I can go straight to something in the page like a link for examlpe, for that i have
to specifie an id for that tag, then on the
top i can use another <a href="#id of the thing i wanna go straight for it">
-how to reset stylesheet : (always on the bottom of the css page !)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
body {
line-height:1;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
display:block;
}
nav ul {
list-style:none;
}
blockquote, q {
quotes:none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content:'';
content:none;
}
a {
margin:0;
padding:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
del {
text-decoration: line-through;
}
abbr[title], dfn[title] {
border-bottom:1px dotted;
cursor:help;
}
table {
border-collapse:collapse;
border-spacing:0;
}
input, select {
vertical-align:middle;
}
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++