Did you know that if you type up some HTML in Notepad, you can save it in a way that it opens up in your browser, like a website? It won't be a fully fledged public site unless you turn it into one, but you can still see the effect of your HTML in your own private browser. HTML is the markup language of the entire Web, being one of the core components along with CSS and JavaScript.

Steps

  1. 1
    Open your code in Notepad.
  2. 2
    Type at the top of your code.
    Advertisement
  3. 3
    Go to the bottom of your code and type .
  4. 4
    Click on "File" and "Save as" to make a new copy of your code.
  5. 5
    Save as whatever you want.
  6. 6
    When you open the new version of your code, it will look like a website that applies the HTML you've written to the page.
  7. Advertisement

Community Q&A

  • Question
    How do I add audio and video in HTML to my first website?
    Community Answer
    Community Answer
    The HTML element is used to embed sound content in documents. It may contain one or more audio sources, represented using the SRC attribute or the element, the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.
  • Question
    Can I edit the HTML file after saving it?
    Community Answer
    Community Answer
    Yes! Just go to the original text document, edit it, and then save it. All new changes will be seen on the website.
  • Question
    I followed the instructions correctly, but it doesn't seem to work. How can I fix this?
    Community Answer
    Community Answer
    Either repeat Step 5 while making sure to add ".html" at the end of the file's name and select "All Files (*.*)" or verify that your code is correct without any errors.
Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 9 people, some anonymous, worked to edit and improve it over time. This article has been viewed 208,404 times.
How helpful is this?
Co-authors: 9
Updated: August 11, 2022
Views: 208,404
Advertisement