Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Objects Includes and iframes

MELVIN GEORGE
MELVIN GEORGE
3,490 Points

Is "<script> tag used only for java script...? Or any other files..?

Did <script> tag uses any other type of code..?

1 Answer

Liam Maclachlan
Liam Maclachlan
22,805 Points

Hey Melvin,

This is a pretty good description :)

"The HTML script element is used to insert client side script code into a document. This can be achieved in two ways: inserting the code directly as content of this element or referring to an external file containing script code with the "src" attribute. In the second case, user agents should ignore the content of the element.." - http://www.htmlquick.com/reference/tags/script.html

Liam Maclachlan
Liam Maclachlan
22,805 Points

Np, man. Hope you enjoy TreeeHouse :)