
Notifications
Clear all
What is the use of style tag in JavaScript?
0
03/09/2023 2:42 am
Topic starter
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
- 22 Forums
- 1,969 Topics
- 5,308 Posts
- 0 Online
- 1,283 Members
Our newest member: Thomasnat
Latest Post: Space bug using " & n b s p ; "
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed