So, our knowledge of web design is growing. As our knowledge grows, our web pages grow too! It's like teething - things are growing!
We know that the structore of a webpage can be described as follows:
What if we want different tags to follow the same rule?
For example, we want h1 tags and img tags to have a left margin of 40px.
Or we want some of our images to have a red border, but not all of them?
We can design our own CSS rules and apply them to any tag we like!
<html>
<head>
<style>
.myRule{
color:red;
font-size:24px;
font-family:Courier new;
}
</style>
</head>
<body>
</body>
</html>
<html>
<head>
<style>
.myRule{
color:red;
font-size:24px;
font-family:Courier new;
}
</style>
</head>
<body>
<h1 class = "myRule">Welcome to my page!</h1>
</body>
</html>
☉create an images folder in your Orkney project folder.
☉save these three images in your images folder.
☉open orkney.html in a text editor and create the following styles for the tags and other rules (classes) that elements in the webpage can use. Also, follow any instructions you see inside orkney.html
All h1 tags
All h2 tags
All p tags
All img tags
NEW RULE .red
NEW RULE .bigBlue
body tag
☉apply the bigBlue class to any span tags you find in the html file.
☉apply the red class to any i tags you find in the html file.
☉apply the bigBlue class to every occurrence of the word "Mainland"
☉research how to use the <a> tag so that the user can click the word About in the menu to visit this webpage: https://www.orkney.com/
Can you figure out how to turn the unordered list with 3 list items into a horizonal navigation bar - you just need to style it!
Click me for an idea.