Techversity Wiki
Register
Advertisement
Stub
Stub
This article is a stub, an article too short to provide more than rudimentary information about a subject. You can help Techversity Wiki by expanding it

Here's a guide to creating and editing HTML documents for Microsoft Windows, MacOS, and Linux.

Creating and editing HTML documents[]

Text editor and web browser[]

For beginners, you will need a text editor and a modern web browser. By default, Windows comes with Notepad and macOS comes with TextEdit. Ubuntu comes with gedit, but Linux distributions vary in what text editors they offer. One of the best programs to edit advanced HTML documents is Visual Studio Code, which is free and offers live previews and code hints – however, this program is for intermediate to advanced learners of HTML.

In terms of a web browser, you'll need a couple to test your code in. What browsers are available depends on what operating system you use. The major modern web browsers (Google Chrome, Firefox, Microsoft Edge, and Opera) are available for Windows, Linux, and MacOS, while Safari is only available for MacOS.

Opening your text editor[]

Windows[]

Open Notepad using your preferred method. For Windows 10, this typically means clicking on the ⊞ Win button or search button and typing Notepad.

MacOS[]

Open "Finder", go to "Applications", and select "TextEdit".

You may also need to change some preferences to get TextEdit to save files correctly. Go to Preferences, then Format, and then choose "Plain Text". After this, check the "Display HTML files as HTML code instead of formatted text" box (displayed under the "Open and Save" menu).[Citation needed]

Linux[]

Writing some HTML[]

Write or copy the following HTML code into your text editor:

<!DOCTYPE html>
<html>
<body>
<h1>Hello World!</h1>
<p>Look ma, I am coding in HTML!</p>
</body>
</html>

References[]

Advertisement