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- <script>./index.js</script>
2-
<link rel="stylesheet" href="styles.css" />
3- HTML for structure, CSS for styling and JavaScript for interactiveness
4- DOM is responsible for tracking and reacting to the changes made by the user and the interface. DOM is a "middle layer" that presents the HTML, CSS and JavaScript loaded by the browser when we visit a page.
5- When a web page is loaded, the browser first reads the HTML text and constructs DOM Tree from it.
6- The Element object represents an HTML element defined by their tag.
7- HTML attributes provide additional information about HTML elements.
8- Interactive using buttoms and inputs.