Tue. Mar 19th, 2024

HTML Introduction

First code HTML

 

<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>

 

Writing HTML Using Notepad or TextEdit

HTML can be edited by using a professional HTML editor like:

  • Adobe Dreamweaver
  • Microsoft Expression Web
  • CoffeeCup HTML Editor

However, for learning HTML we recommend a text editor like Notepad (PC) or TextEdit (Mac). We believe using a simple text editor is a good way to learn HTML.

Follow the 4 steps below to create your first web page with Notepad.


Step 1: Start Notepad

To start Notepad go to:

Start
All Programs
Accessories
Notepad


Step 2: Edit Your HTML with Notepad

Type your HTML code into your Notepad:


Step 3: Save Your HTML

Select Save as.. in Notepad’s file menu.

When you save an HTML file, you can use either the .htm or the .html file extension. There is no difference, it is entirely up to you.

Save the file in a folder that is easy to remember.


Step 4: Run the HTML in Your Browser

Start your web browser and open your html file from the File, Open menu, or just browse the folder and double-click your HTML file.

 

4,910 total views, 2 views today

Leave a Reply