Account
Login
Categories
HTML
CSS
Python
PHP
MySQL
Linux
HTML
CSS
Python
PHP
MySQL
Linux
Shobha
The best way to predict the future is to invent it
What is the purpose of the role attribute in HTML, and how does it enhance web accessibility?
RELATED INTERVIEW QUESTIONS
How can you dynamically change the content of an HTML document without reloading the page?
How does the <canvas> element work in HTML5?
What is the difference between class and id attributes in HTML?
How does the viewport meta tag work for responsive web design?
How does the data-* attribute work in HTML5? Provide an example of how it can be used with JavaScript.
What are the different types of HTML tags?
What is the use of the pre tag in HTML, and how does it display content differently than the p tag?
What is the <ruby> tag used for in HTML5?
What is the role of the <ruby> tag in HTML5 for rendering East Asian typography?
What is the <iframe> tag used for in HTML5?
Can you explain the role of the <datalist> tag in providing pre-defined options for an <input> field?
How does the href attribute in anchor (<a>) tags behave with relative versus absolute URLs?
How do you use HTML5’s <audio> and <video> tags?
Can you explain the role of the rel attribute in the <link> tag?
How can the required attribute in form elements help in validation?
X