電子メールを作成するときに指定する送信メッセージに用いられるテキスト形式と HTML 形式に関する記述のうち, 適切なものはどれか。
令和4年度 ITパスポート試験 問89
This question's explanation and your answers so far.
問 89
Incorrectア
The description is reversed. The format in which a script in the body may be executed when the mail is opened is the HTML format, which interprets tags and scripts. The plain-text format treats the content as a plain string and does not execute scripts, so the statement is wrong.
Incorrectイ
Attaching files has nothing to do with the format of the body (plain-text/HTML); thanks to the MIME mechanism, files can be attached in either format. The claim that files can be attached only in the HTML format is wrong.
- ウ
正解 The plain-text format is a simple message containing only characters, and cannot embed formatting or links. The HTML format, on the other hand, uses HTML tags just like a web page, so it can set a hyperlink (a link that opens a web page when clicked) on any text string in the body. Therefore option ウ, which states that the format able to set a hyperlink on any text string in the body is the HTML format rather than the plain-text format, is appropriate.
Incorrectエ
The description is reversed. The format that can apply formatting such as color and size to text is the HTML format; the plain-text format, which has no decoration, cannot. Saying the plain-text format can do it is wrong.
- The plain-text format contains only characters and allows no decoration or links. The HTML format can apply formatting, set hyperlinks, and embed images via tags, but in return it also carries security risks such as scripts being executed.
- File attachment is a function of MIME, and it works whether the body is in plain-text format or HTML format (whether a file can be attached is not determined by the body format).