03/09/2023 2:42 am
Topic starter
Notifications
Clear all
What is the use of style tag in JavaScript?
0
What is the use of style tag in JavaScript?
Answer
Add a comment
Add a comment
1 Answer
0
03/09/2023 4:59 am
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).
Add a comment
Add a comment
Forum Information
- 14 Forums
- 1,836 Topics
- 5,052 Posts
- 0 Online
- 1,078 Members
Our newest member: Richardnop
Latest Post: loli
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed