1.3.4 Web Technologies
No description yet. This curated deck is ready for daily study.
Card preview (10)
Describe the purpose of HTML within the code of a website
-HTML defines the structure of a webpage -HTML defines the content of a webpage -…using tags
Describe the purpose of CSS within the code of a website
-CSS defines the style -…using selectors such as classes and IDs -It can be placed within HTML or externally in a file -Multiple pieces of CSS can be combined (the more local instances overriding)
Describe the purpose of Javascript within the code of a website
-Adds interactivity to websites -Input from HTML forms can be retrieved from a webpage and processed using Javascript -Often used to validate input data on the client computer
How do you output data by changing the contents of HTML in Javascript?
chosenElement = document.getElementById(“example_id”); chosenElement.innerHTML = “Hello World”;
How do you output data by writing directly to the document in Javascript?
document.write(“Hello World”);
How do you output data by using an alert box in Javascript?
alert(“Hello World”);
How do you link a HTML file to a javascript file?
< script src=”javascript_name.javascript” type=”text/javascript”></script >
How do you link a HTML file to a CSS file?
< link rel=”stylesheet” href = “css_name.css” >
How do you add a link to a HTML webpage?
< a href=”url”>name of link</a >
How do you add an image to a HTML webpage?
< img src=”image_link.jpg” >