Basic Web Page - phase 1
Objective:
-learn how to set up browser and editor for coding (to view window on both sides, let first window be active, hold down window key + right or left arrow)
-learn the basic structure of html
-learn structure of project files
-learn tags like h1-h6, p, a, img, ul, ol, hr, br
-learn css selectors class (dot), id (hash symbol)
NB: At least, one of your project files must have index.html
-to go on multiple pages, create the file name for index.html, services.html, about.html, contact.html
-paste the same code of index.html into other files, then edit the content you want it to have
Basic structure of HTML
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
<html>
<head>
<title> Intro to Web Design</title>
<!--<link rel="stylesheet" href="style.css">-->
<style>
*{
margin: 0; padding:0;
box-sizing: border-box;
font-family: sans-serif;
}
.header{
padding: 0 70px;
display: flex;
align-content: center;
justify-content: space-between;
margin-top: 20px;
margin-bottom: 20px;
background-color: purple;
}
.header .logo{
width: 50px; height: 50px;
font-size: 3rem;
}
.nav{
display: flex;
align-content: center;
justify-content: center;
gap: 60px;
list-style-type:none;
}
.nav li a{
text-decoration: none;
color: black;
font-size: 1.2rem;
color: yellow;
border-left: 1px solid cyan;
}
/*change the link color on hover*/
.nav li a:hover{
background-color: red;
}
.b1{
margin-left: 100px;
margin-right: 100px;
}
<!--
nav{
height:100px;
background-color: purple;
}
nav ul{
list-style-type:none;
margin: 0;
padding: 0;
width: 100%;
/*fixed navigation*/
position: fixed;
/*top: 0;*/
width: 100%;
}
nav li{
float: right;
border-right: 1px solid cyan;
}
nav li a{
text-decoration: none;
display: block;
color: blue;
padding: 10px;
background-color: yellow;
}
/*change the link color on hover*/
nav li a:hover{
background-color: cyan;
}
/*create active link*/
active{
background-color: cyan;
}
-->
</style>
</head>
<body>
<div class="header">
<h2 class="logo">DMAC</h2>
<ul class="nav">
<li><a href="indexcaleb.html">Homepage</a><li>
<li><a href="services.html">Services</a><li>
<li><a href="about.html">About</a><li>
</ul>
</div>
<!--para info-->
<br>
<section class="b1">
the lord is good all the time to me all the time
<h1 align="center">MY DEPARTMENT LANDING PAGE</h1>
<hr width="70%">
<blockquote>
<p align="justify">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Numquam libero,
nulla ipsum, recusandae veritatis ipsa repellat dignissimos veniam eaque suscipit aperiam, ducimus
magni accusamus quos assumenda laborum mollitia voluptas vero.</p></blockquote>
<p>The Lord is <em>Good to me</em> All the time, and i cannot say it all</p>
<p>The Lord is Good to me All the time, <br/> and i cannot say it all</p>
<h3>MY FAVOURITE FRIENDS</h3>
<ul align="justify">
<li>ade</li>
<li>bola</li>
<li>seun</li>
</ul>
<img src ="laspo.png">
</section>
<img src="images/img/but1.jpg" alt="laspotech logo" width="500" height="600">
<a href="www.google.com"> CLICK HERE</a>
</body>
</html>
Comments
Post a Comment