Answer the following questions with your group:
- How do you link a JavaScript file to an HTML document?
- How do you link a CSS file to an HTML document?
- What are the roles of HTML, CSS, and JavaScript on a webpage?
- What is the DOM? How is it related to HTML, CSS, and JavaScript?
- How does HTML get rendered into DOM?
- What are elements?
- What are attributes in HTML?
- How can we interact with HTML?
Q1/
<script src="JSfile.js"></script>Q2/
Q3/
HTML is a structure of the page, and CSS is the styling for its structure and JS provides interaction for the elements of the page.
Q4/
DOM is a programming interface that bridges between web pages and scripting languages.
Q5/
The browser first fetches the HTML file from the server then starts parsing the HTML code, this involves breaking it down into tokens, each token is then processed and converted into a corresponding node in the DOM tree.
Q6/