Learn about...
HTML elements do not just change the appearance of text (i.e., bold vs. italic, large vs. small font, etc.), they are used to specify the structure, purpose and meaning of text. Search engines and many programs use HTML markup to determine the context and importance of text. CSS can be used to change the default appearence of HTML elements. It is considered a bad practice to use HTML tags inappropriately just to achieve a certain visual appearance.
head
, add the text Lab 2: Semantic Markup inside a title
tag, i.e., <title>Lab 2: Semantic Markup</title>
.body
, add the text Lab 2 inside an h1
tag, i.e., <h1>Lab 2</h1>
.title
in the head
appears vs. where the h1
in the body
appears.body
of the HTML document. Cut and paste a long sentence over and over so that each paragraph has multiple lines of text. Use the p
tag, to properly markup your three paragraphs.head
element of the page:
<style> p { text-indent: 24px; margin-top: 8px; margin-bottom: 4px; } </style>
h2
with the content Subtitle.h3
with the content Sub-subtitle.<style> h1, h2, h3 { font-size: 16px; color: green; border-bottom: 1px solid green; margin-top 24px; margin-bottom: 2px; }
body
below third paragraph, add the ordered list shown in Figure 5-5 on page 75.li
element has a left margin of 40px. In addition, the numbers or bullets are displayed 16px to the left of the indented text.li
elements to the left by adding the following code inside the style tag:
li { margin-left: -16px; }
li
style:
text-indent: -8px;
li
element, did not move. The text-indent attribute only effects the text inside the element, whereas margins effect the entire element.blockquote
element and add several sentences of text (see Figure 5-7 on page 77)..blockquote
add a pre
element and add several sentences with many spaces and blank lines (see Figure 5-8 on pages 77-78).blockquote
and pre
elements impact the appearance of the text inside the tag. Web designers often misuse the blockquote element just to create an indented paragraph. However, it should only be used to indicate that a block of text is a quote. Similarly, the pre
element is often misused to position text, wheres it should only be used to indicate text where the spaces and tabs matter, i.e, in code or pre-formatted text.Use this activity and your observations to answer the Pre-lab Questions. Be sure to complete the activity and answer the pre-lab questions in Blackboard before the start of the lab period.
Note that these instructions are not always detailed. You must figure out some of the detail by reading the textbook and investigating online sources. You can always ask your instructor for help. If your instructor is busy helping others, raise your hand to make sure the instructor sees that you need help, but then put your hand down and go back to work. As you wait for help, try your best to solve the problem on your own by reading the textbook.
GIMP Topic: Cropping, resizing, transforms, exporting.
It is very important to read the pages as you do the exercises. While you may be tempted to download the solution without doing the reading and actual exercises, the purpose of this work is to learn concepts and details that you will need to know to complete the rest of the lab and to answer exam questions.
Activity
You can work together with your partner during lab. But after the lab session is over, you must complete this activity independently. Be sure to email your partner relevant files before the end of the lab session. You should not collaborate with your partner outside of the designated two-hour lab session.
(Use header and h1, h2, etc.) Eric Breimer CS Major Siena College (This is your navigation menu, use nav, ul, li, use mark to highlight the word home) Home Resume Courses Projects Photos (This is a division, use <div id="info">, h3, strong, address ) Contact Info 515 Loudon Road Loudonville, NY 12211 Email: ebreimer@siena.edu Phone: (518) 786-508 (use <span class="phone">) (This is a division, use <div id="background">, h3, p, em, strong ) Background I grew up in blaa blaa blaa. I enjoy blaa blaa blaa. This should be about 3-4 sentences. Try to be professional but interesting. Use the em and strong tags appropriately to highlight key parts of your background. You should also include a date so you can use the time and date tags. Somewhere use an abbreviation and then define it with the abbr element. For instance I went to RPI (Rensselaer Polytechnic Institute) (This is a division, use <div class="favorites">, h3, ol, li ) Favorite Courses 1. Web Design 2. Accounting 3. (use an ordered list) (This is a division, use <div class="favorites">, h3, ul, li ) Favorite Books * How the Mind Works by Steven Pinker * Freakonomics by Blaa Blaa * (use an unordered list) (This is a division, use <div class="favorites">, h3, ul, li, q, cite ) Favorite Quotes "...and that tells you something" - My Grandma "You are a brainless wonder" - My Mom (use footer) Copyright @copy; 2013, Eric Breimer
Upload yourname.html to Blackboard, i.e., the file with your name. This document should include your individual information, not your partners. The document must validate as HTML5 with only warnings and no errors. It is must include appropriate markup including: html
, head
, body
, meta
, title
, h1
, h2
, p
, span
, div
, time
, mark
, cite
, abbr
, q
, strong
, em
, address
, nav
, header
, and footer
.