×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Packages
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Login
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who
Ramu Prasad
has Published
94
Answers
How to bitwise XOR of hex numbers in Python?
Python
Programming
Server Side Programming
Ramu Prasad
Published on 20-Apr-2018 12:03:14
You can get the XOR of any type of numbers using the ^ operator. Specifically for hex numbers, you can use:a = 0x12ef b = 0xabcd print(hex(a ^ b))This will give the output:0xb922The 0x at the beginning of the numbers implies that the number is in hex representation. You can ...
Read More
How will you explain Python for-loop to list comprehension?
Python
Programming
Ramu Prasad
Published on 20-Apr-2018 10:29:11
List comprehensions offer a concise way to create lists based on existing lists. When using list comprehensions, lists can be built by leveraging any iterable, including strings and tuples. list comprehensions consist of an iterable containing an expression followed by a for the clause. This can be followed by additional ...
Read More
How to do bitwise complement on a 16-bit signal using Python?
Python
Programming
Ramu Prasad
Published on 19-Apr-2018 15:33:23
If you want to get an inversion of only first 16 bits of a number, you can take a xor of that number with 65535(16 1s in binary). examplea = 3 # 11 in binary b = a ^ 65535 print(bin(b))OutputThis will give the output −0b1111111111111100
Usage of color property in CSS
Javascript
Web Development
Front End Scripts
Ramu Prasad
Published on 13-Apr-2018 15:09:21
The color property is used to set the color of text. You can try to run the following code to learn how to work with the color property in CSS:Example<html> <head> </head> <body> <p style = "color:blue;"> This text will ...
Read More
Set the Background Attachment with CSS
Javascript
Web Development
Front End Scripts
Ramu Prasad
Published on 13-Apr-2018 12:20:00
To set the background-attachment, use the background-attachment property. Background attachment determines whether a background image is fixed or scrolls with the rest of the page.ExampleYou can try to run the following code to learn how to work with the background-attachment property to set fixed background image:<!DOCTYPE html> <html> <head> ...
Read More
How do we set the visible number of lines in a text area in HTML?
HTML
Web Development
Front End Technology
Ramu Prasad
Published on 14-Mar-2018 14:48:54
Use the rows attribute to set the visible number of lines in a text area. You can try to run the following code to implement rows attribute −Example<!DOCTYPE html> <html> <head> <title>HTML rows attribute</title> </head> <body> <form action = "/cgi-bin/hello_get.cgi" method = "get"> ...
Read More
How do we add the maximum number of characters allowed in an element in HTML?
HTML
Web Development
Front End Technology
Ramu Prasad
Published on 14-Mar-2018 12:57:45
Use the maxlength attribute to add the maximum value in HTML. You can try to run the following code to implement maxlength attribute −Example<!DOCTYPE html> <html> <body> <form action = ""> Rank: <input type = "number" ...
Read More
Execute a script when a page has unloaded in HTML?
HTML
Web Development
Front End Technology
Ramu Prasad
Published on 14-Mar-2018 11:33:50
The unloaded attribute triggers when a web page has unloaded. You can try to run the following code to implement unloaded attribute in HTML −Example<!DOCTYPE html> <html> <body onunload = "display()"> <h2>Tutorialspoint</h2> <h3>Simply Easy learning</h3> <script> ...
Read More
How to make graphics with a script in HTML?
HTML
Web Development
Front End Technology
Ramu Prasad
Published on 14-Mar-2018 10:08:12
To make graphics with a script, use the <canvas> tag. The HTML <canvas> tag is for drawing graphics, animations, etc using scripting.The following are the attributes of the <canvas> tag −AttributeValueDescriptionheight pixelsSpecifies the height of the canvas.width pixelsSpecifies the width of the canvas.ExampleYou can try to run the following code ...
Read More
Enclose a text to make it blink with HTML.
HTML
Web Development
Front End Technology
Ramu Prasad
Published on 13-Mar-2018 18:38:34
Use the <blink> tag to blink a text. The HTML <blink> tag is used to enclose a text to make it blink.You can try to run the following code to implement <blink> tag − Note − Do not use this element as it is obsolete.Example<!DOCTYPE html> <html> <head> ...
Read More
1
2
3
4
5
6
7
...
10
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout