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.we can link JavaScript file to an HTML document using the script tag with the attribute src.
2.we can link the CSS file to an HTML document using the tag inside the HTML section.
3.HTML defines the structure of our content, CSS determines the style and layout, and JavaScript makes the content interactive.
4.The Document Object Model (DOM) is a programming interface for web documents. It represents the page so that programs can change the document structure, style, and content. The DOM represents the document as nodes and objects; that way, programming languages can interact with the page.
5.Firstly, bytes are converted to HTML characters and then to Tokens. In the next step, Tokens are converted into nodes. Nodes are different objects with certain properties. After the nodes are created, the DOM tree is created.
6.An HTML element is defined by a start tag, some content, and an end tag.
7.An HTML attribute is a piece of markup language used to adjust the behavior or display of an HTML element.
8.Using JavaScript, you can interact with the HTML DOM to dynamically modify the content and behavior of an HTML page