I am learning html and I just finished the assessment on marking up a letter. Please can someone assess my html and answer the questions I encountered while doing the assessment?
Thank you very much.
Questions
When I gave the first time element “sender-column” class, it did cause it to shift to the right as specified in the CSS file. Whereas when I change the time element to a paragraph element, or if I nested the time element within a paragraph, it works. It also works for the first address element. Why doesn’t the CSS work when for the time element? I see that the CSS given is
.sender-column {
text-align: right;
}
Is it because the time element is not considered as text, so text-align doesn’t have an effect on it?
A few questions on the semantics of p
. Are the semantics of my markup correct in terms of
- Wrapping the time element within the paragraph element. Should the time be considered as a single paragraph?
- Closing the previous paragraph before starting a list object. Should the paragraph be ended before a new block element starts (such as a blockquote or lists), or is it okay to nest a block element within the pargraph.
- Giving “Dear Eileen,” , “Yours sincerely”, and the “Dr. Eleanor Gaye” signature at the bottom an individual paragraph. I felt weird when I wrapped them with
<p>
. Should they be counted as a paragraph or would it be more semantically correct to just use<br/>
to separate it from other texts?
What should I put in content property in <meta name="author" content="">
? Is it the author of the mail (Eleanor Gaye), or the person who created the web document (me)?