The following tutorial column of sublime introduction will introduce you to the shortcut method of using sublime text to generate the html web page header code. , I hope it will be helpful to friends in need!
Enter html:xt and press the tab key to generate the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Document</title> </head> <body> </body> </html>
The above is the most commonly used header file. If you use html5, enter html:5 and then the tab key will generate the following:
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> </body> </html>
Of course there are other formats such as html:xs html:xxs html:4s html:4t, etc., which are not commonly used.
The above is the detailed content of A shortcut to generate html web page header code using sublime text. For more information, please follow other related articles on the PHP Chinese website!