Extracting Text from Content Using HTML Slot, HTML Template and Shadow DOM

From CODECS Dev
Draft/726321

Extracting Text from Content Using HTML Slot, HTML Template and Shadow DOM

https://css-tricks.com/extracting-text-from-content-using-html-slot-html-template-and-shadow-dom/

/ * Key points from the article, shown at the end, are extracted using HTML slot and Shadow DOM. * /

Bears

Bears are carnivoran mammals of the family Ursidae. They are classified as caniforms, or doglike carnivorans. Although only eight species of bears are extant, they are widespread, appearing in a wide variety of habitats throughout the Northern Hemisphere and partially in the Southern Hemisphere. Bears are found on the continents of North America, South America, Europe, and Asia. Common characteristics of modern bears include large bodies with stocky legs, long snouts, small rounded ears, shaggy hair, plantigrade paws with five nonretractile claws, and short tails.

While the polar bear is mostly carnivorous, and the giant panda feeds almost entirely on bamboo, the remaining six species are omnivorous with varied diets. With the exception of courting individuals and mothers with their young, bears are typically solitary animals. They may be diurnal or nocturnal and have an excellent sense of smell. Despite their heavy build and awkward gait, they are adept runners, climbers, and swimmers. Bears use shelters, such as caves and logs, as their dens; Most species occupy their dens during the winter for a long period of hibernation, up to 100 days.

Bears have been hunted since prehistoric times for their meat and fur; they have been used for bear-baiting and other forms of entertainment, such as being made to dance. With their powerful physical presence, they play a prominent role in the arts, mythology, and other cultural aspects of various human societies. In modern times, bears have come under pressure through encroachment on their habitats and illegal trade in bear parts, including the Asian bile bear market. The IUCN lists six bear species as vulnerable or endangered, and even least concern species, such as the brown bear, are at risk of extirpation in certain countries. The poaching and international trade of these most threatened populations are prohibited, but still ongoing.

The English word "bear" comes from Old English bera and belongs to a family of names for the bear in Germanic languages, such as Swedish bjorn, also used as a first name, that originate from an adjective meaning "brown". "Bear" therefore originally meant "the brown one." This terminology for the animal originated as a taboo avoidance term: proto-Germanic tribes replaced their original word for bear - arkto - with this euphemistic expression out of fear that speaking the animal's true name might cause it to appear.

Bear taxon names such as Arctoidea and Helarctos come from the ancient Greek word arktos, meaning bear, as do the names "arctic" and "antarctic", from the constellation Ursa Major, the "Great Bear", prominent in the northern sky.

Key Points:

    Want to see where the key points are on the page?