Goal
The goal of the exercise is to understand the conventions and practical application of frameworks in the accelerated construction of web pages and sites.
Objective
Using the guidance and instruction provided with an established framework, create a valid and correctly marked up HTML document representing a basic webpage.
Background
- Robbins, Chapter 11,14,15, 16, 17
- http://getbootstrap.com/docs/4.1/getting-started/download/#source-files
- http://getbootstrap.com/docs/4.1/getting-started/introduction/#starter-template
Assignment
Creating a sample html wireframe page from the available documentation. Reading and implementing the code will allow further exploration of the application of HTML and CSS knowledge. Proofread, validate and edit the created documents to correct any semantic or technical errors.
Part One
Download the source files and save to appropriate location. http://getbootstrap.com/docs/4.1/getting-started/download/#compiled-css-and-js
Copy the starter template from the page and make a new document. This provides basic head and supporting high end details. http://getbootstrap.com/docs/4.1/getting-started/introduction/#starter-template. Save the file as index.html
in the folder adjacent to the Bootstrap CSS and JS folders.
Add container to the starter template. http://getbootstrap.com/docs/4.1/layout/overview/#containers
Visit the brands section to copy and paste .navbar-brand
as a link into the container. http://getbootstrap.com/docs/4.1/components/navbar/
Visit navs section. Choose “Right-aligned with .justify-content-end
:” Copy and paste into document just before the closing </nav>
tag. http://getbootstrap.com/docs/4.1/components/navs/#horizontal-alignment
Wrap a set of <header>
tags around the <nav>
elements.
Visit grid section. Under “How it works” add the code to create the three column layout. http://getbootstrap.com/docs/4.1/layout/grid/
<div>
tags are used as structural elements. Most often they contain additional elements. Using the .row
class with <div>
is vitally important to having columns flow properly in this framework. Double check the parent element to ensure the element has a row class applied to it. Remove the extra <div class="container">
and the corresponding extra </div>
.
In each column, create an <h2>
heading for each column. Next, insert Lorem Ipsum placeholder text in a single paragraph. Insert a placeholder image at the top of each column using <a href="#"><img src="https://via.placeholder.com/350x360"></a>
. Finally, add a button to each column using class="btn btn-primary"
from the Buttons section of the framework. http://getbootstrap.com/docs/4.1/components/buttons/ and https://placeholder.com. Add a set of <footer>
tags to the bottom of the document, but outside the closing “container” <div>
.
Edit the footer
tag with the following code (watch the quotation marks):
Create a new css document called custom.css
. Save and link this file to the index.html
document you have been creating. Change the background colors of each the elements to visually identify the sections of the document. Choose named colors for ease of input.
Preview the document in a bowser of your choice. Use the developer tools to review the structure and dimensions of the document. Adjust the size of the browser window and compare.
Part Two
Validate the document using the online validator found at <http://validator.w3.org/>
Assessment
- The following rubric posted on D2L will determine assignment score: Exercise Grading
Techniques
Mark up, tags, validator,
Materials
TextEdit, Dreamweaver, source files via Bootsrap 4
Deadlines
As defined by corresponding calendar item, dropbox, discussion or content topic description.