📜  HTML section标签

📅  最后修改于: 2020-11-04 00:47:49             🧑  作者: Mango

HTML
标签

HTML

标签用于定义文档中的节。当您将内容放在网页上时,它可能包含网页上的许多章节,页眉,页脚或其他部分,这就是HTML的原因
标签被使用。

HTML

是HTML5中引入的新标签。

HTML部分标签示例

CSS代码:

section{
border:1px solid pink;
padding:15px;
margin:10px;
}

HTML代码:

Indian Leader

Jawaharlal Nehru

Jawaharlal Nehru was the first Prime Minister of India and a central figure in Indian politics for much of the 20th century. He emerged as the paramount leader of the Indian independence movement under the tutelage of Mahatma Gandhi. -Source Wikipedia

Subhas Chandra Bose

Subhas Chandra Bose was an Indian nationalist whose attempt during World War II to rid India of British rule with the help of Nazi Germany and Japan left a troubled legacy. The honorific Netaji (Hindustani language: "Respected Leader"), first applied to Bose in Germany, by the Indian soldiers of the Indische Legion and by the German and Indian officials in the Special Bureau for India in Berlin, in early 1942, is now used widely throughout India. -source Wikipedia

输出:

Indian Leader

Jawaharlal Nehru

Jawaharlal Nehru was the first Prime Minister of India and a central figure in Indian politics for
much of the 20th century. He emerged as the paramount leader of the Indian independence movement
under the tutelage of Mahatma Gandhi. -Source Wikipedia

Subhas Chandra Bose

Subhas Chandra Bose was an Indian nationalist whose attempt during World War II to rid India of
British rule with the help of Nazi Germany and Japan left a troubled legacy. The honorific Netaji
(Hindustani language: “Respected Leader”), first applied to Bose in Germany, by the Indian soldiers of
the Indische Legion and by the German and Indian officials in the Special Bureau for India in Berlin, in
early 1942, is now used widely throughout India. -source Wikipedia

标记支持HTML 5中的全局和事件属性。

支持的浏览器

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes