任务介绍:标记字母

此文主要为练习布局,未用到标签语义化,若需查看语义化标签练习访问此处

项目概要:

在这个项目里,你的任务是标记一封放在大学内网上的信,这封信是研究人员对一名未来的博士生的回复,关于他们在大学工作的申请。

块/结构语义:

  • 你应该使用适当的结构来构造整体文档,包括doctype、<html> 、 <head><body>元素。
  • 除下面提到的几点之外,这封信应该被标记成有着段落和标题的结构。 这封信有一个顶级标题(“Re:”那行)和三个二级标题。
  • 使用适当类型的列表标记该学期的开学时间、学习科目和外国舞蹈。
  • 那两个地址可以就放在段落中,且 <address>元素不适合他们——想一下为什么。此外,地址的每一行都应该另开新行,但不是新的段落。

内联语义:

  • 显著标明发信人和收信人的姓名(以及“电话”和“电子邮件”)。
  • 用适当的元素把文档中的四个日期标记成机器可读的日期。
  • 把信中第一个地址和第一个日期的类属性设置成“sender-column”,这样你添加的CSS就可以使它们右对齐,就像经典的信件布局里的一样。
  • 标记出信件正文中的五个首字母缩略词或缩写的扩展形式。
  • 适当标注六个下标/上标。
  • 用适当的字符实体引用来标记大于号、乘号和度符号。
  • 试着标记至少两个适当的、具有很强重要性/重点(strong importance/emphasis)单词。
  • 有两个地方应加上超链接,为它们添加适当的标题。链接指向http://example.com就行。
  • 应该用适当的元素标记大学的座右铭引用和引文。

文档的头部:

  • 用适当的meta标签把文档的字符集声明为utf-8。
  • 用适当的meta标签说明信件的作者。
  • 用适当的标签引入我们提供的CSS代码。

要求:

 

代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        body {
        max-width: 800px;
        margin: 0 auto;
        }

        .sender-column {
        text-align: right;
        }

        h1 {
        font-size: 1.5em;
        }

        h2 {
        font-size: 1.3em;
        }

        p,ul,ol,dl,address {
        font-size: 1.1em;
        }

        p, li, dd, dt, address {
        line-height: 1.5;
        }
    </style>
</head>
<body>
    <div class="sender-column">
            <p><strong> Eleanor Gaye</strong></p>
            <p>Awesome Science faculty</p>
            <p>University of Awesome</p>
            <p>Bobtown, CA 99999,</p>
            <p>USA</p>
            <p><strong>Tel:</strong> 123-456-7890</p>
            <p><strong>Email:</strong> no_reply@example.com</p><br>
            <p>20 January 2016</p><br>
    </div>
    <div>
        <p><strong>Miss Eileen Dover</strong></p>
        <p>4321 Cliff Top Edge</p>
        <p>Dover, CT9 XXX</p>
        <p>UK</p><br>
    </div>
    <div class="main">
        <h1>Re: Eileen Dover university application</h1>
        <p>Dear Eileen,</p>
        <p>Thank you for your recent application to join us at the University of Awesome's science faculty to study as part of your PhD next year. I will answer your questions one by one, in the following sections.</p>
        <h2>Starting dates</h2>
        <p>We are happy to accommodate you starting your study with us at any time, however it would suit us better if you could start at the beginning of a semester; the start dates for each one are as follows:</p>
        <ul>
            <li>First semester: 9 September 2016</li>
            <li>Second semester: 15 January 2017</li>
            <li>Third semester: 2 May 2017</li>
        </ul>
        <p>Please let me know if this is ok, and if so which start date you would prefer.</p>
        <p>You can find more information about <a href="#">important university dates</a> on our website.</p>
        <h2>Subjects of study</h2>
        <p>At the Awesome Science Faculty, we have a pretty open-minded research facility — as long as the subjects fall somewhere in the realm of science and technology. You seem like an intelligent, dedicated researcher, and just the kind of person we'd like to have on our team. Saying that, of the ideas you submitted we were most intrigued by are as follows, in order of priority:</p>
        <ol>
            <li>Turning H2O into wine, and the health benefits of Resveratrol (C14H12O3.)</li>
            <li>Measuring the effect on performance of funk bassplayers at temperatures exceeding 30°C (86°F), when the audience size exponentially increases (effect of 3 × 103 increasing to 3 × 104.)</li>
            <li>HTML and CSS constructs for representing musical scores.</li>
        </ol>
        <p>So please can you provide more information on each of these subjects, including how long you'd expect the research to take, required staff and other resources, and anything else you think we'd need to know? Thanks.</p>
        <h2>Exotic dance moves</h2>
        <p>Yes, you are right! As part of my post-doctorate work, I did study exotic tribal dances. To answer your question, my favourite dances are as follows, with definitions:</p>
        <p>
            Polynesian chicken dance
            <p>A little known but very influential dance dating back as far as 300BC, a whole village would dance around in a circle like chickens, to encourage their livestock to be "fruitful".</p>
        </p>
        <p>
            Icelandic brownian shuffle
            <p>Before the Icelanders developed fire as a means of getting warm, they used to practice this dance, which involved huddling close together in a circle on the floor, and shuffling their bodies around in imperceptibly tiny, very rapid movements. One of my fellow students used to say that he thought this dance inspired modern styles such as Twerking.</p>
        </p>
        <p>
            Arctic robot dance
            <p>An interesting example of historic misinformation, English explorers in the 1960s believed to have discovered a new dance style characterized by "robotic", stilted movements, being practiced by inhabitants of Northern Alaska and Canada. Later on however it was discovered that they were just moving like this because they were really cold.</p>
        </p>
        <p>For more of my research, see my <a href="#">exotic dance research page.</a></p>
        <p>Yours sincerely,</p><br><br>
        <p>Dr Eleanor Gaye</p>
        <p>University of Awesome motto: "Be awesome to each other." -- <strong>Bill S Preston, Esq</strong></p>
    </div>
</body>
</html>