- Then simply load the HTML file in the browser
- Now link this js file with the HTML document using script tag like:
- Either in the body or in the head.
CSS(styles.css): The CSS code only targets two elements ‘a’ and ‘div’ element whose ID is ‘plain’.
Output: Live Output
- A page is known as a document for the purpose of scripting on a web page.
- Properties of the document can be referenced by writing the document followed by a dot, followed by the property name. The document has lots of properties.
The above code is a decent example of how we should make a directory, how to link different types of code files with each other, and how to write simple yet effective code.
Please Login to comment...