You know HTML stand for Hyper text markup language that allow you to create a Non-structured web page, the browser understand hyper text language so basically you need to know how to start coding in HTML.
In order to write your HTML code you should make a hands on practice with the following codes below
<!DOCTYPE html>
<html>
<head>
<title>Your Page Title</title>
</head>
<body>
<h1>Your Heading parts</h1>
<p>Your paragraph parts.</p>
<img src="" Alt="picture">
</body>
</html>
<html>
<head>
<title>Your Page Title</title>
</head>
<body>
<h1>Your Heading parts</h1>
<p>Your paragraph parts.</p>
<img src="" Alt="picture">
</body>
</html>
Now I let you know what these code represent to and why they are important to include in your HTML codes.
The very first term is <! Doctype html> this is nothing but represent to document while HTML is the entire body of a webpage. All the codes are written inside <HTML> all codes</HTML>.
Do you see HTML codes are used by open and closing bracket? , you have to use this sign "< " for open bracket while this sign "</>" should be used as a closing bracket.
However there are some HTML codes they don't require closing bracket such as <img tag> you will learn all those codes which may require closing tag and opening tag.
if a HTML code is written inside <p> this is called opening tag, while </p> represent to closing tag, so majority of HTML codes are written inside opening and closing tag.
Write First Hello world in HTML
Since HTML has to be written with the following code you see below -
<!DOCTYPE html>
<html>
<head>
<title>My first Webpage</title>
</head>
<body>
<h1>How to write hello world?</h1>
<p>Hello World</p>
</body>
</html>
<html>
<head>
<title>My first Webpage</title>
</head>
<body>
<h1>How to write hello world?</h1>
<p>Hello World</p>
</body>
</html>
You have written your first Hello world code in HTML successfully!
Now you should know about tags there are a number of HTML tags that we use to create a stupendous webpage, so here is the guide to understand about HTML tag.
Conclusion- With the help of this article we have learned how to write our first hello world code in HTML, you have to understand HTML tag and how they are used in HTML so that you can write your HTML very easily, we hope you like this article, please don't forget to share this article with your friends.
0 comments:
Post a Comment