[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/HTML/Reference/Elements/span [Back]  [Original]

<span> - HTML | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

<span>

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..

HTML- <span> , , , . ( class id) , , lang. . <span> <div>, <div> , <span> .

In this article

<p>
  Add the <span class="ingredient">basil</span>,
  <span class="ingredient">pine nuts</span> and
  <span class="ingredient">garlic</span> to a blender and blend into a paste.
</p>

<p>
  Gradually add the <span class="ingredient">olive oil</span> while running the
  blender slowly.
</p>
span.ingredient {
  color: #f00;
}
, .
.
, .
, .
ARIA-
DOM- HTMLSpanElement ( HTML5, HTMLElement)

.

1

HTML

html
<p><span>- </span></p>

2

HTML

html
<li>
  <span>
    <a href="portfolio.html" target="_blank">  </a>
  </span>
</li>

CSS

css
li span {
  background: gold;
}

Specification
HTML
# the-span-element


Web Proxy Viewer  |  New URL  |  Original Page