Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 995569 of Marking up a letter

  • Revision slug: Learn/HTML/Introduction_to_HTML/Marking_up_a_letter
  • Revision title: Marking up a letter
  • Revision id: 995569
  • Created:
  • Creator: chrisdavidmills
  • Is current revision? No
  • Comment

Revision Content

We all learn to write a letter sooner or later; it is also a useful example to test out our text formatting skills! In this assessment you'll be given a letter to mark up to test basic and advanced HTML text formatting skills, including hyperlinks, plus we'll test your familiarity with some HTML <head> contents.

Prerequisites: Before attenpting this assessment you should have already worked through Getting started with HTML, the HTML <head> (TBD), HTML text fundamentals (TBD), Creating a hyperlink (TBD), and Advanced text formatting (TBD.)
Objective: To test basic and advanced HTML text formatting and hyperlink skills, and knowledge of the HTML <head>.

Starting point

To get this assessment started, you should go and grab the raw text you need to mark up, and the CSS you need to include in your HTML. Create a new .html file using your text editor to do your work in (or alternatively use a site like JSBin or Thimble to do your assessment.)

Project brief

For this project, your task is to mark up a letter that needs to be hosted on a university intranet. The letter is a reponse from a research fellow to a prospective PhD student concerning their application to work at the university.

Block/structural semantics:

  • You should structure the overall document with an appropriate structure including doctype, and {{htmlelement("html")}}, {{htmlelement("head")}} and {{htmlelement("body")}} elements.
  • The letter in general should be marked up with a structure of paragraphs and headings, with the exception of the below points. There is one top level heading (the "Re:" line) and two second level headings.
  • The semester start dates, study subjects and exotic dances should be marked up using an appropriate list type.

Inline semantics:

  • You should mark up the contents of the body with appropriate elements:
  • The two addresses. Each line of the address should sit on a new line, but not be in a new paragraph.
  • The names of the sender and receiver (and "Tel" and "Email") should be marked up with strong importance.
  • The four dates in the document should be given appropriate elements containing machine-readable dates.
  • The first address and first date in the letter should be given a class attribute value of "right"; the CSS you'll add later will then cause these to be right aligned, as should be the case in a classic letter layout.
  • The five acronyms/abbreviations in the main text of the letter should be marked up to provide expansions of each acronym/abbreviation.
  • The six sub/superscripts should be marked up appropriately.
  • The degree symbols, greater than symbol and multiply symbols should be marked up using appropriate entity references.
  • Try to mark up at least two appropriate words in the text with strong importance/emphasis.
  • There are two places where a hyperlink should be added; add appropriate links with titles. For the location that the links point to, just use https://example.com.
  • The university motto quote and citation should be marked up with appropriate elements.

The head of the document:

  • The character set of the document should be specified as utf-8 using an appropriate meta tag.
  • The author of the letter should be specified in an appropriate meta tag.
  • The provided CSS should be included inside an appropriate tag.

Hints and tips

  • Use the W3C HTML validator to validate your HTML; you'll get bonus points if it validates.
  • You don't need to know any CSS to do this assessment; you just need to put the provided CSS inside an HTML element.

Example

The following screenshot shows an example of what the letter might look like after being marked up.

Assessment

If you are following this assessment as part of an organized course, you should be able to give your work to your teacher/mentor for marking. If you are self-learning, then you can get the marking guide fairly easily by asking on the dev-mdc mailing list, or in the #mdn IRC channel on Mozilla IRC.

Revision Source

<p class="summary">We all learn to write a letter sooner or later; it is also a useful example to test out our text formatting skills! In this assessment you'll be given a letter to mark up to test basic and advanced HTML text formatting skills, including hyperlinks, plus we'll test your familiarity with some HTML <code>&lt;head&gt;</code> contents.</p>

<table class="learn-box standard-table">
 <tbody>
  <tr>
   <th scope="row">Prerequisites:</th>
   <td>Before attenpting this assessment you should have already worked through <a href="/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started">Getting started with HTML</a>, the HTML &lt;head&gt; (TBD), HTML text fundamentals (TBD), Creating a hyperlink (TBD), and Advanced text formatting (TBD.)</td>
  </tr>
  <tr>
   <th scope="row">Objective:</th>
   <td>To test basic and advanced HTML text formatting and hyperlink skills, and knowledge of the HTML &lt;head&gt;.</td>
  </tr>
 </tbody>
</table>

<h2 id="Starting_point">Starting point</h2>

<p>To get this assessment started, you should go and grab the <a href="https://github.com/mdn/learning-area/blob/master/html/introduction-to-html/marking-up-a-letter-start/letter-text.txt">raw text you need to mark up</a>, and the <a href="https://github.com/mdn/learning-area/blob/master/html/introduction-to-html/marking-up-a-letter-start/css.txt">CSS you need to include</a> in your HTML. Create a new <code>.html</code> file using your text editor to do your work in (or alternatively use a site like&nbsp;<a class="external external-icon" href="https://jsbin.com/">JSBin</a> or <a class="external external-icon" href="https://thimble.mozilla.org/">Thimble</a> to do your assessment.)</p>

<h2 id="Project_brief">Project brief</h2>

<p>For this project, your task is to mark up a letter that needs to be hosted on a university intranet. The letter is a reponse from a research fellow to a prospective PhD student concerning their application to work at the university.</p>

<p>Block/structural semantics:</p>

<ul>
 <li>You should structure the overall document with an appropriate structure including doctype, and {{htmlelement("html")}}, {{htmlelement("head")}} and {{htmlelement("body")}} elements.</li>
 <li>The letter in general should be marked up with a structure of paragraphs and headings, with the exception of the below points. There is one top level heading (the "Re:" line) and two second level headings.</li>
 <li>The semester start dates, study subjects and exotic dances should be marked up using an appropriate list type.</li>
</ul>

<p>Inline semantics:</p>

<ul>
 <li>You should mark up the contents of the body with appropriate elements:</li>
 <li>The two addresses. Each line of the address should sit on a new line, but not be in a new paragraph.</li>
 <li>The names of the sender and receiver (and "Tel" and "Email") should be marked up with strong importance.</li>
 <li>The four dates in the document should be given appropriate elements containing machine-readable dates.</li>
 <li>The first address and first date in the letter should be given a class attribute value of "right"; the CSS you'll add later will then cause these to be right aligned, as should be the case in a classic letter layout.</li>
 <li>The five acronyms/abbreviations in the main text of the letter should be marked up to provide expansions of each acronym/abbreviation.</li>
 <li>The six sub/superscripts should be marked up appropriately.</li>
 <li>The degree symbols, greater than symbol and multiply symbols should be marked up using appropriate entity references.</li>
 <li>Try to mark up at least two appropriate words in the text with strong importance/emphasis.</li>
 <li>There are two places where a hyperlink should be added; add appropriate links with titles. For the location that the links point to, just use https://example.com.</li>
 <li>The university motto quote and citation should be marked up with appropriate elements.</li>
</ul>

<p>The head of the document:</p>

<ul>
 <li>The character set of the document should be specified as utf-8 using an appropriate meta tag.</li>
 <li>The author of the letter should be specified in an appropriate meta tag.</li>
 <li>The provided CSS should be included inside an appropriate tag.</li>
</ul>

<h2 id="Hints_and_tips">Hints and tips</h2>

<ul>
 <li>Use the <a href="https://validator.w3.org/">W3C HTML validator</a> to validate your HTML; you'll get bonus points if it validates.</li>
 <li>You don't need to know any CSS to do this assessment; you just need to put the provided CSS inside an HTML element.</li>
</ul>

<h2 id="Example">Example</h2>

<p>The following screenshot shows an example of what the letter might look like after being marked up.</p>

<p><img alt="" src="https://mdn.mozillademos.org/files/12291/letter-screengrab.png" style="border:1px solid black; display:block; margin:0px auto" /></p>

<h2 id="Assessment">Assessment</h2>

<p>If you are following this assessment as part of an organized course, you should be able to give your work to your teacher/mentor for marking. If you are self-learning, then you can get the marking guide fairly easily by asking on the <a href="https://lists.mozilla.org/listinfo/dev-mdc">dev-mdc</a> mailing list, or in the <a href="irc://irc.mozilla.org/mdn">#mdn</a> IRC channel on <a href="https://wiki.mozilla.org/IRC">Mozilla IRC</a>.</p>
Revert to this revision