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> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href=""> <title></title> </head> <body> </body> </html> 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.