Difference between revisions of "Basic html/css"

From MyWiki
Jump to: navigation, search
(Created page with "Example of a very simple nav bar <br> <source lang="text"> <a href "index.html" > Home </a>   <a href "contact.html" > Contact </a> <hr></hr> <img src="my.png" width="5...")
 
(No difference)

Latest revision as of 17:53, 17 November 2015

Example of a very simple nav bar

<a href "index.html" >
Home
</a>
&nbsp;
<a href "contact.html" >
Contact
</a>
<hr></hr>
 
<img src="my.png" width="50%" />

Adding a stylesheet in a separate file

<head>
<title> Georges documentation</title>
<link rel="stylesheet"
     type="text/css"
     href="style.css"
/>
 
 
</head>

Stuff in the csss file :

body {
     background: green;
     color: white;
     text-decoration: none;
}
 
a{ 
   color: grey;
}

Fonts :
There are three categories of fonts :
Serif, Sans-serif and monospace

h1{
   font-family: "Times new roman" serif;
   font-size: 100px;
}
 
a:hover{
        color: black;
        background: white;
      text-decoration: none;
 
 
}