--- layout: post title: "A Web browser" subtitle: "A browser is a document viewer. What kind of document? Webpages." section: web --- You're currently using a _Web browser_ to read this _Webpage_ written in _HTML_. ### HTML documents **Webpages** are **HTML documents**, like other files on your computer. They are just text files with a `.html` extension. On your computer, you probably have different **types** of files: * `.jpg` for images * `.mp3` for music * `.avi` for videos * `.doc` for Word documents * `.xls` for Excel spreadsheets Each of these _types_ of files can be opened by a specific **program**. Some of these programs can only _open_ these files, while others can both _open_ and _create_ files. By default, **file extensions** are hidden. In this tutorial, we'll need to be able to edit these extensions. So follow these instructions to display file extensions: **Windows**: [Show or hide file name extensions](http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions) **Mac**: [Show and hide filename extensions](https://support.apple.com/kb/PH10845?locale=en_US) {: .info} For example: * iTunes can **open** `.mp3` files but can not create them. * Microsoft Word can however both **open** and **create** `.doc` files.
| Program | Type | Can open these files | Can also create these files? |
|---|---|---|---|
| Microsoft Word | Word editor |
.doc
.docx
|
Yes |
| Paint | Graphics |
.jpg
.gif
.bmp
|
Yes |
| VLC | Video player |
.avi
.mpg
|
No |
| iTunes | Music player |
.mp3
.wav
.aiff
|
No |
| Firefox | Web browser |
.html
|
No |
| Notepad++ | Text editor |
.text
.html
|
Yes |
Hello World
{% endhighlight %} This code is written with a **text editor**. You can see the tags `` and `
` that stand for **paragraph**. When opened by a **browser**, these tags are **not displayed** but rather **interpreted** by the browser:Hello World
` and `
` tags and understands that `Hello World` is a **paragraph**. Remember that an HTML document can be opened in **2 ways**: * by a **text editor** who _sees_ the source code * by a **browser** who _interprets_ the source code ### List of Web browsers As the Web has become the primary use of the internet, every computer and smartphone comes with a default browser installed. The most popular ones are: * [](http://www.google.com/chrome/) **Chrome** * [](https://www.mozilla.org/firefox/) **Firefox** * [](https://www.microsoft.com/download/internet-explorer.aspx) **Internet Explorer** * [](http://www.opera.com/) **Opera** * [](http://www.apple.com/safari/) **Safari** {: .software} ### List of text editors The most popular ones are: * [](https://notepad-plus-plus.org/) **Notepad++** * [](http://www.sublimetext.com/) **Sublime Text** {: .software} You will need to install one to **write** HTML and CSS. While the rest of this tutorial doesn't require to write any code, it's **recommended** to try out the examples yourself.