Basics of the Web Flashcards
How does the internet work?
- PC or client sends message to Internet Service Provider (ISP) with requests for a website.
- The DNS server then looks for that websites IP address.
- The DNS server then sends the IP to the PC that requested the website.
- The PC gives the websites IP to the ISP.
- The ISP sends it to the internet’s backbone (giant submarine wires that run all over the world).
- The request eventually gets to the server which uses the IP address to retrieve the requested files and sends it back to the PC.
What does HTML stand for?
Hypertext Markup Language. It tells the browser how to implement web pages.
Name three self closing tags
- img
- br
- link
What is a mojibake error?
If a browser cannot read the character set encoding then you get a mojibake error.
What is UTF-8?
Unicode 8 is the universal character set and UTF-8 is it’s encoding. It is the most commonly used.
What is the ‘DOCTYPE’ keyword used for?
The doctype tag tells the browser what version of HTML to use when interacting with the webpage.
What does the alt modifier do?
The ‘alt’ keyword allows search engines to index your image to searches.
How do we add links to our webpages?
We must use an anchor tag and a href HTML attribute. The text in between the tags will become a clickable link. It has the form:
Google
What are the six elements of a table?
table thead tfoot tbody tr td
What element types should you use for a password entry?
A form with a label, textbox and submit button. It would have the form:
- Creates form
Password: - Creates element label
- Creates textbox input
How do you change the colour of a element in CSS inline to blue?
element style = “background-color:blue”
What languages does CSS work on?
CSS allows us to style markup languages such as HTML and XML.
Where should you place an internal CSS?
Within the head document tags within style tags.
E.g- CSS_needed
What is the chrome extension pesticide useful for?
It marks a box around all the elements of a webpage allowing us to style it easier.
Where should the link go to an external CSS style sheet?
We should link to the style sheet within the head of a document using the form:
What is the first step we should take when debugging a web page?
Head to the developer tools and view the console. That way we can see any errors the browser is having loading the file and elements.
What is the anatomy of CSS syntax?
Selector - selects element property - selects element property value - changes value CSS syntax has the form: selector {property: value;}
What is the class attribute used for in a tag?
The class attribute allows us to give each tag a specific label. That way we can distinguish between each element and style it.
When should you use id when should you use class?
Id’s must be unique however classes can be used over and over again. So if you want to select multiple elements use a class. To select one element you can use an id.