What is the use of …
 
Notifications
Clear all

What is the use of style tag in JavaScript?

1 Posts
2 Users
0 Likes
180 Views
0
Topic starter

What is the use of style tag in JavaScript?

1 Answer
0

The <style> tag is not used in JavaScript; it is actually an HTML tag used for defining styles (CSS) for HTML elements within an HTML document. JavaScript is a separate scripting language used to add interactivity and behavior to web pages. JavaScript is typically used to manipulate the Document Object Model (DOM) and handle dynamic content, whereas the <style> tag is used to define the visual presentation of HTML elements through CSS (Cascading Style Sheets).

Share: