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.
- <!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
&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;body&gt; &lt;h1&gt;My Website Heading&lt;/h1&gt; &lt;p&gt;This is the Paragraph&lt;/p&gt; &lt;/body&gt; &lt;/html&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>
&lt;h2&gt;Heading 2&lt;/h2&gt; &lt;h3&gt;Heading 3&lt;/h3&gt; &lt;h4&gt;Heading 4&lt;/h4&gt; &lt;h5&gt;Heading 5&lt;/h5&gt; &lt;h6&gt;Heading 6&lt;/h6&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.
&lt;p&gt;This is the First paragraph.&lt;/p&gt; &lt;p&gt;This is the Second paragraph.&lt;/p&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.
&lt;a href=&quot;http://www.probweb.com&quot;&gt;This is the link&lt;/a&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.
&lt;img src=&quot;anchor-image.jpg&quot; alt=&quot;Anchor Image&quot; width=&quot;700&quot; height=&quot;400&quot;&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.
In the Next post, we will learn the CSS stylesheet for this HTML document.