Frontend Development

VERY basic HTML template

Submitted by NSA, , Thread ID: 10768

Thread Closed

RE: VERY basic HTML template

Faded
Legend
Level:
21
Reputation:
215
Posts:
10.2K
Likes:
1.12K
Credits:
15K
29-05-2016, 01:58 AM
#47
29-05-2016, 01:53 AM
Realistic Wrote:
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">

Why that instead of this?

Code:
<meta charset="UTF-8">
[Image: InZ3hGx.png]

Users browsing this thread: 1 Guest(s)