---
schema_version: "1"
id: ca2f87e776664f471428fe5a605df4bbe46e077962fadd94ae5006f15898d2e8
title: Events
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/accessibility/accessibility-events.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/accessibility-events.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c20222283751e3eacfd2b5c479ae19076b460d54e14109a5956de13d36ff016b
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# Events

Although you can attach an `onclick` event to any type of element, for accessibility, consider only applying this event to elements that are actionable in HTML by default, such as `<a>`, `<button>`, or `<input>` tags in component markup. You can use an `onclick` event on a `<div>` tag to prevent event bubbling of a click.

