Someone asked me how to make a webpage. An HTML document is the most basic thing in making a webpage. So here's its basic structure.
Step 1: Create an index.html file. It should have the following codes.
You should see "Just a sample content" text in your web browser when you run this. Then for HTML5, the same principles apply, it's just there are more on it.
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Your Website</title> </head> <body> <header> <nav> <ul> <li>Menu Option 1</li> <li>Menu Option 2</li> </ul> </nav> </header> <section> <article> <header> <h2>Content Title</h2> <p>Posted on <time datetime="2003-01-01T16:31:24+02:00">January 1st, 2013</time> by <a href="#">Mike</a> - <a href="#comments">173 comments</a></p> </header> <p>Some content of the article here.</p> </article> </section> <aside> <h2>The Blogger</h2> <p>This is your side bar. You can add your information or links here.</p> </aside> <footer> <p>Copyright 2013 - Your name</p> </footer> </body> </html>