Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Overview The purpose of this assignment is to (i) create your myweb.cs.uwindsor.ca domain for this course, (ii) to write your first web site content using

Overview

The purpose of this assignment is to (i) create your myweb.cs.uwindsor.ca domain for this course, (ii) to write your first web site content using a PHP file w/HTML and a CSS file.

Task

myweb.cs.uwindsor.ca

The School of Computer Science has an excellent user-manageable web-based domain and database management system configured using DirectAdmin software. This software will let you manage your own web domains and web sites. To enable and access your web site:

  • Follow the steps in Slides: Using MyWeb and SSHFS to ensure you can log in to Computer Science resources.
  • Go to http://www.myweb.cs.uwindsor.ca/.
  • Click on Manage Web folders, databases and applications with DirectAdmin.
  • Type in your UWinID and password and click the Authenticate button.

This will bring you to the main page of DirectAdmin and this will give you the following web domain (replacing UWINID with your UWinID):

  • http://UWINID.myweb.cs.uwindsor.ca/

Transfer files to/from the web server per class instructions and Slides: Using MyWeb and SSHFS.

If, for some reason you need to re-create your domain, this is how it can be done/redone:

Click the Home button in DirectAdmin. (If you see a list of domains, then click one of them.)

  • Click the Domain Setup link.
  • Click the Add Another Domain link.
  • Type in the domain UWINID.myweb.cs.uwindsor.ca (replacing UWINID with your UWinID).
  • Enable Secure SSL, CGI, and PHP.
  • Click the Create button to create this domain.

The rest of this assignment involves creating your first PHP page (generating some HTML output) and your first CSS file. You will need to place these files in the following myweb.cs.uwindsor.ca location:

  • domains/UWINID.myweb.cs.uwindsor.ca/public_html/ (replace UWINID with your UWinID)

and you will access them using a web browser with these URLs (again replacing UWINID with your UWinID):

  • http://UWINID.myweb.cs.uwindsor.ca/
  • https://UWINID.myweb.cs.uwindsor.ca/

Creating index.php and first.css

When you access the main page of a web site, you typically do not specify a resource or file name after the domain, e.g., you normally write just the domain names, e.g.,

  • http://cbc.ca
  • http://preney.ca
  • http://uwindsor.ca

etc. When the page you specify refers to an entire directory, web servers are configured to look for a file with a default name. The Apache web server is commonly configured to default to names in this form: index.*, where '*' is '.html', '.htm', or '.php'. Since most server-side code in this course will be PHP, you will create your first PHP page in this assignment. This PHP page will output a straight-forward HTML page.

index.html

Start by creating an empty index.html file (or put some minimal HTML in it) in the top directory of your site, i.e.,

  • domains/UWINID.myweb.cs.uwindsor.ca/public_html/index.html (replace UWINID with your UWinID)

Creating an empty index.html file causes the web server to transmit it to the client browser, i.e., accessing the directory will show nothing (or whatever you placed in this file). Many web servers are configured to show the contents of the entire directory (which can be a security and/or privacy issue), so by placing an empty index.html file in this directory, you ensure that the web server will not show the contents of the directory if it is configured to do such. (For this reason, many open source web applications actually have an empty index.html file in every directory to ensure that directory contents are never sent to web clients.)

a1.php

Every PHP page must start with '' must also be provided. The only thing that can be placed between '' is valid PHP code. (If invalid code is written, errors will be output to the web server's logs.)

ASIDE: Your web server logs are accessible via DirectAdmin. After selecting the domain name, click on the Site Summary / Statistics / Logs link, and then select the 100 lines link for Apache Error Log. Remember to periodically reload this page to see any new error messages as you reload web pages.

Since this is your very first PHP page, simply create a file called a1.php (i.e., "a1" for "Assignment 1") using a text editor and place this at the top of the file:

i.e., an empty PHP processing instruction. Since there is no code in it, it will do nothing --but it will be properly processed by the Apache web server.

Anything not placed between '' is simply output as-is. Thus, your task is to create a valid HTML5 web page that is written after ' ?>' which must have in it the following items:

  1. The page's title must be 'My First 60-334 Web Page' (without the quotes). This title must appear in the web browser's title bar when viewing the page. (Hint: Use </strong>.)</li> <li>The page must refer to an <strong>external CSS</strong> file. This file is the only location where the page formatting (e.g., colours, font settings, etc.) will be placed (see below). <ul> <li>This file must be called <strong>a1.css</strong>.</li> </ul> </li> <li>The page must have a title in the body area coded with an <strong><h1></strong> element.</li> <li>The page must have at least <strong>2 images</strong> (JPEGs and/or PNG). (Please resize the pictures to be 640x480 or smaller!)</li> <li>The page must have at least <strong>3 hyperlinks</strong> in it to other web sites.</li> <li>The page must have at least <strong>one table</strong> having at least <strong>2 columns and 3 rows</strong>. (Each table cell must have some valid, even if made up, data.)</li> <li>The page must have at least <strong>1 paragraph</strong> of text. (The paragraph should have at least 2 sentences in it.) <ul> <li>e.g., the paragraph could introduce the web surfer to what the page is about.</li> <li>e.g., the paragraph could be text explaining what is in the table.</li> <li>etc.</li> </ul> </li> </ol> <p>The following must be set in <strong>a1.css</strong> so that the page appears in the web browser as follows:</p> <ul> <li>The web page's <strong>background-color</strong> must be this gray colour: <strong>#222</strong>.</li> <li>The web page's default (text) <strong>color</strong> must be this colour: <strong>#EEE</strong>.</li> <li>All <strong><h1></strong> elements must be centred.</li> <li>All <strong><tr></strong> elements must set the background colour to <strong>#0F0</strong>.</li> </ul> <p>You may, optionally, add HTML5 content to the bottom of the page and experiment with CSS to format other aspects of the page.</p> </div> </section> <section class="answerHolder"> <div class="answerHolderHeader"> <div class="answer-heading"> <h2>Step by Step Solution</h2> </div> <div class="answerReviews"> <div class="starReview"> <div class="starIcon"> </div> <div class="starText"> </div> </div> </div> </div> <div class="answerSteps"> <p>There are <span>3</span> Steps involved in it</p> <div class="step"> <h3>Step: 1</h3> <img src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-text-image.webp" width="759" height="271" alt="blur-text-image" loading="lazy" decoding="async" fetchpriority="low"> <div class="step1Popup"> <h3>Get Instant Access to Expert-Tailored Solutions</h3> <p>See step-by-step solutions with expert insights and AI powered tools for academic success</p> <button class="view_solution_btn step1PopupButton">View Solution</button> </div> </div> <div class="step"> <h3 class="accordion">Step: 2</h3> <div class="panel"> <img src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp" width="975" height="120" alt="blur-text-image" loading="lazy" decoding="async" fetchpriority="low"> <button class="view_solution_btn stepPopupButton">Sign Up to view</button> </div> </div> <div class="step"> <h3 class="accordion">Step: 3</h3> <div class="panel"> <img src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp" width="975" height="120" alt="blur-text-image" loading="lazy" decoding="async" fetchpriority="low"> <button class="view_solution_btn stepPopupButton">Sign Up to view</button> </div> </div> </div> </section> </div> <div class="expertRight"> <section class="AIRedirect"> <div class="AIHolder"> <h2>Ace Your Homework with AI</h2> <p>Get the answers you need in no time with our AI-driven, step-by-step assistance</p> <a class="AILink" href="/ask_ai">Get Started</a> </div> </section> <section class="relatedBook"> <div class="bookHolder" > <div class="relatedBookHeading" > <h2>Recommended Textbook for</h2> <object class="freeTagImage" type="image/svg+xml" data="https://dsd5zvtm8ll6.cloudfront.net/includes/images/rewamp/document_product_info/free.svg" name="free-book-icon"></object> </div> <div class="bookMainInfo" > <div class="bookImage" > <a href="/textbooks/sql-antipatterns-avoiding-the-pitfalls-of-database-programming-1st-edition-9781680508987"> <img src="https://dsd5zvtm8ll6.cloudfront.net/si.question.images/book_images/64ed892f1ceaa_47828.jpg" width="100" height="131" alt="SQL Antipatterns Avoiding The Pitfalls Of Database Programming" loading="lazy"> </a> </div> <div class="bookInfo" > <h3 class="bookTitle"> <a href="/textbooks/sql-antipatterns-avoiding-the-pitfalls-of-database-programming-1st-edition-9781680508987"> SQL Antipatterns Avoiding The Pitfalls Of Database Programming </a> </h3> <div class="bookMetaInfo" > <p class="bookAuthor"> <b>Authors:</b> <span>Bill Karwin</span> </p> <p class="bookEdition"> 1st Edition </p> <p class="bookEdition"> 1680508989, 978-1680508987 </p> </div></div></div> <a href="/textbooks/computer-science-starlogo-2612" class="viewMoreBooks">More Books</a> </div> </section> </div> </div> <section class="relatedQuestion"> <div class="relatedQuestionHolder"> <h4>Students also viewed these Databases questions</h4> <div class="relatedQuestionSliderHolder"> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/what-information-is-contained-in-the-general-ledger-master-file" > What information is contained in the general ledger master file? </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/python-read-numbers-from-file-objectives-practice-basic-file-input-13826103" > Python. Read numbers from file. Objectives: Practice basic file input and list processing. Write a function to read out numbers stored in a text file. The file contains only one line that stores... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/modern-mathematical-statistics-with-applications/d-assume-that-ep-diverges-sum-over-all-primes-see-1985960" > =+d) Assume that Ep- diverges (sum over all primes; see Problem 5.20(e)) and prove that D, although finitely additive, is not countably additive on the field f(M). </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/identify-whether-each-of-the-following-characteristics-is-an-advantage" > Identify whether each of the following characteristics is an advantage or a disadvantage of the corporate form of business: 1. Ease of Transfer of ownership 2. Taxation 3. Separate legal entity 4.... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/seda-purchased-a-stock-at-a-price-of-4750-a-10056608" > Seda purchased a stock at a price of $47.50 a share one year ago. Today, she sold the stock and realized a total loss of 8.09 percent on her investment. Her capital gain was -56.65 a share. What was... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/june-1-signed-a-3-year-71-210000-note-7299245" > June 1 Signed a 3 year 7.1% , $210000 note payable with First Bank. June 1 Purchased 3100 GPS units on credit from Navistar for $35.5 per unit. June 1 Issued 5,000 shares of common stock for $10 per... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/according-to-the-activity-network-below-which-one-is-a-1005610" > According to the activity network below. Which one is a critical activity? START END Activ </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/1-point-find-the-derivative-of-fx-6x2x-using-1000884" > (1 point) Find the derivative of f(x) = 6x+2x using the definition of the derivative. State the domain of f and the domain of f'. Derivative is Domain of f is Domain of f' is (Enter the domains using... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/1-two-insulated-tanks-are-connected-through-an-insulated-pipe-1024279" > 1. Two insulated tanks are connected through an insulated pipe and valve assembly. One tank holds 2 moles of nitrogen at 3 bar and 25C. The other tank has a 3 moles of hydrogen at 0.5 bar, 70C. The... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/how-travel-providers-such-as-airlines-hotels-and-car-rental-1002699" > How travel providers such as airlines, hotels, and car rental agencies can use special pricing to fill unused capacity, and earn revenue at the same time? </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/the-part-shown-is-loaded-at-point-c-with-290-1024248" > The part shown is loaded at point C with 290 N in the positive x direction and at point E with 190 N in the positive y direction. The diameter of the bar ABD is 10 mm. Evaluate the likelihood of... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/intercultural-communication/7-what-is-the-significance-of-the-shift-from-history-2116796" > 7. What is the significance of the shift from history to histories? How does this shift help us understand intercultural communication? </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/intercultural-communication/b-are-there-any-historical-incidents-of-discrimination-if-so-2116800" > b. Are there any historical incidents of discrimination? If so, describe them. </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star active half">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/intercultural-communication/a-what-is-the-historical-relationship-between-this-group-and-2116799" > a. What is the historical relationship between this group and other groups (particularly the dominant cultural groups)? </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> </div> </div> </section> <hr class="expert-separator"> <div class="next-previous-button"> <div class="navigationButtons"> <a class="previousQuestionButton" href="/study-help/questions/which-of-the-following-are-part-of-the-fourlevel-hierarchy-8721302">Previous Question</a> <a class="nextQuestionButton" href="/study-help/questions/discuss-the-modern-day-accountants-role-in-the-current-technologically-8721304">Next Question</a> </div> </div> </div> <div class="promo items-center justify-center hidden" style="margin-left:-15px;"> <div class="app_promo"> <div class="app_promo_headline"> <img class="app_promo_icon" alt="Mobile App Logo" width="40" height="40" loading="lazy" src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png"> <p class="app_promo_title font-sans items-center">View Answer in SolutionInn App</p> </div> <button class="app_promo_action redirection question_open_url='q_id=8721303&q_type=2'"> Download on the App Store </button> <button class="btn btn-default app_promo_dismiss"> Continue with the mobile website </button> </div> </div> </main> </div> <div class="blank-portion"></div> <footer> <div class="container footerHolder"> <div class="footerLinksFlex"> <div class="footerLinksCol col-md-3 col-lg-3 col-sm-6 col-6"> <p>Services</p> <ul> <li><a href="/site-map">Sitemap</a></li> <li><a href="/fun/">Fun</a></li> <li><a href="/study-help/definitions">Definitions</a></li> <li><a href="/tutors/become-a-tutor">Become Tutor</a></li> <li><a href="/study-help/categories">Study Help Categories</a></li> <li><a href="/study-help/latest-questions">Recent Questions</a></li> <li><a href="/study-help/questions-and-answers">Expert Questions</a></li> </ul> </div> <div class="footerLinksCol col-md-3 col-lg-3 col-sm-6 col-6"> <p>Company Info</p> <ul> <li><a href="/security">Security</a></li> <li><a href="/copyrights">Copyrights</a></li> <li><a href="/privacy">Privacy Policy</a></li> <li><a href="/conditions">Terms & Conditions</a></li> <li><a href="/solutioninn-fee">SolutionInn Fee</a></li> <li><a href="/scholarships">Scholarship</a></li> </ul> </div> <div class="footerLinksCol col-md-3 col-lg-3 col-sm-6 col-6"> <p>Get In Touch</p> <ul> <li><a href="/about-us">About Us</a></li> <li><a href="/support">Contact Us</a></li> <li><a href="/career">Career</a></li> <li><a href="/jobs">Jobs</a></li> <li><a href="/support">FAQ</a></li> <li><a href="/campus-ambassador-program">Campus Ambassador</a></li> </ul> </div> <div class="footerLinksCol col-md-3 col-lg-3 col-sm-6 col-12"> <p>Secure Payment</p> <div class="footerAppDownloadRow"> <div class="downloadLinkHolder"> <img src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/rewamp/common/footer/secure_payment_method.png" class="img-fluid mb-3" width="243" height="28" alt="payment-verified-icon" loading="lazy"> </div> </div> <p>Download Our App</p> <div class="footerAppDownloadRow"> <div class="downloadLinkHolder mobileAppDownload col-md-6 col-lg-6 col-sm-6 col-6 redirection" data-id="1"> <img style="cursor:pointer;" src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/rewamp/home_page/google-play-svg.svg" alt="SolutionInn - Study Help App for Android" width="116" height="40" class="img-fluid mb-3 " loading="lazy"> </div> <div class="downloadLinkHolder mobileAppDownload col-md-6 col-lg-6 col-sm-6 col-6 redirection" data-id="2"> <img style="cursor:pointer;" src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/rewamp/home_page/apple-store-download-icon.svg" alt="SolutionInn - Study Help App for iOS" width="116" height="40" class="img-fluid mb-3" loading="lazy"> </div> </div> </div> </div> </div> <div class="footer-bottom"> <p>© 2024 SolutionInn. All Rights Reserved</p> </div></footer> <script> window.addEventListener("load",function(){jQuery(document).ready(function(t){t.ajax({type:"POST",url:"/",data:{trackUserActivity:!0,reqUri:document.URL,referer:document.referrer},success:function(t){}})})},!1),window.addEventListener("load",function(){jQuery(document).ready(function(t){t.ajax({type:"POST",url:"/",data:{insertCrawler:!0,reqUri:document.URL,parseTime:"0.056",queryTime:"0.01654768548584",queryCount:"30"},success:function(t){}})})},!1),window.addEventListener("load",function(){jQuery(document).ready(function(){function t(t="",n=!1){var i="itms-apps://itunes.apple.com/app/id6462455425",e="openApp://action?"+t;isAndroid()?(setTimeout(function(){return window.location="market://details?id=com.solutioninn.studyhelp",!1},25),window.location=e):isIOS()?(setTimeout(function(){return window.location=i,!1},25),window.location=e):(i="https://apps.apple.com/in/app/id6462455425",n&&(i="https://play.google.com/store/apps/details?id=com.solutioninn.studyhelp"),window.open("about:blank","_blank").location.href=i)}jQuery("#appModal").modal("show"),jQuery(".download-app-btn").click(function(){t(jQuery(this).attr("question_open_url"))}),jQuery(".redirection").click(function(){var n=jQuery(this).attr("question_open_url"),i=jQuery(this).attr("data-id");void 0!=n?1==i?t(n,!0):t(n,!1):1==i?t("",!0):t("",!1)}),jQuery(".app-notification-close").click(function(){jQuery(".app-notification-section").css("visibility","hidden");var t=new FormData;t.append("hide_notification",!0),jQuery.ajax({type:"POST",url:"/",data:t,cache:!1,contentType:!1,processData:!1,beforeSend:function(){},success:function(t){location.reload()}})})})},!1); </script> </body> </html>