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?
It is related to HTML, CSS, and JavaScript because JavaScript can manipulate the DOM, update CSS styles, and add/remove HTML elements.
5.When a browser loads an HTML document, it creates a tree-like structure called the Document Object Model (DOM). This model represents the document's elements as nodes in a tree, with each element, attribute, and text content as a node. The browser parses the HTML code to construct this tree, applies CSS styles to the nodes, and renders the content on the screen. JavaScript can interact with the DOM to modify its structure, content, or styles, enabling dynamic and interactive webpages.
6.Elements are the basic parts of HTML documents, defined by tags enclosed in angle brackets. They include start tags, content, and end tags. Elements can have attributes for additional information. They can also be nested within each other to create a structured document.
7.Attributes in HTML provide extra information about elements. They're written in the opening tag as name-value pairs, like src="image.jpg" in an
8.Ways to interact with HTML: JavaScript, CSS, server-side languages, APIs, and browser extensions.
this was done by Omar.Shvan.amal.me