Dino Geek, try to help you

How to use global attributes in HTML?


Global attributes in HTML are attributes that can be used on any HTML element. They provide additional information about an element. Here is how you can use them.

1. `class` attribute: This attribute is used to specify one or more class names for an element. The class attribute can be used on any HTML element. It is mostly used to point to a class in a style sheet. But it can also be used by a JavaScript (via the HTML DOM) to make changes to HTML elements with a specified class.

Example:
```

Hello, World!

```

In this example, `myClass` is the class name defined in CSS. This `div` will have styling according to `myClass`.

1. `id` attribute: The id attribute specifies a unique id for an HTML element. The id attribute is mostly used to point to a style in a style sheet, and by JavaScript (via the HTML DOM) to manipulate the element with the specific id.

Example:
```

Hello, World!

```

In this example, `myId` is the unique id. It can be styled using CSS and manipulated using JavaScript.

1. `style` attribute: The style attribute specifies inline styles for an element. The style attribute will override styles located in external CSS files and in