Login page travel blog
HTML
<DOCTYPE! HTML>
<html lang="en">
<head>
<meta charset="UTF-8" /meta>
<title> www.bloggingoverborders.com/login </title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="travel, asia, recommendations, blogging">
<meta name="author" content="Justin Harker">
<meta http-equiv="refresh" content="200">
<link rel="stylesheet" href="style.css">
<script src="javascript.js">
</script>
<style>
/*format login form object*/
#login-form {
display: block;
float: left;
width: 50%;
height: auto;
margin-top: 10%;
margin-left: 25%;
padding: 50px 50px 50px 50px;
border: 1px black solid;
background-color: teal;
}
/*format login form controls*/
#login-form-controls {
color: black;
text-align: center;
line-height: 1.8em;
margin-right: 15px;
margin-left: 15px;
}
</style>
</head>
<body>
<div id="wrapper">
<div class="header">
<a href="http://www.bloggingoverborders.com/login"></a>
<h1> Blogging Over Borders </h1>
<h6>Login Page</h6>
</div>
<div class="top-nav">
<ul>
<li> <a href="contact.html" target="_blank"> Contact</a> </li>
<li> <a href="home.html" target="_blank">Home</a> </li>
<li> <a href="image_gallery.html" target="_blank">Image Gallery</a> </li>
</div>
<form method="post" action="login.php" id="login-form">
<div id="login-form-controls">
<legend>Login as administrator</legend>
<fieldset>
<label for="userName"><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="userName" required> <br>
<label for="password"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="password" required> <br>
...
CSS
/*reset style sheet - from Foundation Website Creation with HTML5, CSS3, and Javascript textbook*/
html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
ins,
kbd,
q,
samp,
small,
strong,
sub,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
line-height: 1;
}
/* tell the browser to display the below elements as blocks, rather than inline elements */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}
/*clear out the styling on lists i.e. remove bullets and numbers */
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;
}
ins {
background-color: #ff9;
color: #000;
text-decoration: none;
}
mark {
background-color: #ff9;
color: #000;
font-style: italic;
font-weight: bold;
}
del {
text-decoration: line-through;
}
abbr[title],
dfn[title] {
border-bottom: 1px dotted;
cursor: help;
}
/*standardise the display of tables and table borders*/
table {
border-collapse: collapse;
border-spacing: 0;
}
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #cccccc;
margin: 1em 0;
padding: 0;
}
input,
select {
vertical-align: middle;
}
/*end of reset style sheet*/
/*Include padding and border in the element's total width and height: */
* {
box-sizing: border-box;
}
/*set up a Global wrapper with a width of 80%*/
#wrapper {
width: 80%;
...