CREATING A BASIC WEBPAGE
Before we proceed,let me introduce you to this beautiful girl,her name is tags (feel free to steal her from me):
Few tags to know
*<!DOCTYPE HTML >: This special tag inform the browser that the document type is HTML.You may sometimes see other values for the doctype.
*<html lang = "en"></html>:This tag <html> begins the page and this </html> close the page.They are the foundation of the entire web page.The "en" tell the browser that the page will be written in english.
*<head></head>: These tags define a special part of the web page called the head (or sometimes header).
*<meta charset="UTF-8">:Every HTML5 page written in English uses this code. This tag tells the browser which character set to use,English uses UTF-8.
*<!--/-->: This tag indicates a comment.
*<title></title>: This tag holds the title of the page.
*<body></body>: This tag contains the page's main content.
*<h1></h1>:This tag stands for heading level one.we have h1- h6.
*<p><|p>: This tag hold paragraph.
You probably have everything you need to get started already.
Steps to create your first webpage
1. Open a text editor. You can use any text editor you want, as long as it lets you save files as plain text.
2. Type the following code in your text editor.
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<!-- myFirst.html -->
<title>My first web page!</title>
</head>
<body>
<h1>This is my first web page!</h1>
<p>
This is my first web page,does not
contain much but who cares
It's so cool!
</p>
</body>
</html>
3. Save the file as firstwebpage.html. Make sure the extension is .html and there is no space between the filename.
4.Load your page into the browser. You can open your system browser and drag the file (firstwebpage.html) into the browser or just double-click the file.
5.The last and most important step. Stand up on your feet and shout,my first web page yeeeeaah!
You need only your text editor and a web browser to create a web page.