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
How can the class attribute be used for both styling and JavaScript manipulation?
RELATED INTERVIEW QUESTIONS
What is the
tag used for in HTML?
What is the difference between <i> and <em> tags in HTML?
What is the purpose of the <main> element in HTML5?
What is the role of the type attribute in the <script> tag in HTML?
How do you define custom data attributes in HTML5?
How does the href attribute in anchor (<a>) tags behave with relative versus absolute URLs?
What is the use of the defer attribute in the <script> tag?
What is the download attribute in anchor (<a>) tags, and how does it allow you to force file downloads?
How can you avoid content jumping when images are loaded in HTML?
Can you explain the role of meta viewport in responsive design, and how it affects mobile display?
What are the different ways to center content in HTML?
What are the best practices for writing clean, semantic HTML code for a website?
How can you structure an HTML document using header tags (<h1>, <h2>, etc.) for better SEO?
How does the data-* attribute work in HTML5, and what are some use cases?
How do you create a link that opens in a new window in HTML?
X