Question: In the Lab Chapter 8 , Pages 4 5 6 - 4 6 1 You have already developed a responsive website and now need to
In the Lab Chapter Pages
You have already developed a responsive website and now need to add a table and a form to the website. Use the template.html file to create the Partnership page and add a table to the page. Update the Contact page by adding a form. Figure shows the Partnership page in mobile and desktop viewports. Figure shows the form on the Contact page in mobile, tablet, and desktop viewports.
Open the template.html file in your text editor and use it to create a new page with the file name partnership.html Update the comment with the file name and todays date. In the title element, replace the word Template with Partnership.
In the partnership.html file, nest a heading element within the main element above the empty div element that contains the following text: We are grateful for the support from our community partners. We have many sponsorship opportunities.
Add a class attribute with the value mobiletablet to the empty div element. Nest the following elements within this div element:
a Heading element with the text Sponsorship Levels.
b Paragraph element with the text Green: $
c Paragraph element with the text Blue: $
d Paragraph element with the text Red: $
e Paragraph element with the text Purple: $
f Paragraph element with the text Silver: $
g Paragraph element with the text Gold: $
h Paragraph element with the text Each sponsorship supports our animals and operations. Business recognition is given at every sponsorship level. Contact us today to become a sponsor.
Insert a new div element below the mobiletablet div element. Add an id attribute with a value of partner to the empty div element nested within the main element. Then, add a class attribute with a value of desktop to the div element.
Nest a table within the partner div element. Include a caption with the text Sponsorship Opportunities. Insert seven rows within the table and include a comment for each row to note the row number. Follow the example below:
In Row add four table header elements and use Sponsorship Level, Dollar Amount, Details, and Sponsorship Benefits as the column header text.
Add the following table data to rows two through seven:
Green $ The green sponsorship helps us maintain green pastures for our grazing friends. Recognition on our website.
Blue $ The blue sponsorship helps us provide food for the animals. Recognition on our website and our brochure.
Red $ The red sponsorship helps us provide medical care for the animals. Recognition on our website and our brochure. Business logo displayed on a banner at our facility.
Purple $ The purple sponsorship helps us maintain homes for the animals. Recognition on our website and our brochure. Business logo displayed on a banner at our facility. Business name and logo displayed at the annual community event.
Silver $ The silver sponsorship supports our monthly expenses. Recognition on our website and our brochure. Business logo displayed on a banner at our facility. Business name and logo displayed at the annual community event. Recognition plaque with business name prominently displayed within the facility.
Gold $ The gold sponsorship supports our operation costs. Recognition on our website and our brochure. Business logo displayed on a banner at our facility. Business name and logo displayed at the annual community event. Recognition plaque with business name prominently displayed within the facility. Display table at the annual community event. Recognition in all media releases.
In the styles.css file, locate the mobile style rule for mobile and add the mobiletablet class selector as another selector for this style rule. Locate the mobile style rule for tabdesk and add the desktop class selector as another selector for this style rule.
In the desktop media query, modify the first comment within the query to Desktop Viewport: Show desktop class, hide mobiletablet class. Below the desktop style rule, create a new style rule for the mobiletablet class selector that sets the display to none.
In the desktop media query, add the following comment after the style rule for aside: Style rules for table
Below the comment, add the following style rules:
a Create a style rule for the table selector that specifies a border with values of px solid #af margins to auto.
b Create a style rule for the caption selector that specifies a font size of em font weight of bold, and sets the padding to
c Create a style rule for th and td selectors that specifies a border with values of px solid #af and sets the padding to
d Create a style rule for the th selector that sets the background color to af color to white fff and the font size to em
e Create a style rule for the tr selector that sets the background color to #deccba for odd rows.
In the contact.html file, insert a new div element with an id attribute value of form below the contact div within the main element. Insert a heading element within the form div and include the text Complete the form below and we will contact you soon. Insert a form element with a class attribute value of formgrid below the heading element. Include a comment to note where the form begins. Follow the example below.
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
