Add an Inline Layer in HTML

Govinda Sai
Updated on 03-Mar-2020 06:18:41

400 Views

Use the tag to add an inline layer. The HTML tag is used to create a layer that occupies space in the containing text flow. Subsequent content is placed after the space occupied by the .This is in contrast to the tag, which creates a layer above the containing text flow, allowing subsequent content to be placed under the layer just created.The HTML tag supports the following attributes −AttributeValueDescriptionabovelayernameThe name of the inline layer that will be positioned directly above the current layer in the z-order.backgroundURLA filename or URL for an image upon which the inline ... Read More

Check If Dictionary is Empty in Python

Pradeep Elance
Updated on 03-Mar-2020 06:17:58

6K+ Views

During analysis of data sets we may come across situations where we have to deal with empty dictionaries. In tis article we will see how to check if a dictionary is empty or not.Using ifThe if condition evaluates to true if the dictionary has elements. Otherwise it evaluates to false. So in the below program we will just check the emptiness of a dictionary using only the if condition.Example Live Demodict1 = {1:"Mon", 2:"Tue", 3:"Wed"} dict2 = {} # Given dictionaries print("The original dictionary : " ,(dict1)) print("The original dictionary : " ,(dict2)) # Check if dictionary is empty if dict1: ... Read More

Check If All Values in a List Are Less Than a Given Value in Python

Pradeep Elance
Updated on 03-Mar-2020 06:12:29

1K+ Views

In python data analysis, we sometime face a situation where we need to compare a given number with a list containing many values. In this article we need to fins if a given number is less than each of the values present in a given list. We are going to achieve it using the following two ways.Using for loopWe iterate through the given list and compare the given value with each of the values in the list. Once all values from the list are compared and the comparison condition holds good in each of the step, we print out the ... Read More

Possible Words Using Given Characters in Python

Pradeep Elance
Updated on 03-Mar-2020 06:11:04

857 Views

In this article we are going to see a python program that will give output of possible words from a given set of characters. Here we are taking a list as an input which will contain the set of reference words and another list containing the characters from which the words are made up of.In the below program, we define two functions. One to take the letters from the second list and make up words. Another function to match the words formed with the words present in the given list of words.Example Live Demodef Possible_Words(character):    x = {}    for ... Read More

Add NoFrame Section in HTML

radhakrishna
Updated on 03-Mar-2020 06:01:14

267 Views

Use the tag to add a noframe section. The HTML tag is used to handle the browsers which do not support tag. This tag is used to display an alternate text message.Example           HTML noframes Tag                                                 Your browser does not support frames.                    

Include Content for Non-Supporting Browsers of the Embed Tag in HTML

Srinivas Gorla
Updated on 03-Mar-2020 06:00:35

115 Views

The HTML tag is used to handle browsers which do not support the tag. The tag makes it easy to supply alternative content that tells users what they are missing.Example           HTML noembed Tag                                  

Add Bold Text in HTML

Nishtha Thakur
Updated on 03-Mar-2020 05:58:35

2K+ Views

To display bold text, use the tag. The HTML tag is used for emphasizing an important text.ExampleYou can try to run the following code to implement tag in HTML −           HTML strong Tag               This is an important text    

Embed Audio in Web Pages using HTML5

Giri Raju
Updated on 03-Mar-2020 05:57:56

403 Views

Use the tag to embed audio in a web page in HTML5. You can try to run the following code to implement tag −Example           HTML audio Tag               Click on Play button...       (Song: Kalimba which is provided as a Sample Music in Windows)                          

Create Hyperlink to Link Another Document in HTML

Chandu yadav
Updated on 03-Mar-2020 05:50:20

3K+ Views

Use the tag to create a hyperlink. The HTML tag is used for creating a hyperlink either to another document, or somewhere within the current document.The following are the attributes −AttributeValueDescriptionCharsetcharacter_encodingDefines the character encoding of the linked document.Cordsif shape = "rect" then coords = "left, top, right, bottom"if shape = "circ" then coords = "centerx, centery, radius"if shape = "poly" then coords = "x1, y1, x2, y2, .., xn, ynSpecifies the coordinates appropriate to the shape attribute to define a region of an image for image maps.downloadfilenameThis downloads the target when user clicks on the hyperlink.HrefURLSpecifies the URL ... Read More

Declare a Class and an Interface in JShell in Java 9

raja
Updated on 03-Mar-2020 05:46:13

378 Views

JShell can provide an interactive shell for quickly prototyping, debugging, and learning Java and Java API without the need for the main() method or need to compile our code before executing it.Declaration of Class:We can declare a class just like we have written a code in Java Language. The JShell can detect when the class completes it.In the below code snippet, we can declare a class Employee with two parameters and one method.C:\Users\User>jshell | Welcome to JShell -- Version 9.0.4 | For an introduction type: /help intro jshell> class Employee { ...>       String empName; ...>       ... Read More

Advertisements