The "Wisconsin Colleges and Universities" web page from Higher Ed's Directory of Higher Education Opportunities website is shown below. Download the files from the previous link and complete the web document following the instructions for the assignment described below.
- Using an HTML editor, open the uwlist.htm web document and hestyles.css style sheet files from the download and insert comments containing your name and the project due date in both
- In the uwlist.htm file directly below the
h1
heading, insert a navigation list containing an unordered list with following list items:
- Private Colleges and Universities
- Technical College System
- University of Wisconsin System
- Add the
id
values private, technical and public to the threeh2
headings that categorize the list of schools- Mark each of the school entries on the page as a hypertext link (these are intersite links to different websites); see the URL's provided in the colleges.txt file (Hint–use the copy and paste feature of your text editor to efficiently copy and paste the college names and URL text)
- Make sure that everything between the end of the
<header>
block and before the<footer>
block remains inside the<section>
block as it was in the original uwlist.htm web document- So that the links to the school web sites to appear in a new tab or window and since there are so many links on the page, add a
base
element to the documenthead
specifyingtarget="_blank"
so that all links open by default in a new browser window or tab- Link the three items in the navigation list to the corresponding
h2
headings (these are the intrapage links to another location on the same web page)- For each of the three hypertext links you marked in the previous step, set the link to open in the current browser window and not in a new browser window or tab by specifying
target="_self"
- Save the changes to the uwlist.htm web document
(The steps above are the important part of this assignment, that is the creating of all the hyperlinks within and to the web documents; the remaining steps below are to style the web page so it looks like the document above which is a minimal part of the grade)
- Then go to the hestyles.css file in the text editor (as you make changes to this style sheet document, regularly refresh the HTML document in a browser to view the effects)
- Add descriptive comments to the style sheet to identify the style rules for the different sections of the web page
- Create a style rule for the
body
element as follows:
- Set the left and right margins to auto
- Set the padding to 0 pixels
- Set the line height to 1.5 em
- Set the width to 98 percent
- Set the maximum width to 780 pixels and the minimum width to 250 pixels
- Set the font family to Verdana, Geneva and sans-serif
- Create a style rule for the
header
section as follows:
- Set the width to 100 percent
- Align the text left
- Create a style rule for the
h1
element as follows:
- Set the font weight to normal
- Set the font size 2.5 em
- Set the color to red
- Create a style rule for the
h2
element as follows:
- Set the font weight to normal
- Set the font size 1.5 em
- Set the color to red
- Create a style rule for the
nav
block in thesection
as follows:
- First clear the margin on the left and then set display to block
- Set the width to 100 percent
- Set the bottom margin to 30 pixels
- Create a style rule for the
ul
element in thenav
block in thesection
as follows:
- Remove the list markers
- Set the margin and padding 0 pixels
- Set the font size 0.8 em
- For list items in the
ul
element in thenav
block in thesection
create a style rule that:
- Sets display to block
- Floats the margin to left
- Sets the width to 32 percent
- Sets the font size to 1 em
- Sets the height to 3 em
- Centers the text
- Sets a border of 1 pixel that is solid and red
- Sets a background color to the hexadecimal value ffffc0
- Sets the line height to 3 em
- Sets the right margin to 4 pixels and the bottom margin to 25 pixels
- Create a style rule for the
ul
element in thesection
that removes the list markers- Create a style rule for the
footer
block that:
- Sets display to block
- Sets the width to 100 percent
- Sets the font size to 0.8 em
- Centers the text
- Displays the text in small caps
- Sets the text color to red
- Sets a top border of 1 pixel that is solid and red
- Save changes to the hestyles.css style sheet file and then view the uwlist.htm web document in several browsers to verify that the layout and content resemble that shown in the image above; additionally verify ...