One Pager Cheat Sheet
- We will explore modifying and animating HTML elements and CSS styles with JavaScript code for creating user-engaging websites, and also learn about internet protocols and webservers to make them available on the internet.
- We can use
ID selectors
(#
symbol) andclass selectors
(.
symbol) inCSS
to style individualHTML
elements assigned withIDs
orclasses
as attributes. - All HTML elements can have
id
andclass
attributes that can be used to target single or multiple elements for styling. - JavaScript is a
lightweight
,text-based
programming language that adds interactivity to websites and requires the support of another language (HTML
) for execution. - Linking a
<script>
tag with an external JavaScript file is the most efficient way to add JavaScript code to an HTML page. - JavaScript allows users to interact with HTML elements by attaching JavaScript functions to create dynamic effects with the help of libraries.
- The
<link>
tag is used toadd
stylesheets
to anHTML
document, while the<script>
tag is used to include a script, with thesrc
attribute specifying the path to theJavaScript
file. Websites are made available on the Internet through the use of
HTML, CSS and JavaScriptfiles, and the Internet retrieves these websites when an address is typed into the address bar of a browser.
- Every website has a unique
IP address
that is recorded in theDNS
directory, which functions like a phone directory connecting domain names to their correspondingIP addresses
, allowing the browser to look up and identify information according to the requested website address. - Using
Internet Protocols
such as TCP, the browser builds a connection with a webserver using the correct IP address obtained from DNS to transfer information. - Browsers make an
HTTP request
to awebserver
, which generates anHTTP response
, allowing the browser to quickly display the requested webpage. - The process of loading a webpage is completed by a user's browser sending an
HTTP request
, then receiving and displaying the webserver'sHTTP response
with the requested content in milliseconds. - We explored the relationship between
browsers
and the files that make up websites.