Basic HTML5 Website Template
.
├── config.php
├── css
│ ├── reset.css
│ └── style.css
├── images
├── img
├── index.php
└── js
└── script.js
CONFIG.PHP:
<?php
/* The name of the database */
define('DB_NAME', 'database');
/* MySQL database username */
define('DB_USER', 'root');
/* MySQL database password */
define('DB_PASS', 'passw0rd');
/* MySQL hostname */
define('DB_HOST', 'localhost');
RESET.CSS:
/* CSS RESET
http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126 | License: none (public domain) */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {line-height: 1}
ol, ul {list-style: none}
blockquote, q {quotes: none}
blockquote:before, blockquote:after, q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* NATURAL BOX LAYOUT MODEL
http://www.paulirish.com/2012/box-sizing-border-box-ftw/
width + padding + border = actual visible/rendered width of box
height + padding + border = actual visible/rendered height of box */
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* CLEARFIX
http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
http://css-tricks.com/snippets/css/clear-fix/ */
.clearfix:after {
display: table;
content: '';
clear: both;
}
STYLE.CSS:
/* styles */
body { }
img { }
h1, h2, h3, h4, h5 {
text-align: center;
padding-top: 1em;
}
h1 {font-size: 3em}
h2 {font-size: 2em}
h3 {font-size: 1.5em}
h4 {font-size: 1.25em}
h5 {font-size: 1.1em}
h6 {font-size: 1em}
SCRIPT.JS:
Empty File
INDEX.PHP:
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>TITLE</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="author" content="" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/stylesheet.css" />
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
<![endif]-->
</head>
<body>
<h1>HEADER</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
in culpa qui officia deserunt mollit anim id est laborum.</p>
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>