Section 2: Document Markup
Section 2 Assessments
For each of these assignment, complete each bulleted step and submit all files (HTML, CSS, scripts, images, etc.) necessary by zipping and submitting your assignment folder.
Your First Page:
- Your name, the course, and semester commented at the top of the file
- Create body, header, and footer sections
- Create a div named content between your header and footer
- Set a page title that displays in the browser tab
- Place an address in an address tag in your footer
- Your name at the top of the page as an <h1> heading in your header
- Add a few paragraphs about yourself to your content div
- Add a list of hobbies or interest displayed as an HTML unordered list to content
- Link at least two of your hobbies or interests to websites related to those interests
Fun with Media
- Your name, the course, and semester commented at the top of the file
- One image as part of your page
- A short audio clip (or link to available audio file) and player
- A short video clip (or link to available video) and player
- Set both audio and video clips to have controls and not play automatically
- Give your video clip a placeholder image
Tables on Chairs
- Recreate the following table in HTML
- Use style attributes to set cell colors as needed
- Use the caption tag to label your table
Production Levels for Chairs This Week:
Monday |
Tuesday |
Wednesday |
Thursday |
Friday |
Total |
|
Stools |
5 |
5 |
5 |
(quota met) |
15 |
|
Rolling |
(out of materials) |
10 |
15 |
25 |
||
Standard Leg |
4 |
8 |
12 |
4 |
28 |
Registration Form
- Create a form with an action attribute of post
- Give it the following fields, and a submit button:
- First Name, Last Name
- Email Address, Email Address Again
- Age
- A “Plan” select box that contains Basic, Premium, Titanium options
- A checkbox asking if the user wishes to be added to a mailing list
- A shirt size radio set that has values of Small, Medium, Large
Adding Some Style
Using CSS rules, modify your “Your First Page” submission to include:
- A background image that repeats to fill the screen
- A background color on your content div
- Modifying H1 to be 32 point and a different color from default
- Split your About Me and Hobbies sections into separate divs within Content
- Give your new divs a fixed width of 400 each and set them to sit side by side
Responsive Styling
Add rules to your CSS to achieve the following:
- Allow divs in your content section to shrink to 200px
- Vertically align your content divs for screens smaller than the typical tablet
- Shrink your h1 to fit on one line when on tablets and phones if needed
- Only show the first paragraph of your About Me section on phones
Discussion / Written Response
- Explain the W3C’s stated reasoning as to why it was decided to stop moving all of CSS through version numbers as one cohesive unit. Do you agree or disagree with this position, and why?
- Discuss pros and cons of creating web applications using HTML5, CSS3, and other languages against creating the same application for each device’s platform (i.e. Apple’s iTunes, Google Play, Windows Store).
- Discuss how XML differs from HTML, and where it is commonly used today.
- Why is HTML considered a document markup languages as opposed to a programming language?
Questions
- What does HTML stand for?
- Hyperlinks and Text Markup Language
- Hyper Text Markup Language
- Home Tool Markup Language
- Hyper Text Manipulation Language
- Choose the correct HTML tag for the largest heading.
- <heading>
- <h1>
- <header>
- <h6>
- Which of these is a properly formatted link?
- <a link=”www.google.com”>Link</a>
- <a href=”www.google.com” />
- <link location=”www.google.com”>Link</a>
- <a href=”www.google.com”>Link</a>
- How can you open a link in a new tab/browser window?
- <a href=“url” target=“_blank”>
- <a href=“url” target=“new”>
- <a href=“url” new>
- Which doctype is correct for HTML5?
- <!DOCTYPE HTML5>
- <!DOCTYPE html>
- <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 5.0//EN” “http://www.w3.org/TR/html5/strict.dtd”>
- What is the correct HTML for making a drop-down list?
- <select>
- <input type=“dropdown”>
- <input type=“list”>
- <list>
- Which of the following is correct?
- HTML is used for exchanging data, XML is not.
- XML is used for exchanging data, HTML is not.
- HTML can have user defined tags, XML cannot.
- Both b and c above.
- What is the correct HTML5 element for playing video files?
- <movie>
- <video>
- <source>
- None of the above
- What is the correct HTML for inserting an image?
- <img src=“image.gif” alt=“MyImage”>
- <image src=“image.gif” alt=“MyImage”>
- <img href=“image.gif” alt=“MyImage”>
- <img alt=“MyImage”>image.gif</img>
- The <canvas> element in HTML5 is used to:
- Display database records
- Manipulate data in MySQL
- Create draggable elements
- Draw graphics
- In HTML5, which attribute is used to specify that an input field must be filled out?
- Formvalidate
- Validate
- placeholder
- required
- Which HTML5 element is used to display a measurement within a fixed range?
- <gauge>
- <range>
- <measure>
- <meter>
- What does CSS stand for?
- Cross-site scripting
- Cascading Style Sheets
- Creative style sheets
- Compiled site styles
- Given the following, what value does the left margin have?: margin: 10px 5px 20px 15px;
- 10px
- 5px
- 20px
- 15px
- Which style rule overrides the other?
- Class
- Id
- What property creates space between HTML elements?
- Margin
- Padding
- Spacing
- Float
- What property creates space within an element?
- Margin
- Padding
- Spacing
- Float
- Which set of tags are used to define CSS within the page?
- <style type=“css”></style>
- <class type=“text/css”></class>
- <inline css></inline>
- None of the above
- Which of these is the correct way to define a hover state for an anchor tag?
- :onHover
- :mouseOver
- :hover
- None of These
- Which property of a position rule will force content to a position regardless of other elements?
- Fixed
- Absolute
- Relative
- Strict
- Responsive styling allows us to support many devices with one style sheet.
- True
- False
- Which of the following is the best fit for defining styles on small mobile devices?
- @media only screen and (max-width: 479p
- @media only screen and (max-width: 769p
- @media only screen and (max-width: 120p