Computers, File Types
A little bit about how to create an HTML file
Now we will tell you how to create an HTML file, because this is the beginning of the site. In order to get such a document, you can use a text editor or specialized applications. To ensure the correct display of the file in the browser, you will need to follow certain rules when creating the code.
Definition
In order to edit the HTML-code, you can use a text editor or select special programs that have the functions of automatic input and syntax highlighting. Note that Sublime Text became an example of an application that is well suited for efficient work with specified documents.
While using the code editor, select the "File" item in the main application menu, and then "Save as ...". Next, in the dialog box that appears, specify the directory in which the HTML file will be saved, as well as its name and exact extension. Thus, the format is easy to change.
You can convert a text document, turning it into an HTML page, simply appending the .html extension at the end of the title. It should be remembered that there are a number of specific situations in which even a correctly created file that has the correct format can not be opened in the browser. The reason for this may be incorrect design of the HTML-code structure.
rules
In certain situations, the reason for the incorrect display of the web page is the absence or incorrect writing of this tag. The pair code html> is a descriptor. It contains the contents of the entire web page. In this case, material elements that are located outside this tag are displayed as plain text or blocked by the browser.
The exception is
Note that between these tags, using the
Similarly, within the
parameter, the document type, encoding, styles, design versions in different browsers, and a number of other parameters are given. Although the content of the tag is not displayed by the browser, this descriptor is required.The basis
Inside, other elements can be applied:
Notepad at hand
Turn "Notepad" into an HTML page is very simple, how to do it, we have already described. Thus, you have familiarized yourself with the basics of the process, and perhaps you will agree that creating an HTML file is not very difficult.
Similar articles
Trending Now