英[sp?n] 美[sp?n]

n. Conjugate (horse, mule); span, distance between piers; a period of time; [nautical] cross rope

vt. tie or fasten; span time or space; measure with the palm of the hand; measure with the hand around similar measurement

Third person singular: spans plural: spans present participle: spanning past tense: spanned past participle: spanned

html span tag syntax

Function: Used to combine inline elements in the document.

Note: Please use <span> to combine inline elements so that they can be formatted through styles.

Note: span has no fixed format. It only changes visually when you apply a style to it.

html span tag example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<span>span沒(méi)有固定的格式表現(xiàn),如果需要,可以添加屬性來(lái)表現(xiàn)形式</span>
</body>
</html>

Run Instance?

Click the "Run Instance" button to view the online instance

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<span>span常用在顯示一段普通的文本</span>
</body>
</html>

Run instance?

Click the "Run instance" button to view the online instance