Div and span
In HTML, the standard markup language for documents designed to be displayed in a web browser, and 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 (paragraph), (emphasis), and so on, accurately represent the semantics of the content, the additional use of and tags leads to better accessibility for readers and easier maintainability for authors. Where no existing HTML element is applicable, and can valuably represent parts of a document so that HTML attributes such as class , id , lang , or dir can be applied. represents an inline portion of a document, for example words within a... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
In HTML, the standard markup language for documents designed to be displayed in a web browser, and 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 (paragraph), (emphasis), and so on, accurately represent the semantics of the content, the additional use of and tags leads to better accessibility for readers and easier maintainability for authors. Where no existing HTML element is applicable, and can valuably represent parts of a document so that HTML attributes such as class , id , lang , or dir can be applied. represents an inline portion of a document, for example words within a sentence. represents a block-level portion of a document such as a few paragraphs, or an image with its caption. stands for division. The elements 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. defines a "division" of the document, a block-level item that is more distinct from elements above and below it than a span of inline material. Main page Contents Help which produces Main page Contents Help ... is usually preferable instead of this: Main page Contents Help which produces Main page Contents Help Other examples of the semantic use of HTML rather than and elements include the use of elements to divide up a web form, the use of elements to identify such divisions and the use of to identify form elements rather than , or elements used for such purposes. HTML5 introduced several new elements; a few examples include the , , and elements. The use of semantically appropriate elements provides better structure to HTML documents than or . ==Notes==
Cite this
"Div and span". 1786848091. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1369633528 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy