HTML標籤


HTML 中的 <big> 元素用於將文字格式成比預設文字更大的文字。

注意:HTML 中不支援 <big> 元素。下面我們來看一個示例來實現 HTML 中的 <big> 元素−

示例

 線上演示

<!DOCTYPE html>
<html>
<body>
   <h2>Demo Heading</h2>
   <p>This is demo text!</p>
   <p><big>This demo text is bigger than the default text.</big></p>
</body>
</html>

輸出

在上述示例中,我們首先設定了一個普通文字 −

<p>This is demo text!</p>

然後,我們使用 <big> 元素設定了另一個文字 −

<p>
   <big>
      This demo text is bigger than the default text.
   </big>
</p>

更新於:2020 年 6 月 29 日

85 次瀏覽

開啟您的職業生涯

透過完成課程取得認證

開始
廣告
© . All rights reserved.