Frontend Development

VERY basic HTML template

Submitted by NSA, , Thread ID: 10768

Thread Closed

RE: VERY basic HTML template

Illuminatus
Fulltime Member
Level:
0
Reputation:
62
Posts:
1.56K
Likes:
59
Credits:
95
29-05-2016, 01:53 AM
This post was last modified: 29-05-2016, 01:55 AM by Illuminatus
#46
25-03-2016, 03:02 AM
NSA Wrote:
18-03-2016, 10:50 PM
Billy Wrote:
This is extremely basic

Here's a REAL template

Code:
<?php
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Your page title</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Description of website">
<meta name="keywords" content="Search engine keywords">
<meta name="author" content="You">
<link rel="shortcut icon" href="/favicon.ico"/>

<!--[if lt IE 9]>
<script src="/home/https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="/home/https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<h1>My First Heading</h1>

<p>My first paragraph.</p>
</body>
</html>

Complete with device, browser and screen responsiveness, proper UTF-8 encoding, language, favicon and SEO ranking improvers

oh and php :^)

"VERY basic HTML template"
"VERY"

This was made for those with no knowledge of HTML at all

Why this?

Code:
<?php
header('Content-Type: text/html; charset=utf-8');
?>

Instead of this

Code:
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Do not allow the eye to fool the mind.

Users browsing this thread: 1 Guest(s)