Skip to content

Commit fc4884d

Browse files
committed
Visual Studio Code image added
1 parent c823441 commit fc4884d

File tree

2 files changed

+39
-19
lines changed

2 files changed

+39
-19
lines changed

courses/html/basic/image.png

158 KB
Loading

courses/html/basic/setting-up-html-environment.md

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,22 @@ title: Setting Up HTML Environment
44
sidebar_label: Setting Up HTML Environment
55
sidebar_position: 2
66
description: "Learn how to set up your HTML development environment and create your first HTML file."
7-
tags: [html courses, web development in html courses, html basic, html environment, setting up html environment]
8-
keywoards: [html courses, web development in html courses, html basic, html environment, setting up html environment]
7+
tags:
8+
[
9+
html courses,
10+
web development in html courses,
11+
html basic,
12+
html environment,
13+
setting up html environment,
14+
]
15+
keywoards:
16+
[
17+
html courses,
18+
web development in html courses,
19+
html basic,
20+
html environment,
21+
setting up html environment,
22+
]
923
author: [CodeHarborHub, Ajay Dhangar]
1024
---
1125

@@ -38,6 +52,12 @@ You can choose any text editor based on your preference and install it on your c
3852

3953
We recommend using **Visual Studio Code** as it is a popular text editor for web development and has many features that make it easy to write and edit HTML code.
4054

55+
**Visual Studio Code** is a free source code editor developed by Microsoft. It has built-in support for HTML, CSS, and JavaScript, as well as extensions that can enhance your web development experience. You can download Visual Studio Code from the official website: [https://code.visualstudio.com/](https://code.visualstudio.com/).
56+
57+
<BrowserWindow url="https://code.visualstudio.com/" bodyStyle={{padding: 0}}>
58+
[![Visual Studio Code](./image.png)](https://code.visualstudio.com/)
59+
</BrowserWindow>
60+
4161
:::
4262

4363
### Step 2: Install a Web Browser
@@ -68,7 +88,7 @@ We recommend using **Google Chrome** as it is a popular web browser with good de
6888
To set up your HTML environment with Visual Studio Code, follow these steps:
6989

7090
1. Install Visual Studio Code on your computer. You can download Visual Studio Code from the official website: [https://code.visualstudio.com/](https://code.visualstudio.com/).
71-
2. Open Visual Studio Code.
91+
2. Open Visual Studio Code.
7292
3. Create a new file by clicking on `File` $\rightarrow$ `New File`.
7393
4. Save the file with the `.html` extension, such as `index.html`.
7494
5. Write your HTML code in the file.
@@ -88,27 +108,27 @@ To create your first HTML file, follow these steps:
88108
2. Create a new file and save it with the `.html` extension, such as `index.html`.
89109
3. Write the following HTML code in the file:
90110

91-
```html title="index.html"
92-
<!DOCTYPE html>
93-
<html>
94-
<head>
95-
<title>My First Web Page</title>
96-
</head>
97-
<body>
98-
<h1>Hello, World!</h1>
99-
<p>Welcome to my first web page.</p>
100-
</body>
101-
</html>
102-
```
111+
```html title="index.html"
112+
<!DOCTYPE html>
113+
<html>
114+
<head>
115+
<title>My First Web Page</title>
116+
</head>
117+
<body>
118+
<h1>Hello, World!</h1>
119+
<p>Welcome to my first web page.</p>
120+
</body>
121+
</html>
122+
```
103123

104124
4. Save the file.
105125
5. Open the HTML file in your web browser to view the web page.
106126
6. You should see the following output in your web browser and try to use url `http://127.0.0.1:5500/index.html` to view the web page:
107127

108-
<BrowserWindow url="http://127.0.0.1:5500/index.html">
109-
<h1>Hello, World!</h1>
110-
<p>Welcome to my first web page.</p>
111-
</BrowserWindow>
128+
<BrowserWindow url="http://127.0.0.1:5500/index.html">
129+
<h1>Hello, World!</h1>
130+
<p>Welcome to my first web page.</p>
131+
</BrowserWindow>
112132

113133
In this example, the HTML file contains the following elements:
114134

0 commit comments

Comments
 (0)