About: Div and span

An Entity of Type: Thing, from Named Graph: http://dbpedia.org, within Data Space: dbpedia.org

In HTML, div and span tags are elements used to define parts of a document, so that they are identifiable when a unique classification is necessary. Where other HTML elements such as p (paragraph), em (emphasis), and so on, accurately represent the semantics of the content, the additional use of span and div tags leads to better accessibility for readers and easier maintainability for authors. Where no existing HTML element is applicable, span and div can valuably represent parts of a document so that HTML attributes such as class, id, lang, or dir can be applied.

Property Value
dbo:abstract
  • In HTML, div and span tags are elements used to define parts of a document, so that they are identifiable when a unique classification is necessary. Where other HTML elements such as p (paragraph), em (emphasis), and so on, accurately represent the semantics of the content, the additional use of span and div tags leads to better accessibility for readers and easier maintainability for authors. Where no existing HTML element is applicable, span and div can valuably represent parts of a document so that HTML attributes such as class, id, lang, or dir can be applied. span represents an inline portion of a document, for example words within a sentence. div represents a block-level portion of a document such as a few paragraphs, or an image with its caption. Neither element has any meaning in itself, but they allow semantic attributes (e.g. lang="en-US"), CSS styling (e.g., color and typography), or client-side scripting (e.g., animation, hiding, and augmentation) to be applied. (en)
  • У HTML теги div і span є елементами, які використовуються для визначення частин документа, щоб їх можна було ідентифікувати. Якщо інші елементи HTML, як p (paragraph - абзац), em (emphasis - наголос), точно представляють семантику вмісту, то використання тегів span і div призводить до кращої доступності для читачів і легшої підтримки для авторів. Якщо жоден інший елемент HTML не може бути застосованим, span і div можуть представити частини документа для застосування атрибутів class, id, lang або dir. span представляє вбудовану (інлайн) частину документа, наприклад, слова в реченні. div представляє частину документа на рівні блоку, наприклад, кілька абзаців, або зображення з підписом. Жоден з цих елементів не має семантичного значення, але вони дозволяють використовувати семантичні атрибути (наприклад, lang="uk" ), стилі CSS (наприклад, color і typography) або застосовувати сценарії на стороні клієнта (наприклад, анімацію, приховування та збільшення). Наприклад, якщо хтось хоче зробити певну частину тексту всередині абзацу червоним, вони будуть використовувати span <span style="color: red;">я червоний!</span> Це поверне текст червоного кольору. В результаті побачимо: я червоний! (uk)
dbo:wikiPageExternalLink
dbo:wikiPageID
  • 3212154 (xsd:integer)
dbo:wikiPageLength
  • 13442 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 1119414923 (xsd:integer)
dbo:wikiPageWikiLink
dbp:wikiPageUsesTemplate
dcterms:subject
rdf:type
rdfs:comment
  • In HTML, div and span tags are elements used to define parts of a document, so that they are identifiable when a unique classification is necessary. Where other HTML elements such as p (paragraph), em (emphasis), and so on, accurately represent the semantics of the content, the additional use of span and div tags leads to better accessibility for readers and easier maintainability for authors. Where no existing HTML element is applicable, span and div can valuably represent parts of a document so that HTML attributes such as class, id, lang, or dir can be applied. (en)
  • У HTML теги div і span є елементами, які використовуються для визначення частин документа, щоб їх можна було ідентифікувати. Якщо інші елементи HTML, як p (paragraph - абзац), em (emphasis - наголос), точно представляють семантику вмісту, то використання тегів span і div призводить до кращої доступності для читачів і легшої підтримки для авторів. Якщо жоден інший елемент HTML не може бути застосованим, span і div можуть представити частини документа для застосування атрибутів class, id, lang або dir. <span style="color: red;">я червоний!</span> (uk)
rdfs:label
  • Div and span (en)
  • Div and span (uk)
rdfs:seeAlso
owl:sameAs
prov:wasDerivedFrom
foaf:isPrimaryTopicOf
is dbo:wikiPageRedirects of
is dbo:wikiPageWikiLink of
is foaf:primaryTopic of
Powered by OpenLink Virtuoso    This material is Open Knowledge     W3C Semantic Web Technology     This material is Open Knowledge    Valid XHTML + RDFa
This content was extracted from Wikipedia and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License