HTML, CSS, Bootstrap, JavaScript Flashcards
What is HTML?
Hyper Text Markup Language, used to define how a web page is laid out using tags.
What is CSS?
Cascading Style Sheet which defines how elements will look on the web page.
How can CSS be applied?
- External - In a separate file that’s linked.
- Internal - At the top of the document in style tags.
- Inline - as an attribute on the elements themselves.
What is iFrame?
- An HTML document embedded inside another HTML document on a website.
- The IFrame element is used to insert content from another source, like an ad on a web page.
What is DOM?
Document Object Model, represents the html page structure as nodes and objects.
What is Bootstrap?
A front-end, open source toolkit used to speed up development with HTML, CSS, and JavaScript.
Built for mobile first web-development using a grid system.
What are Meta Tags?
- Provide metadata about the HTML document.
- Metadata will not be displayed on the page, but will be machine parsable.
- Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata
What is ASCII?
- American standard code information interchange
- A character encoding standard for electric communication.
What is UTF-8?
- Unicode Transformation Format
- 8 means it uses 8 bit blocks to represent a character
- A character encoding that can contain any unicode characters
What tag would you use to create tables?
- The table tag
- Th is table head
- Tr is table row
- Td is table data (column data)
What are the types of lists?
- Ordered list
- Ol
- li
- Unordered list
- Ul
- li
- Description list
- Dl
- Dt
- Dd
What does attribute “required” do?
Used on input to specify that it must be filled out for the form to submit.
What does attribute ‘target=”_blank”’ do?
- Anchor links may have the target attribute which controls what happens when the anchor is clicked.
- If the target is _blank this tells the browser to open a new window (or tab depending on user settings) when the link is clicked.
JavaScript and AJAX
- JavaScript is an object oriented interpreted scripting language
-Used on web pages for DOM manipulation to make
the pages more interactive. - AJAX stands for Asynchronous JavaScript and XML.
- A new technique for creating better, faster, and more interactive web applications using XML, HTML, CSS, and JavaScript
Is JavaScript loosely typed or strict typed?
JavaScript is loosely typed you don’t declare the data types of variables explicitly.
Is JavaScript case-sensitive?
Yes
What is Prototypical Inheritance?
- Everything in javascript is an object
- Each object has a private property which holds a link to another object called its prototype.
- When you construct an object the prototype chain links all the way up to Object the parent of everything in javascript to build the object.
Is JavaScript Pass-By-Value or Pass-By-Reference?
- For primitives javascript is pass by value.
- Javascript also uses call by sharing for objects.
Call by sharing is similar to pass by reference in that the function is able to modify the same mutable object but unlike pass by reference isn’t able to assign directly over it.
What is Type Coercion?
- Type coercion is a property of javascript to attempt to compare values of different types because it doesn’t have strict types
- When == is done it will try to change the type of the object for a temporary comparison.
- A good example is (1 == ‘1’ will be true, even though one is a string and one is a number).
This can be avoided by using === which won’t try to do any casting.
What are the variable scopes in JavaScript?
Global and local scope
What are functions in JavaScript?
- Functions are objects to start
- A function object defines a series of tasks and/or calculates a value.
- Must be defined in the scope you wish to call it in.
What are the types of functions?
- Function declaration - create a function but don’t assign it to a variable
- Function expression - create a function and assign it to a variable
What is an anonymous function?
- A function that is created at runtime.
- The function operator can be used anywhere that it’s valid to use an expression.
- Called “anonymous” because the function was not “named”
What is a self-invoking function?
- A self-invoking function is started automatically without being called, this is done right after it’s created.
- This is used for avoiding naming conflict as well as for achieving encapsulation.
- Variables or declared objects are not accessible outside this function.