Web technologies Flashcards

(30 cards)

1
Q

What is HTML?

A
  • HTML is the foundational language used to structure content on the web
  • It consists of a series os elements, uaually referred to as “tags”
  • The <html> tag is the root element of the HTML page. Only tags written within this tag are displayed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Text tags in HTML

A
  • <head> : contains metadata (information about the webpage) and is not dislayed itself
    </head>
  • <title> : contains the name of the webpage, displayed on the page tab. It is contained within the <head> tag
    </head></title>
  • <body> : contains all of the contents of the webpage, such as text, images, hyperlinks. There can only be one <body> tag
    </body></body>
  • <h1> - <h6> : heading tags in decreasing importance. <h1> is the most important and hence displayed the biggest. <h6> is displayed the smallest
    </h6></h1></h6></h1>
  • <p> : used for a paragraph of the text. Each paragraph is seperated by a line
    </p>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Image in HTML

A
  • <img></img> : embed an image into the webpage. Contains all the other tags about the image
  • <src> : specifies the source of the image
    </src>
  • <alt> : provides alternative text to be displayed if the image cannot
    </alt>
  • <height> and <width> : specifies the dimensions of the image
    </width></height>
  • <img></img>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Links in HTML

A
  • <a> : anchor tag. Used to create hyperlinks</a>
  • href : attribute contained within the <a> tag (<a href= … >). Contains the URL for where the hyperlink leads to</a>
  • <p>Visit the <a>Save My Exams site</a> for more information.</p>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Lists in HTML

A
  • <ol> : organised list. Displayes a numbered list
    </ol>
  • <ul> : unorganised list. Displays a bulletpointed list
    </ul>
  • <li> used to define each value in a list
    </li>

<ul>
<li>html</li>
<li>head</li>
<li>title</li>
</ul>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do search engines work?

A
  • Crawling: gathering the information from the webpages
  • Indexing: organising and structing the information from the webpages
  • Ranking: recommending / ranking the webpages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is crawling?

A
  • Webpages are discovered by engines through software programs called crawlers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do crawlers work?

A
  • Start with a seed set of URLs
  • Follow links from one webpage to another, systematicaly visiting all of the pages on the web
  • Follow rules and guidelines established by website owners
  • Once a crawler reaches a webpage, it fetches the HTML contents of the page
  • The crawler analyses the HTML structure and retrieces information
  • HTML that was retrieved is broken down into several components
  • This process involves identifying elements, tags and attributes that hold valuable information
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How does indexing work?

A
  • The data extracted from the webpage is indexed, which involves storing the collected information in a structured manner within the search engines database
  • The index allows for quick retrieval and ranking of relevant web pages in response to user queries
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does ranking work?

A
  • When a user enters a query, the search engine searches through the index for matching pages and returns the results they believe are the highest quality and most relevant to the users query
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Benefits of search engine crawling and indexing

A
  • Improved search results
  • Efficient retrieval
  • Ranking and relevance
  • Freshness and updates
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is PageRank algorithm?

A
  • It evaluates and ranks webpages based on their perceived relevance and importance
  • Pages that are considered more important are ranked higher in search results
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the key elements of the PageRank algorithm?

A
  • Link analysis
  • Link weight distribution
  • Iterative calculation
  • Damping factor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is link analysis in PageRank?

A
  • The algorithm analyses the structure of links between pages on the web
  • Webpages are given importance by the algorithm, which considers the quantity and quality of inbound links from other pages
  • Each link acts as a “vote” for the target page
  • Webpages with more “high-quality” links pointing towards them are deemed to be more important
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is link weight distribution in PageRank?

A
  • The algorithm distributes the weight of a webpage by sharing a portion of its importance with each outgoing link
  • Therefore, pages of higher importance make a greater impact on the ranking of other pages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How is iterative calculation used in PageRank?

A
  • Uses a repetetive calculation process
  • At the beginning, all webpages are given the same value
  • In subsequent iterations, the importance of each page is re-evaluated
  • This process continues until the rankings are stable
17
Q

What is the damping factor?

A
  • A value between 0 and 1 (usually 0.85)
  • Represents the probability that a user will not follow a link on a page
18
Q

What factors affect PageRank?

A
  • Relevance
  • User engagement
  • Authority and trust
  • Content freshness
  • Mobile-friendliness
19
Q

What is server side processing?

A
  • Running code and carrying out operations on the server instead of the clients device of browser
  • Utilises server side programming languages such as PHP, python or java
20
Q

Examples of server side processing with PHP

A
  • Data retrieval and manipulation
  • Server operations
  • Form processing
21
Q

Benefits of server side processing

A
  • Improved security measures can be implemented
  • Uses the resources of the server to perform advanced calculations
  • Consistent behaviour across different devices and browsers
  • Easily be scaled by adding more servers
22
Q

Drawbacks of server side processing

A
  • When multiple requests are made to the server, overall performance can decrease. This is known as increased server load
  • May result in latency and increased response times
  • Relies on the availability and reliability of the server
  • Limited real-time interactivity and responses
  • May require more complex development
23
Q

What is client side processing?

A
  • Carrying out code or processing tasks on the user’s device, usually within the browser
  • Primarily done using javascript
24
Q

Examples of client side processing with javascript

A
  • Form validation: validate user input in real time, receive instant feedback
  • DOM manipulation
  • Dynamically updating content without requiring a full page refresh
25
Benefits of client side processing
- Enhanced user experience, interactive and dynamic usage - Server load is reduced - Feedback to user input can be provided in real time - Seamless and engaging browser experience - Offline functionality
26
Drawbacks of client side processing
- Potential security risk as information can be seen by users - Compatability of devices and browsers - Hurt page load time - Greatly dependent on javascript - intellectual property at risk
27
What is CSS?
- Defines the style or appearance of a webpage - Can be placed within the HTML or externally in a file
28
What is a class in CSS?
- A type of selector that is used to apply a specific style to one or more HTML elements - A class is denoted by a full stop - The class selector allows the same styles to be applied to multiple HTML elements across the webpage
29
What is an identifier in CSS?
- A type of selector that is used to apply a specific style to ony one HTML element - Unique within a webpage and can only be used once per page
30
What is JavaScript?
- A programming language that adds interactivity and dynamic functionality to webpages - Allows a webpage to manipulate HTML elements, perform calculations, handle user input and more