Put opening brackets on the same line as the card to be decorated.
Use a space before the opening bracket.
Use 2 spaces to backline the internal properties.
Use semicolons after each pair of 'attributes / values'.
Use parentheses only if the value contains spaces.
Put parentheses in a separate line, in front of no spaces.
Do not use more than 80 characters on the same line.
Link JavaScript in HTML
You can use simple syntax to link to JavaScript (it is not necessary to use the type attribute): If possible, use the same naming conventions (like JavaScript) in HTML.
Write often directory names
Some web servers (Apache, Unix) are case sensitive with the file name: "london.jpg" cannot be accessed as "London.jpg". But there are web servers (Microsoft, IIS) that are not case sensitive: london.jpg can be accessed by name London.jpg or london.jpg. Therefore, if you use a combination of uppercase and lowercase letters, you must be extremely consistent to avoid errors when moving the server. To avoid leading to these errors, always use lowercase letters for file names.
File extension
HTML files should have the extension .html (or .htm).
CSS files should have the .css extension
JavaScript files should have the extension .js
The difference between .htm and .html
There is no difference between the .htm and .html extensions . Both will be treated as HTML when working with any browser and server.
.htm: of the original DOS, where the system limits the extension to 3 characters.
.html: of the Unix operating system, there is no limit.
Technical differences
When the URL does not specify a file name (like https://www.tipsmake.com/html/), the server will automatically return the default file name. The default default file is index.html, index.htm, default.html and default.htm.
If your website has been configured with the default file name 'index.html', you must name the file 'index.html', not set to 'index.htm.' However, the server can be configured with many default files, and usually you can set up multiple default files if needed.
Anyway, the full extension for HTML files is .html, and there's no reason that you don't use this name. That's all. Become a smart programmer by writing neat, clean and standard code like this.