HTML: Difference between revisions
Jump to navigation
Jump to search
Created page with "= Test Page = <html> <head> <title>This is only a test</title> </head> <body> Test </body> </html>" |
|||
| Line 1: | Line 1: | ||
= Test Page = | = Test Page = | ||
<div class="toccolours mw-collapsible" style="width:400px; overflow:auto;"> | |||
<html> | <html> | ||
<head> | <head> | ||
| Line 8: | Line 9: | ||
</body> | </body> | ||
</html> | </html> | ||
</div> | |||
= Maintenance Page = | |||
<div class="toccolours mw-collapsible" style="width:400px; overflow:auto;"> | |||
<html> | |||
<head> | |||
<title>Site is temporarily down</title> | |||
</head> | |||
<body> | |||
<h1>This site is temporarily down for maintenance.</h1> | |||
</body> | |||
</html> | |||
</div> | |||
= Test Page with Embedded PHP = | |||
<div class="toccolours mw-collapsible" style="width:400px; overflow:auto;"> | |||
<?php | |||
$text = 'Current PHP version: ' . phpversion(); | |||
?> | |||
<html> | |||
<head> | |||
<title>This is only a test</title> | |||
</head> | |||
<body> | |||
<input type="text" value="<?php echo $text; ?>"> | |||
</body> | |||
</html> | |||
</div> | |||
This requires .html added as a MIME type for PHP, like this: | |||
<IfModule mime_module> | |||
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml .html | |||
</IfModule> | |||
Revision as of 07:43, January 12, 2021
Test Page
<html> <head> <title>This is only a test</title> </head> <body> Test </body> </html>
Maintenance Page
<html> <head> <title>Site is temporarily down</title> </head> <body>
This site is temporarily down for maintenance.
</body> </html>
Test Page with Embedded PHP
<?php $text = 'Current PHP version: ' . phpversion(); ?> <html> <head> <title>This is only a test</title> </head> <body> <input type="text" value="<?php echo $text; ?>"> </body> </html>
This requires .html added as a MIME type for PHP, like this:
<IfModule mime_module> AddHandler application/x-httpd-ea-php73 .php .php7 .phtml .html </IfModule>