How to include extrenal CSS files

We can include external CSS files on the HTML page by using the <link> relationship tag, which is set within the <head> </head> tag on the HTML page.

syntax:

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

example:

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



Include external Javascript files on HTML page

Using tag <script> and SRC attributes, we can include external javascript files and libraries.
The <script> tag can be placed anywhere in the HTML page, either within <head> or within <body> section.

syntax:

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

example:

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



How to add favicon icon on HTML page

<link rel="icon" href="favicon.ico" type="image/x-icon"/>



How to set UTF-8 encoding on HTML page

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

The following, abbreviated form can also be used which is also correct:

<meta charset="UTF-8">






Privacy Policy