How to Create a Very Simple Basic Web Page

Published: 10th August 2011
Views: N/A
Ask About This Article Print Republish This Article
You can create simple web pages without the need for special software, but there some key things to do need to have or know.

•Notepad or some other text editor.

•Know what type of webpage you are going to create, e.g. html, php, asp.

•You need have the will power to learn some basic html coding.

After you have installed and open Notepad or another text editor they are some key ingredients that go in to make a valid website.

•When using HTML tags you need to remember what you open has to be closed.

•All Tags are in lower casing e.g. is correct but isn't.

•When linking to files or different URL address to place the link inside speech marks.


That's the real basics that you need to know about creating a web page. So lets start on the fun part now, creating the web page.

To create the page that allows people to view it you have to start you page with this coding

This allows for peoples browsing software to pick up that the file they are viewing is a html file and there is contents to be shown.


As stated before what tags you open you have to close so at the end of your web page you have to have this code.

If you notice when using tag they are closed in reviser order meaning the last one opened is the first one closed e.g. my heading

Once you learn that then creating a web page becomes a lot easier. Now for the more interesting part, when you have your main html and body tags set up you can start formatting the layout of your page and inserting images.

my heading

You see the code before that uses the tags strong and h1 these are text/word changing tags the strong tag makes the text bold and the u tag underlines the text.

So if you put together the code we have used so far you page will look like.



my heading



This will display a plain page with the words "my heading" on it that is bold and underlined. This is very simple stuff it can help you learn a lot more when you understand how the tagging works and how to layout your html coding.

If you are going to create PHP files then you will still need the HTML tags in but then when you start to use your PHP code you will need to open and close the tags like other normal tags but PHP is dfferent slightly in that when you open the tag you don't put brackets around it e.g.



If you look closely at the tags you will notice that they open and close with a question mark and the php after the question mark is just there to tell the web browser that the code that follows is php some times the php part after the question mark can be left out but this is bad practice and shouldn't really be done.

So if you wanted to create a simple php web page then your code would look like this







This code and the code above would produce the exactly the same page. The only thing that would be changing is the file name of the pages, the plain HTML page name would be index.html and the PHP coded page will have the fail name index.php this is to tell the web browser what type of file is being viewed. If you don't change the file name for the PHP coding page the PHP scripts that you use will not be processed and wont work.

Advice provided by Nick Hatton of L1 Computers providing Liverpool PC repair and Liverpool laptop repair with a service you are sure to be pleased with.

This article is free for republishing
Source: http://nickhatton.articlealley.com/how-to-create-a-very-simple-basic-web-page-2329630.html


Report this article Ask About This Article Print Republish This Article


Loading...
More to Explore
 


Ask a Professional Online Now
27 Experts are Online. Ask a Question, Get an Answer ASAP.
Type your question here...
Optional:
Select...