DISCUSSION 5 OVERVIEW
HTML – Basic HTML Exercises Using Notepad
In this discussion you will use Microsoft NotePad to create a simple personal web page and post it as your initial post for all your classmates to see and respond to it. Begin by following the steps below.
1 – Creating a directory (folder) and your initial Notepad file
- Create a folder on your desktop to save your HTML pages in (call it “My web page“)
- Start Notepad. Type the document tags below in your Notepad file.
- This file will ultimately be your Homepage file.
2 – Now save the Notepad file to the HTML directory you created (the “My web page” folder)
- Save your Notepad file in your HTML directory and name it index.txt.
- Now close your index.txt file and then in the HTML directory folder rename the file index.html within the folder.
- You can change the extension .txt of your Notepad file to .html to view the file and back to .txt to edit your progress as you start adding your HTML code.
- NOTE: Opening your Notepad file with the .html extension will open it in the default internet browser installed in your computer to view it as a web page. Opening the file with the .txt extension will open the file in Notepad for editing.
Enter your custom title by typing it between the <title> and the </title>
- for example: <title>My First Website</title>
3 – Add a heading that is bold & in italics
- Place the cursor immediately under the <body> tag. Press Enter to create a line, if needed.
- Type <h1> (Heading 1), <b> (bold), <i> (italics) then your choice of heading name. For example: <h1><b><i>Your Name: This is my first homepage
- After typing in the heading name, you must close the heading by typing </b> (end bold), </i> (end italics), </h1> (end heading 1).
- Your finished heading line should look like this
4 – Add an image or picture
- You may use any image or picture you like. If you don’t know where to get one, do Google search for a picture you like. Once you have found the image or picture you like, save it in the “My web page” folder.
- Enter a new line under the Heading you created above and type the following line:
- <img src= (this stands for Image Source)
- “the_title_of_your_image.jpg” (this name and extension needs to reflect the actual name ad extension of your image or picture)
- hspace=5 (specifies the amount of space on either side of image)
- You may change the specs of the width, height, hspace and border as you wish for aesthetic purposes later.
- Your image or picture line should look like this:
- If the image or picture is not in the “My web page” folder, the webpage will not know where to look.
- Make sure to place the picture in the “My web page” folder with the index.html file.
- NOTE: If the image is changed and is given the same name and extension, the new picture will automatically reflect in the web page.
5 – Add a horizontal rule
- Place the cursor immediately under the image or picture line (step 4), press Enter to create a line, if needed.
- Add a horizontal rule tag: <hr>
6 – Add a paragraph
- Place the cursor immediately under the horizontal rule tag (step 5), press Enter to create a line, if needed. Type the following line:
- <font color=#000000> (sets the color for the text in the paragraph)
- You have many color choices to use. The following link lists a few: http://www.w3schools.com/html/html_colornames.asp (Links to an external site.)
- <p> (this begins a paragraph)
- Type your text, “This is my first web page. When it’s finished it will include:” (no quotes)
- </p> (this ends a paragraph)
- Your new paragraph line should look like the following:
7 – Add an unordered list
Place the cursor immediately under the horizontal rule tag (step 6), press Enter to create a line, if needed. Type the following line:
- <font color=#B4045F> (sets the font color of the unordered list, many choices: http://www.w3schools.com/html/html_colornames.asp (Links to an external site.)
- <ul> (begins the unordered list)
- <li>Movies (bullet item 1)
- <li>Games (bullet item 2)
- <li>Music (bullet item 3)
- </ul> (ends the unordered list)
- Your new unordered list line should look like the following:
8 – Change the background color
- Place the cursor immediately under the unordered list line (step 7), press Enter to create a line, if needed. Type the following line:
- (choose any color, you have many choices: http://www.w3schools.com/html/html_colornames.asp (Links to an external site.)
9 – Add a Hyperlink
- Place the cursor immediately under the background color line (step 8). Press Enter to create a line, if needed. Type the following lines:
- <a href= (stands for Hypertext Reference)
- “http://www.grossmont.edu”> (quotes included)
- I’m currently attending Grossmont College</a>
- Press enter then type, <p><br>
- Press enter then type, </p>
- Your new unordered list line should look like the following three lines:
10 – End your HTML tags
- Place the cursor immediately under the </object> line (step 9), press Enter to create a line, if needed. Make sure the following tags are the last tags of your code:
- </body> (ends the editing to the body of the page)
- </html> (ends the HTML code for the page)
- Your end tag lines should look like the following:
11 – Check your code
Your entire block of code should look similar to the code in the image below.
12 – Save the page and view it
- Click save. If you haven’t saved it already, please save it in the “My web page” folder.
- Make sure it has been saved as index.html.
- Double click and open the index.html file. This will open up the browser for you to view your webpage so far. You should see your new page appear in the browser, looking something like the example below.
- REMEMBER: You should change the extension of your Notepad file from .txt to .html often to make sure you’re on the right path.
13 – Copy & Paste your code
You will Copy & Paste your code in the HTML Editor feature within this Canvas discussion, so we can all see your page without having to download a file. Read the following article for instructions on using the HTML Editor: HTML Editor (Links to an external site.)
14 – Resource Sites for your reference
HEX Color Codes for HTML: http://www.w3schools.com/html/html_colornames.asp (Links to an external site.)
HTML Tags: http://www.w3schools.com/html/default.asp (Links to an external site.)
DISCUSSION 4 GRADING CRITERIA
- Please refer to the Discussion Board Rules for details on earning full credit: Discussion Board Rules
- Make your initial post of 100 words or more answering and elaborating on the questions above.
- Must meet college level writing.
- Make sure that your postings do not have spelling errors, incomplete sentences, and formatting.
- Please make sure to run a spell check on it before submitting it.
- Reply to 2 or more of your classmates with 50 words or more.
"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you A results."