make a simple website

Make a simple website

  1. Open a text editor like notepad in your computer.
  2. Copy & paste below code to your text editor.
  3. <html> <head> <div>Head section of my first website</div> </head> <body> <div>Body section of my first website</div> </body> </html>
  4. save this text as "test.html"(without "")
  5. Find test.html file location in your computer.
  6. right click on test.html file and open with and web browser
you will see,
Head section of my first website
Body section of my first website
This is the basic of web development. Let's look at the code. We can see all content are between "<html> </html>" this() is the main tag of an html file. Note:ending tag has "/" before "html".we should use this for every ending tags(ex:</head></body>)

head tag

head section of the website is go to between head tags

body tag

body section of the website is go to between body tags

div(division) tag

This tag use to show a content section.we can use this tag everywhere and any within head or body tag.

Next you will learn more tags

No comments:

Post a Comment