Lesson Practice 1-1: Set up Notepad
& Create First Webpage Files
Notepad++
Task 1: Download and Install Notepad++
- Click the document link at the right and save it to your home desktop.
- Double-click the file icon to start the installation process.
- Choose English as the language.
- Click Next and Agree until you reach the Install button. On this page, click on the check box to put a shortcut on the desktop, then click Install.
- During the install process, it will hang up on many files - just keep clicking Ignore (yes, I know there are a lot of them - it will still work).
- When the install process is complete, open the program. Click on the Language tab and choose H, then HTML. This will tell the program to color-code your html documents to make them easy to work with.
Task 2: Create an HTML Template
Every webpage you create needs the same basic elements to begin. Rather than repeatedly typing this information, you will create a 'template' file, which is a blank webpage with just the structure elements included. You can then open this file each time you need a new one and then save it with the new filename.
- Open Notepad++ if necessary. (There should be a shortcut on your desktop.)
- In the file menu, choose Save As...
- Navigate to your Home directory and create a new folder named WD, or WebDesign.
- Switch to your new folder and save the blank file using the filename template.htm
- At the top of the page, type the opening page tag <html> and press enter.
- Add the header element: <head> </head>
- Place your cursor between the two tags and press Enter twice.
- Inside the header element key <title> </title>
- Place your cursor between the two tags and press Enter twice.
- After the closing head tag, press Enter twice.
- Key <body> </body> and press Enter three times between the tags and twice after.
- Finally, type the page closing tag </html>
- You should see that there is now plenty of space to separate the parts of your webpage. Keeping plenty of spacing helps you to read your webpages.
- Save.
Task 3: Create your first web page.
- If necessary, open template.htm in notepad++ and immediately resave it in your WebDesign folder as page1.htm
- Between title tags, type My First HTML Web Page
- On the second blank line after the opening body tag, type This is my very first Web page!
- Save the document.
- Open the page in Internet Explorer and
Task 4: Preview your page in your browser
- Method 1:
- With the file open in Notepad++, click the Run menu.
- Choose Launch in IE from the list.
You could choose a different browser if it is installed on your computer.
- Admire your page! Note that the title element appears on the title bar of the browser.
- Alternate Method 1:
- From your browser (IE), select File, Open
- Navigate to and choose the file you wish to view. Double-click it or right-click it and click the Open button.
- Alternate Method 2:
- From Windows Explorer (or My Computer), locate the file you want
to view.
- Double-click the file and it will open in your default browser.
|