Link & Script Tags

DevJunctionPoint
0

  • The <link> and <script> tags are essential elements within an HTML document's <head> section. 
  • They serve various purposes, like linking external stylesheets or including JavaScript files.

<link> Tag

  • The <link> tag is commonly used to link external stylesheets to an HTML document. It's a self-closing tag, meaning it doesn't require a closing tag.


<link rel="stylesheet" type="text/css" href="styles.css"> 

<script> Tag

  • The <script> tag is used to include JavaScript code or files in an HTML document. Unlike the <link> tag, the <script> tag must be closed with a </script> tag.

<script src="script.js" type="text/javascript"></script>


Tags

Post a Comment

0Comments

Do leave your comments

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Check Now
Ok, Go it!
To Top