Skip to main content

Posts

Featured

4 html interview questions that you must know.

In this article, we will see some HTML interview questions I faced during interviews.
So let's start,

1)What is Doctype in html?
All HTML documents must start with a <!DOCTYPE> declaration.
The declaration is not an HTML tag. It is an "information" to the browser about what document type to expect.
In HTML 5,
the declaration is simple:
<!DOCTYPE html>

Note:The <!DOCTYPE> declaration is NOT case sensitive.

2)What is DOM in html? The DOM (Document Object Model)is a W3C (World Wide Web Consortium) standard.
The DOM defines a standard for accessing documents:
The HTML DOM is a standard object model and programming interface for HTML.
When a web page is loaded, the browser creates a Document Object Model of the page.
It defines:
The HTML elements as objects
The properties of all HTML elements
The methods to access all HTML elements
The events for all HTML elements
In other words:
The HTML DOM is a standard for how to get, change, add, or delete HTML elements.


3)W…

Life changing Book.

Latest Posts

Javascript/Node.js: 2 Features that you might not know.

Node.js: Bundling your Node.js application to single executable for Windows.

Node.js: Extract text from image using Tesseract.

JavaScript: MediaDevices(Opening webcam to capturing image and downloading it)

What are Webhooks? Example use case of payment Gateway.

Node.js/Angular: SheetJS js-xlsx library with issues and fixes.

JavaScript: Throttling

JavaScript: Pill 1kB library.

Node.js (v.14): 2 Things to know.

JavaScript: Basket.js

Explore over 200k audio books. Subscribe for free trial