HTML Flashcards
What is HTML?
HTML is a hyper text markup language , Is a standard text formating language used for creating and displaying pages on the web.
What is Hypertext?
Hypertext refers to links that connect one page to another
What is Markup?
Markup refers the use of tags, it tells a web browser how to display text images and other forms
How can you make a page responsive?
by using flex-box, media-query,by using relative units like percentage, rems and ems
What is a new features in HTML5?
1.semantic elements:- header,nav, footer
2. multimedia support;- audio and vedio
3. canvas
4. webstorage:- local storage,session,cookie
What is meta tag?
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,
What is doctype?
its short for document declaration that tells a web browser by which version of html the web page is written.
What is veiwport?
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
Session Cookie vs Local Storage vs Session Storage
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
SVG vs Canvas
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
Class vs Id attributes in HTML
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