Professional Documents
Culture Documents
What Is DNS? Explain Working of DNS: HTML XML
What Is DNS? Explain Working of DNS: HTML XML
What Is DNS? Explain Working of DNS: HTML XML
HTML XML
It was written in 1993. It was released in 1996.
HTML stands for Hyper Text Markup Language. XML stands for Extensible Markup Language.
HTML is static in nature. XML is dynamic in nature.
It was developed by WHATWG. It was developed by Worldwide Web Consortium.
It is termed as a presentation language. It is neither termed as a presentation nor a programming
language.
HTML is a markup language. XML provides a framework to define markup languages.
HTML can ignore small errors. XML does not allow errors.
It has an extension of .html and .htm It has an extension of .xml
HTML is not Case sensitive. XML is Case sensitive.
HTML tags are predefined tags. XML tags are user-defined tags.
There are limited number of tags in HTML. XML tags are extensible.
HTML does not preserve white spaces. White space can be preserved in XML.
HTML tags are used for displaying the data. XML tags are used for describing the data not for
displaying.
In HTML, closing tags are not necessary. In XML, closing tags are necessary.
HTML is used to display the data. XML is used to store data.
HTML does not carry data it just displays it. XML carries the data to and from the database.
HTML offers native object support. IN XML, the objects are expressed by conventions using
attributes.
HTML document size is relatively small. XML document size is relatively large as the approach of
formatting and the codes both are lengthy.
An additional application is not required for parsing of DOM(Document Object Model) is required for parsing
JavaScript code into the HTML document. JavaScript codes and mapping of text.
SSL TLS
SSL stands for Secure Socket Layer. TLS stands for Transport Layer Security.
SSL (Secure Socket Layer) supports TLS (Transport Layer Security) does not support
the Fortezza algorithm. the Fortezza algorithm.
SSL (Secure Socket Layer) is the 3.0 version. TLS (Transport Layer Security) is the 1.0 version.
In SSL( Secure Socket Layer), the Message digest is In TLS(Transport Layer Security), a Pseudo-random function
used to create a master secret. is used to create a master secret.
In SSL( Secure Socket Layer), the Message In TLS(Transport Layer Security), Hashed Message
Authentication Code protocol is used. Authentication Code protocol is used.
SSL (Secure Socket Layer) is more complex than TLS (Transport Layer Security) is simple.
TLS(Transport Layer Security).
SSL (Secure Socket Layer) is less secured as TLS (Transport Layer Security) provides high security.
compared to TLS(Transport Layer Security).
SSL is less reliable and slower. TLS is highly reliable and upgraded. It provides less latency.
SSL has been depreciated. TLS is still widely used.
SSL uses port to set up explicit connection. TLS uses protocol to set up implicit connection
URI URL
URI is an acronym for Uniform Resource Identifier. URL is an acronym for Uniform Resource Locator.
URI contains two subsets, URN, which tell the name, and URL is the subset of URI, which tells the only location of
URL, which tells the location. the resource.
All URIs cannot be URLs, as they can tell either name or All URLs are URIs, as every URL can only contain the
location. location.
A URI aims to identify a resource and differentiate it from A URL aims to find the location or address of a resource
other resources by using the name of the resource or location on the web.
of the resource.
An example of a URI can be ISBN 0-486-35557-4. An example of an URL is https://www.javatpoint.com.
It is commonly used in XML and tag library files such as It is mainly used to search the webpages on the internet.
JSTL and XSTL to identify the resources and binaries.
The URI scheme can be protocol, designation, specification, The scheme of URL is usually a protocol such as HTTP,
or anything. HTTPS, FTP, etc.
DOM
Dom stands for document object model
With the help of DOM elements can be accessed as well as changed using JS document
Whenever a web page is loaded, browser automatically creates a DOM of that web page
Dom allows user to use JS dynamically
DOM in nothing but W3C(world wide web
consortium) standardIn DOM every element is defined
as objects
Each object has properties as well as standardsDOM is
divided into 3 different parts-
1. Core DOM- it supports all documents
2. XML DOM- it supports only xml documents
3 HTML DOM- it supports only html documentsFeatures
OF DOM-
1. Dynamically change all html elements
2. Change all css styles
3. Interact with all html events
4. Create new html event
Methods of DOM-
1. getElementbyId()
2. getElementsByTagName()
3. createElement() 5. removeChild() 7. getAttribute()
4. appendChild() 6. node() 8. setAttribute()
Keyword Description Example
var Declares a variable with function-level scope. var message = "Hello!";
let Declares a variable with block-level scope. let message = "Welcome!";
const Declares a constant variable whose value cannot be changed. const message = "Goodbye!";
Loops are a fundamental programming concept that allows you to repeat a block of code multiple times. They are used in
various situations, such as iterating over arrays, processing data, and generating sequences.
Types of Loops in JavaScript
JavaScript offers several types of loops, each suited for different scenarios:
1. for loop: The most common loop type, used to execute a block of code a fixed number of times.
JavaScript
for (let i = 0; i < 5; i++) {
console.log(i); // Output: 0, 1, 2, 3, 4
}
Functional components
It contains only render method It is also known as stateless component because they do
Does not have their own state not hold or manage state
Does not receive any data as parameter
e.g.
import React from 'react';
const Greeting = () => {
return <h1>Hello, React!</h1>;};
export default Greeting;
Class component
More complex than functional components It is stateful component
It requires to extends from react.component and create They can hold and manage states
render function which returns react element
e.g. import React, { Component } from 'react';
class Greeting extends Component {
render() {
return <h1>Hello, React Class Component!</h1>;
}}
export default Greeting;