HTML: Difference between revisions
Jump to navigation
Jump to search
→Maintenance Page: Labeled last change |
→Test Page with Embedded PHP: Widened the box |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 11: | Line 11: | ||
</div> | </div> | ||
= Maintenance Page = | = Maintenance Page = | ||
Can also place | Can also place <h1> tags within the body. Not here because the wiki formats it. | ||
<div class="toccolours mw-collapsible" style="width: | <div class="toccolours mw-collapsible" style="width:600px; overflow:auto;"> | ||
<html> | <html> | ||
<head> | <head> | ||
| Line 24: | Line 24: | ||
= Test Page with Embedded PHP = | = Test Page with Embedded PHP = | ||
<div class="toccolours mw-collapsible" style="width: | <div class="toccolours mw-collapsible" style="width:600px; overflow:auto;"> | ||
<?php | <?php | ||
$text = 'Current PHP version: ' . phpversion(); | $text = 'Current PHP version: ' . phpversion(); | ||
Latest revision as of 07:53, January 12, 2021
Test Page
<html> <head> <title>This is only a test</title> </head> <body> Test </body> </html>
Maintenance Page
Can also place <h1> tags within the body. Not here because the wiki formats it.
<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>