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?
How do you link a JavaScript file to an HTML document?
there's 2 options :
option 1: at the beginig in the head tag (less efficiant way)
option 2: at the end of the body tag inside a script tag (more efficiant way)
that can via a path that we select
How do you link a CSS file to an HTML document?
it goes under the style tag in the head section when it's referenced by another file (external)
What are the roles of HTML, CSS, and JavaScript on a webpage?
HTML containes the context of the page
CSS styles and gives a visuale look to the website
JS the interaction and click-on of the elements on the website
What is the DOM? How is it related to HTML, CSS, and JavaScript?
DOM: a programming interface for web documents
The DOM represents the document as nodes and objects; that way, programming languages can interact with the page.
The DOM provides a way for JavaScript to access and manipulate the content, structure, and presentation of a web page
How does HTML get rendered into DOM?
and constructs the CSSOM Tree from it. After these trees are constructed, then it constructs the Render-Tree from it.
6.What are elements?
An HTML element is defined by a start tag, some content, and an end tag. HTML Elements. The HTML element is everything from the start tag to the end tag:
What are attributes in HTML?
attributes are special words used inside the opening tag to control the element's behaviour. HTML attributes are a modifier of a HTML element type.
How can we interact with HTML?
with respect