Probweb Website How to Create a Simple HTML Document on Notepad

How to Create a Simple HTML Document on Notepad


Hey, are you the beginner in Website development or you are starting to learn how to create a Static website in a simple notepad Text editor. You need to learn the basics of HTML. In this post, you will learn everything about the basics of HTML documents. Before creating an HTML document you need to download an HTML editor software. I recommend you to download Notepad++

Notepad++ is a very powerful tool for Writing HTML codes. Because you are a beginner then it will help you with writing code. There are many plugins and add-ons available on Notepad++ so you can install them with your Requirements.

HTML Basics:

  • <!DOCTYPE html> = This is the Declaration type of Your document.
  • <html></html> = The HTML documents begins with <html> and ends with </html> tags.
  • <body></body> = Here is the visiple part of Documents between <body> and </body>

Check out the Following code

&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h1&amp;gt;My Website Heading&amp;lt;/h1&amp;gt;
&amp;lt;p&amp;gt;This is the Paragraph&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

The Result of this code will be looks like the following screenshot. HTML Headings:

There is the 6 (Six) type of heading available for HTML documents. These <h1> to <h6>

&amp;lt;h2&amp;gt;Heading 2&amp;lt;/h2&amp;gt;
&amp;lt;h3&amp;gt;Heading 3&amp;lt;/h3&amp;gt;
&amp;lt;h4&amp;gt;Heading 4&amp;lt;/h4&amp;gt;
&amp;lt;h5&amp;gt;Heading 5&amp;lt;/h5&amp;gt;
&amp;lt;h6&amp;gt;Heading 6&amp;lt;/h6&amp;gt;

If you want to create a Paragraph on your HTML document then you need to write <p> tag of your HTML document. See the below code.

&amp;lt;p&amp;gt;This is the First paragraph.&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;This is the Second paragraph.&amp;lt;/p&amp;gt;

Creating a Link to HTML: If you wish to create a Link on your HTML document then you need to write <a href=”yourlink”> code in your HTML document. See the below code.

&amp;lt;a href=&amp;quot;http://www.probweb.com&amp;quot;&amp;gt;This is the link&amp;lt;/a&amp;gt;

Adding an Image to HTML document: If you have an Image and want to add it to your HTML document then you need to add the following code.

&amp;lt;img src=&amp;quot;anchor-image.jpg&amp;quot; alt=&amp;quot;Anchor Image&amp;quot; width=&amp;quot;700&amp;quot; height=&amp;quot;400&amp;quot;&amp;gt;

In this code, you can see the width and height of your Image. You can change the width and height of your image on this code. After adding all of the code on a single HTML document your page will be looks like the following screenshot.

HTML

In the Next post, we will learn the CSS stylesheet for this HTML document.

Leave a Reply

Related Post