HTML Flashcards

1
Q

What is HTML?

A

HTML is a hyper text markup language , Is a standard text formating language used for creating and displaying pages on the web.

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

What is Hypertext?

A

Hypertext refers to links that connect one page to another

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

What is Markup?

A

Markup refers the use of tags, it tells a web browser how to display text images and other forms

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

How can you make a page responsive?

A

by using flex-box, media-query,by using relative units like percentage, rems and ems

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

What is a new features in HTML5?

A

1.semantic elements:- header,nav, footer
2. multimedia support;- audio and vedio
3. canvas
4. webstorage:- local storage,session,cookie

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

What is meta tag?

A

meta tags are a tags that provide a metadata of a website, this metadata provide information about the website that are not visible to the user but used by web browsers and search engines, it written inside the heading tag,

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

What is doctype?

A

its short for document declaration that tells a web browser by which version of html the web page is written.

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

What is veiwport?

A

The viewport is the visible area of a web page that used by the device screen and crutial for creating responsive and optimized webpages that work on all devices

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

Session Cookie vs Local Storage vs Session Storage

A

They are a ways of storing data on a client web-brows, they have different properties

Size limit:- cookie and session storage have few killobytes and local storage have larger megabyte

persistance:- cookie and session deleted when the browser is closed while local storage styes until the client by itself deletes

accesablity:- session and local storage are only acccesed by client-side while cookie accessin on both sides server and client

use case:- cookie- authontication
local storage:- user preferences
session storage:- shoping cart

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

SVG vs Canvas

A

svg is for static and simple graphics, can be scsaled up and down without loosing quality

canvas on the other hand used for complex graphics, its a dynamics and interactive graphics that users can create it on a fly by input

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

Class vs Id attributes in HTML

A

both calss and id used for select html elements in css the difference is we can assign the same class for multiple elements but we can’t assign one id for more than one element

id has more presidency than class

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