🔵 🔵 🔵


Primary

၊၊||၊|။

bs4.Tag() ⚬|Documentation|1st|20260122124536-00-⌔

Beautiful Soup Documentation — Beautiful Soup 4.4.0 documentation#tag

Tag

A Tag object corresponds to an XML or HTML tag in the original document:

soup = BeautifulSoup('<b class="boldest">Extremely bold</b>')
tag = soup.b
type(tag)
# <class 'bs4.element.Tag'>

Tags have a lot of attributes and methods, and I’ll cover most of them in Navigating the tree and Searching the tree. For now, the most important features of a tag are its name and attributes.

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •