Complete the code to add a global attribute that sets the language of the page to English.
<html [1]="en"> <head> <title>My Page</title> </head> <body> <p>Hello world!</p> </body> </html>
The lang attribute is a global attribute used to specify the language of the document. Here, lang="en" means English.
Complete the code to add a global attribute that provides a tooltip text when hovering over the button.
<button [1]="Click me to submit">Submit</button>
The title attribute is a global attribute that shows extra information as a tooltip when the user hovers over the element.
Fix the error in the code by choosing the correct global attribute to make the div focusable by keyboard.
<div [1]="0">Focusable content</div>
The tabindex attribute is a global attribute that allows elements to receive keyboard focus. Setting it to "0" makes the element focusable in the natural tab order.
Fill both blanks to add global attributes that make the paragraph text unselectable and give it a unique identifier.
<p [1]="on" [2]="intro-text">This text cannot be selected.</p>
The unselectable attribute (though not standard, supported in some browsers) can prevent text selection. The id attribute gives the element a unique identifier.
Fill all three blanks to add global attributes that set the element's language, add a tooltip, and make it draggable.
<section [1]="fr" [2]="Drag me" [3]="true"> <p>Bonjour!</p> </section>
The lang attribute sets the language to French. The title attribute adds a tooltip. The draggable attribute makes the element draggable.