Horje

Tips (Total 6)


# Tips-1) How to edit HTML Code

Web pages can be created and modified by using professional HTML editors.

However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit (Mac).

We believe that using a simple text editor is a good way to learn HTML.

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

Use follow Practice Button to Edit HTML Code

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>


# Tips-2) How to edit HTML Code using Notepad (PC)

Windows 8 or later:

Open the Start Screen (the window symbol at the bottom left on your screen). Type Notepad.

Windows 7 or earlier:

Open Start > Programs > Accessories > Notepad


# Tips-3) How to edit HTML Code TextEdit on Mac

Open Finder > Applications > TextEdit

Also change some preferences to get the application to save files correctly. In Preferences > Format > choose "Plain Text"

Then under "Open and Save", check the box that says "Display HTML files as HTML code instead of formatted text".

Then open a new document to place the code.


# Tips-4) How to Write Some HTML Code

Follow ways to write some HTML Code

Write or copy the following HTML code into Notepad:

index.html
Example: HTML
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

Output should be:

Write or copy the following HTML code into Notepad:

# Tips-5) How to save HTML Page

Simply Save HTML Page in your Desktop.

Open a TXT file and Write or Paste Some HTML Code into Notepad

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

Then, Click on File and Click on Save As.. from top menu of Notepad

Output should be:

Then, Click on File and Click on Save As.. from top menu of Notepad

Now, Set Name the file "index.htm" and set the encoding to UTF-8 (which is the preferred encoding for HTML files).

Output should be:

Now, Set Name the file

# Tips-6) How to View HTML Page in Your Browser

The tutorial was give in Following Page.

Click on How to view a HTML Page in Web Browsers