Pros and cons of .HTML files.
Like any technology, there are pros and cons of working with HTML files.
Pros.
- Easy to learn. If you’re new to coding and web development, HTML is the easiest language to get up and running with, whether writing or editing.
- Open standard. HTML is open standard, which means you can access and use it for free while expert stakeholders often update and improve it.
- Wide browser support. Every web browser supports HTML, so when writing pages in it you know it’ll be compatible, regardless of how the searcher is accessing the web.
- Smooth integration. HTML plays nicely with other coding languages. For example, CSS is another front-end language. An HTML file can also work with CSS code.
Cons.
- Lack of ‘dynamism’. Today, webpages are dynamic. They scroll endlessly and respond and reorient to different screen sizes. This is beyond basic HTML, so you’ll need another language like CSS for that.
- Browser differences. An HTML page can present differently on screen depending which browser you view it through. For example, Google Chrome layout may differ from Firefox for HTML pages.
- Time consuming. Creating HTML pages can be laborious, as you’ll generally need to write large amounts of code even for a basic webpage. Today, there are easier ways to build webpages.
How to open a .HTML file.
To open a .HTML file, you can either launch it within the text editor you created it in, if you want to edit the code or you can view it in a web browser.
Open an HTML file in TextEdit for Mac.
When using a Mac, you can open the HTML file in the TextEdit app.
- Simply launch the TextEdit app on your Mac
- Choose File > Open
- Select the file you want to view.
This will show you the HTML as it will display online. If you want to edit the code, you’ll need to choose the option to ‘Display HTML files as HTML code instead of formatted text’.
View a HTML file in a web browser.
To view a .HTML file through your web browser, simply find the file on your computer - then right-click (or double click with Mac) and choose Open With before selecting Google Chrome, Microsoft Edge or Firefox.
How to create and edit a .HTML file.
You can create a .HTML file using either an in-browser text editor or a simple desktop text editor. These include Microsoft Notepad on a PC or TextEdit on a Mac.
Creating an HTML file on a PC
To create an HTML file on your PC, simply:
- Open Notepad
- Write your HTML on the blank page using text, tags and spacing
- Save the file (File > Save As) with .html after the name
- Set the encoding to UTF-8.
Creating a HTML file on a Mac
To create an HTML file on Mac, simply:
- Open TextEdit on your Mac
- Go to File > New. Then Format > Make Plain Text
- Write your HTML using text, tags and spacing
- Save the document (File > Save) with the .html extension
- Choose Use .html when asked.
Once saved, these .HTML files can then be edited too.
Secondary .HTML Filetypes
.HTM
.HTML and .HTM are interchangeable. Both are file extensions for HTML; the only difference is that Windows required a three-character extension, hence the missing L.
XHTML
XHTML is a version of HTML that demands more accurate mark up with its coding, plus sharper error handling, to ensure it can work with XML data files.
How to convert .HTML file to PDF
You can convert HTML pages to PDF relatively easily with the correct software. For example, with Adobe Acrobat PDF tools you can save an HTML file as a PDF from within your web browser. This can make it easier for you to share your HTML files with colleagues with the original formatting and functionality retained. You’ll generally need Adobe Acrobat Pro for this. From there, you can easily upload your new PDF to Adobe Acrobat online to combine files, organise pages, split your PDF and more.
Learn more about similar file types to .HTML
.DAT
DAT files tell you more about the programme that was used to create them.
.JS
JS is short for JavaScript - one of the most widely-used languages for coding website back ends.
.XPS
Microsoft developed the XPS file to capture page layout information for printing.
.TXT
TXT is the extension you’d use when creating a plain text file in Notepad.