PHP Code Snippets: blank.php or blank.html

Sublime Text is a fantastic editor, and it provides a good template for HTML.

I added the following line to it:

<link rel="stylesheet" href="">

I can never remember the exact syntax, so I always include that code. As is, this line does nothing. If you put the name of an CSS file in between the "", it will link to the stylesheet and your webpage will be styled accordingly.

I normally call the file index.php or a name that ends with .php. If a PHP file only contains HTML code, it will run as HTML code only. This is because PHP has to be turned on to work.
<!DOCTYPE html>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	   <link rel="stylesheet" href="">

A button to download the blank index.html file is below. To make it a PHP file, simply rename it to index.php.

Source Code

If you don’t know how to download, click here.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top