Question: Activity 1 0 - 6 : Creating Web Pages with HTML 1 ) If the terminal window is still open, switch to the root user.
Activity : Creating Web Pages with HTML
If the terminal window is still open, switch to the root user. If you dont have a terminal window open or if
VMware Player isnt running, follow Step in Activity
Change to the directory designated to hold Web pages DocumentRoot by typing cd srvwwwhtdocs
and pressing Enter. This is the default DocumentRoot directory. Explain how you can change the
DocumentRoot directory
To create and edit a new HTML file, type vim homepage.html and press Enter.
Switch to insert mode by typing i Type and press Enter.
Type and press Enter.
Specify your name as the Web page title by typing FirstName LastName substituting
your own first and last names When youre done, press Enter, and then type and press Enter.
To start the body section, type and press Enter
Type This is my Web page and press Enter.
To allow users to click a link to get back to the index.html page, type Click here to go back to the main page! and press Enter. What would have happened
if you had omitted the tag?
To end the body section, type and press Enter.
Type Your HTML code should look like the following:
your name
This is my Web page
Click here to go back to the main page!
Save the script by entering last line mode and typing wq
To edit the index.html file so that you can click a link to access the homepage.html file, type vim
index.html and press Enter.
When the index.html file opens in vim, clean up the display to make it look like Figure shown
previously.
Display line numbers by typing set nu and pressing Enter.
Move the cursor to line type i to switch to insert mode, and press Enter.
Move the cursor to line and type Click here to go to your Web
page! Now save the file, which should look like the following:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
