Inserting Characters : content property

Use content property to insert a string just before or after an element. With CSS 3, you can also use it to specify a string as the content of the element.

.Chapter h2:before {
  content: "Chapter " counter(ChapterNo) ". ";
}

For the content() function that is used with the string-set property, see the section called “Variable strings : string-set property”