P标签未显示

时间:2019-11-24 20:59:07

标签: html

超级简单的学校作业。我嵌入了一个音频文件,我想在音频文件后的p标签中添加脚本。无需CSS。问题是,我无法在我的p标签中显示该文本,而且我不知道为什么?我觉得我缺少一些非常简单的东西。

x2

1 个答案:

答案 0 :(得分:2)

<!DOCTYPE html>

<html>
<head>
    <title>Edward Scissorhands</title>
</head>

<body>

<h2>Edward Scissorhands<h2>

<audio controls>
  <source src="EdwardReview.mp3" type="audio/mpeg">
</audio>

    <p>Edward Scissorhands is a story set in a picturesque suburban town in the 1950s. 
    The story centers around protagonist Edward—a young man brought to life by the experiments 
    of his creator scientist. Edward was unfinished when his creator died, leaving him with 
    large scissor-like hands. He is then found by the local Avon-lady and adopted by her and her 
    family. The movie sees Edward attempting to navigate the peculiar social structures of an 
    exaggerated 1950s suburban landscape, while attempting to learn about life and love. Edward 
    Scissorhands is essentially a retelling of Frankenstein, through the lens of Tim Burton’s 
    magical storytelling. The scenery is captivating and the musical score really adds feeling to 
    the movie’s most moving scenes. The movie is set around Christmas time, so if you haven’t yet 
    seen it, what better time than this holiday season.</p>

</body>
</html>

您没有正确使用audio标签。它必须采用以下格式:

<audio controls>
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

由于它无效,因此其下方没有任何东西可以正确渲染。