rser')
    
    <span class="code-comment"># Find elements by tag</span>
    all_paragraphs = soup.find_all('p')
    for p in all_paragraphs:
        print(p.text.strip())
    
    <span class="code-comment"># Find elements by CSS selector</span>
    main_heading = soup.select_one('h1')
    print(f"Main heading: {main_heading.text if main_heading else 'Not found'}")
    
    <span class="code-comment"># Find element by ID</span>
    main_content = soup.find(id="main")
    
    <span class="code-comment"># F