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?
1- with script tag with the src attribute : <script src="yourScript.js"></script>
.
2-We link a CSS file to an HTML document by using the tag in the head section
3- HTML structures content, CSS styles it, and JavaScript adds interactivity to webpages.
4-The DOM is a programming interface representing web documents as object trees. JavaScript uses it to access, update content, and create interactive web pages.
5-Browsers parse HTML into a tree-like DOM structure.
6- Elements are individual components in HTML that define the structure and content of a webpage.
7-Attributes provide info about elements, e.g.,
8-JavaScript enables dynamic actions, modifies content, responds to events.