Computer Science, asked by uraj615, 9 months ago

HTML Code how to do create a HTML

Answers

Answered by rasbinsoundlines
3

Answer:

<!DOCTYPE html>

<html>

  <head>

      <title>My Webpage Title</title>

  </head>

  <body>

       <h1>My first heading</h1>

  <body>

</html>

Explanation:

You need a code editor like Visual Studio Code / Sublime Text Editor etc to write HTML code. You can save the code above in a file name index.html.

Then, open this file index.html in your web browser like Chrome / Firefox / Safari. You will see the result in your browser.

Here is a good explanation with example :

https://codewithrasbin.com/html-for-beginners-course-lesson-4-how-to-display-some-content-on-web-page/

Hope this helps!

Answered by VISHALKUMARV22
3
  1. Open Notepad (PC).
  2. Write Some HTML (see attachment).
  3. Save the HTML Page.
  4. Name the file "index.html" and set the encoding to UTF-8 (which is the preferred encoding for HTML files).
  5. View the HTML Page in Your Browser.
Attachments:
Similar questions