Download ArticleDownload Article

If you prefer to code websites by hand, you can edit HTML files in a basic text editor like Notepad (Windows) or TextEdit (macOS). If you would rather be able to move elements around on the screen and see live previews, you can use a WYSIWYG (What You See Is What You Get) editor like Dreamweaver or Kompozer. This How.com.vn teaches you how to open and edit an HTML file in a standard or visual editing app.

Method 1
Method 1 of 4:

Using a Notepad on Windows

Download Article
  1. How.com.vn English: Step 1 Click the Windows Start button icon.
    It's the button that has a Windows logo in the task bar. By default, it's in the lower-left corner. This displays the Start menu
  2. How.com.vn English: Step 2 Type Notepad.
    This displays Notepad in the Start menu.
    Advertisement
  3. How.com.vn English: Step 3 Click Notepad.
    It has an icon that resembles a notepad with a blue cover.
  4. How.com.vn English: Step 4 Click File.
    It's at the top of the menu bar in Notepad. This displays a drop-down menu. This displays a file browser you can use to open files in Notepad.
  5. How.com.vn English: Step 5 Click Open.
    It's the second option in the File drop-down menu.
  6. Step 6 Select "All files" in the file type drop-down menu.
    Click the drop-down that says "Text Documents (.txt)" and select "All files" in the drop-down menu. This displays all document types (including HTML files) in the file browser.
  7. How.com.vn English: Step 7 Select an HTML file and click Open.
    This opens the HTML document in Notepad. You can edit the HTML code in Notepad.
  8. How.com.vn English: Step 8 Edit the HTML code.
    In order to edit HTML in Notepad, you'll need to learn HTML so that you can edit it by hand. Common elements you can edit include the following.
    • <!DOCTYPE html>: This goes at the top of the HTML document. This tells the web browser that this is an HTML document.
    • <html></html>: These tags go at the top and bottom of the HTML document. This indicates where the HTML code starts and stops.
    • <head></head>: These tags go at the top of the HTML document. They indicate where the head of the HTML document starts and stops. The head of the HTML document contains information that is not seen on the web page. This includes the page title, metadata, and CSS
    • <title>Page Title</title>: These tags indicate the title the page. The title goes in the head of the HTML document. Type the title of the page in between these two tags.
    • <body></body>: These tags indicate where the body of the HTML document starts and stops. The body is where all the web page content is written. The body comes after the head in the HTML document.
    • <h1>Headline Text</h1>: These tags create headline tags. The text in between the "<h1>" and "</h1>" tags appears as a large bold text. Text goes in the body of the HTML document.
    • <p>Paragraph Text</p>: These tags are used to create paragraph text in an HTML document. The text that goes in between "<p>" and "</p>" appears as normal sized text. Text goes in the body of the HTML document.
    • <b>Bold Text</b>: These tags are used to create bold text. The text that goes in between "<b>" and "</b>" appears as bold text.
    • <i>Italic Text</i>: These tags are used to create italic text. The text that goes in between "<i>" and "</i>" appears as itallic text.
    • <a href="URL">Link text</a>: This tag is used to link to another website. Copy the web address you want to link to and paste it where it says "URL" (in between the quotation marks). The the text for the link where it says "Link text" (no quotation marks needed).
    • <img src="image URL">: This tag is used to post an image using HTML. Replace teh text that says "image URL" with the web address of the image.
  9. How.com.vn English: Step 9 Click File.
    It's in the menu bar at the top of the screen.
  10. How.com.vn English: Step 10 Click Save As.
    This opens a dialogue box you can use to save your file.
    • To save the file as it's existing name and file type, just click Save in the drop-down menu below "File".
  11. Step 11 Select "All Files".
    Use the drop-down menu next to Save as Type" to select "All Files".
  12. How.com.vn English: Step 12 Type a name for the file.
    Use the box next to "File Name" to type a name for the file.
  13. How.com.vn English: Step 13 Type .html at the end of the file.
    After you type a name for the file in the "File Name" box, add the extension ".html" at the end of the file name. Without this extension, it will save the file as a .txt file, instead of an HTML file.
  14. How.com.vn English: Step 14 Click Save.
    This saves the file.
  15. Advertisement
Method 2
Method 2 of 4:

Using TextEdit on Mac

Download Article
  1. How.com.vn English: Step 1 Click the magnifying glass icon icon.
    It's in the upper-right corner of the Mac desktop. This displays a search bar.
  2. How.com.vn English: Step 2 Type TextEdit in the search bar.
    This displays a list of apps that match your search result.
  3. How.com.vn English: Step 3 Click TextEdit.app.
    It's at the top of the search results. It's next to an icon that resembles a sheet of paper and a pen.
  4. How.com.vn English: Step 4 Click File.
    It's at the menu bar at the top of the screen when TextEdit is open.
  5. How.com.vn English: Step 5 Click Open.
    This opens a file browser you can use to navigate your Mac and open files.
  6. How.com.vn English: Step 6 Click an HTML file and click Open.
    HTML files have an extension that says ".html" after the file name. Use the file browser to navigate to an HTML file and click it to select it. Then click Open to open the HTML file in TextEdit.
  7. How.com.vn English: Step 7 Edit the HTML code.
    You can use TextEdit to edit HTML code on make. You need to learn HTML so that you can edit it by hand. Common elements you can edit include the following.
    • <!DOCTYPE html>: This goes at the top of the HTML document. This tells the web browser that this is an HTML document.
    • <html></html>: These tags go at the top and bottom of the HTML document. This indicates where the HTML code starts and stops.
    • <head></head>: These tags go at the top of the HTML document. They indicate where the head of the HTML document starts and stops. The head of the HTML document contains information that is not seen on the web page. This includes the page title, metadata, and CSS
    • <title>Page Title</title>: These tags indicate the title the page. The title goes in the head of the HTML document. Type the title of the page in between these two tags.
    • <body></body>: These tags indicate where the body of the HTML document starts and stops. The body is where all the web page content is written. The body comes after the head in the HTML document.
    • <h1>Headline Text</h1>: These tags create headline tags. The text in between the "<h1>" and "</h1>" tags appears as a large bold text. Text goes in the body of the HTML document.
    • <p>Paragraph Text</p>: These tags are used to create paragraph text in an HTML document. The text that goes in between "<p>" and "</p>" appears as normal sized text. Text goes in the body of the HTML document.
    • <b>Bold Text</b>: These tags are used to create bold text. The text that goes in between "<b>" and "</b>" appears as bold text.
    • <i>Italic Text</i>: These tags are used to create italic text. The text that goes in between "<i>" and "</i>" appears as itallic text.
    • <a href="URL">Link text</a>: This tag is used to link to another website. Copy the web address you want to link to and paste it where it says "URL" (in between the quotation marks). The the text for the link where it says "Link text" (no quotation marks needed).
    • <img src="image URL">: This tag is used to post an image using HTML. Replace teh text that says "image URL" with the web address of the image.
  8. How.com.vn English: Step 8 Click File.
    It's in the menu bar at the top of the screen.
  9. How.com.vn English: Step 9 Click Save.
    It's in the drop-down menu below "File". This saves the HTML file.
    • To change the name of the file, click Rename in the "File" drop-down menu. Type a new name for the file at the top of the screen. Be sure to include the ".html" extension at the top of the page.
  10. Advertisement


Method 3
Method 3 of 4:

Using Dreamweaver

Download Article
  1. How.com.vn English: Step 1 Open Dreamweaver.
    Dreamweaver has an icon that resembles a green square that says "Dw" in the middle. Click the icon in the Windows Start menu, or Application folder on Mac to open Dreamweaver.
    • Adobe Dreamweaver requires a subscription. You can purchase a subscription starting at $20.99 a month.
  2. How.com.vn English: Step 2 Click File.
    It's in the menu bar at the top fo the screen.
  3. How.com.vn English: Step 3 Click Open.
    It's in the drop-down menu below "File".
  4. How.com.vn English: Step 4 Select an HTML document and click Open.
    Use the file browser to select an HTML document on your computer and click it to select it. Then click Open in the lower-right corner.
  5. How.com.vn English: Step 5 Click Split.
    It's the middle tab at the top of the page. This displays a split screen that contains an HTML editor on the bottom and a preview screen on top.[1]
  6. How.com.vn English: Step 6 Edit the HTML document.
    Use the HTML editor to edit HTML. The way you edit HTML in Dreamweaver isn't too different from editing HTML in Notepad or TextEdit. As you type an HTML tag, a search menu will appear with matching HTML tags. You can click the HTML tag to insert its opening and closing tags. Dreamweaver will check to make sure there are opening and closing tags for all your HTML elements.
    • Alternatively, you can click where you want to insert an HTML element in the HTML editor and click Insert in the menu bar at the top of the screen. Click the item you want to insert in the drop-down menu to add the HTML code automatically.
  7. How.com.vn English: Step 7 Click File.
    When you are done editing the HTML document, click File in the menu bar at the top of the screen.
  8. How.com.vn English: Step 8 Click Save.
    It's in the drop-down menu below File. This saves your HTML document.
  9. Advertisement
Method 4
Method 4 of 4:

Using Kompozer

Download Article
  1. How.com.vn English: Step 1 Go to https://sourceforge.net/projects/kompozer/...
    Go to https://sourceforge.net/projects/kompozer/ in a web browser. You can use any web browser on PC or Mac. This is the download page for Kompozer. It is a free HTML (WYSIWYG) editor that works on both Windows and Mac.
  2. How.com.vn English: Step 2 Click Download.
    It's the green button near the top of the page. This takes you to a separate download page. After a 5 second delay, your download will begin.
  3. How.com.vn English: Step 3 Double-Click the Install file.
    By default, your downloaded files can be found in your "Downloads" folder on PC or Mac. You can also click on them in your web browser to launch the Kompozer installer. Use the following instructions to install Kompozer:
    • Windows:
      • If asked if you want to allow the installer to make changes to your system, click Yes.
      • Click Next in the intro windows.
      • Click the radial button next to "I accept the agreement" and click Next.
      • Click Next to use the default install location or click Browse to select a different install location.
      • Click Next and then click Next again
      • Click Install
      • Click Finish
    • Mac:
      • Double-click the Kompozer install file.
      • Click KompoZer.app
      • Click the Apple icon in the upper-left corner.
      • Click System Preferences
      • Click Security and Privacy
      • Click the General tab.
      • Click Open Anyway near the bottom of the window.
      • Click Open in the pop-up Window.
      • Drag the Kompozer icon to your desktop.
      • Open the Finder.
      • Click the Applications folder.
      • Drag the Kompozer icon from the desktop to the Applications folder.
  4. How.com.vn English: Step 4 Open Kompozer.
    Use the following steps to open Kompozer on PC or Mac
    • Windows:
      • Click the Windows Start menu.
      • Type "Kompozer"
      • Double-click the Kompozer icon.
    • Mac:
      • Click the magnifying glass icon in the upper-right corner.
      • Type "Kompozer" in the search bar.
      • Double-click Kompozer.app.
  5. How.com.vn English: Step 5 Click File.
    It's in the menu bar at the top of the app.
  6. How.com.vn English: Step 6 Click Open File.
    It's the second option in the drop-down menu below "File". This open a file browser you can use to select an open HTML file.
  7. How.com.vn English: Step 7 Click an HTML file and click Open.
    This opens the HTML file in Kompozer.
  8. How.com.vn English: Step 8 Click Split.
    It's the middle tab at the top of the page. This displays a split screen that contains an HTML editor on the bottom and a preview screen on top.
    • You may need to enlarge the app so that you have more room to work.
  9. How.com.vn English: Step 9 Edit the HTML document.
    The HTML source code screen is on the bottom, you can use this screen to edit HTML much the same way you would in Notepad or TextEdit. You can also use the preview screen to edit your HTML using the following steps:
    • Use the drop-down menu in the upper-right corner to select the text type (i.e Heading, paragraph, ect}
    • Click and type to add text.
    • Use the buttons in the panel at the top of the screen to add bold, italics, text alignment, indents, or lists to your text.
    • Click the colored square in the panel at the top of the screen to change the text color.
    • Click the Image icon at the top of the screen to add an image to your HTML document.
    • Click the icon that resembles a chainlink to add a link to your HTML document.
  10. How.com.vn English: Step 10 Click the Save icon.
    Once you are done making changes to your document, click the Save icon at the top of the screen. It's below an icon that resembles a floppy disk. This saves your work.
  11. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      Warnings

      • Remember to save your document while editing. Something could go wrong at any moment.
      Advertisement

      About This Article

      How.com.vn English: Travis Boylls
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Travis Boylls. Travis Boylls is a Technology Writer and Editor for How.com.vn. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College. This article has been viewed 159,169 times.
      How helpful is this?
      Co-authors: 18
      Updated: March 29, 2024
      Views: 159,169
      Categories: HTML
      Article SummaryX

      1. Open Notepad on Windows or TextEdit on Mac.
      2. Click File.
      3. Click Open.
      4. Select "All Files" in the drop-down next to the file name box on Windows.
      5. Click and HTML file to select it and click Open.
      6. Use the text editor to edit the HTML tags.
      7. Click File.
      8. Click Save.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 159,169 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement