How to add a base URL for all the links in a page in HTML?

Nancy Den
Published on 13-Mar-2018 10:38:17
To add a base URL, use the <base> tag in HTML. For example, you can set the base URL once at the top of your page in the header section, then all subsequent relative links will use that URL as a starting point.ExampleYou can try to run the following code ... Read More

How to add an address element in HTML?

George John
Published on 13-Mar-2018 10:39:01
To add an address to the web page, use the address element in HTML. You can try to run the following code to implement address element in HTML −Note − The address element renders in italic.Example<!DOCTYPE html> <html>    <head>       <title>HTML address element</title>    </head>    <body>   ... Read More

How to create the tabbing order of an element in HTML?

Sravani S
Published on 13-Mar-2018 10:39:48
Use the tabindex attribute in HTML to set the tab order of an element. It gives you the authority to change the order of your TAB usage on the keyboard.ExampleYou can try to run the following code to create tabbing order of an element in HTML −<!DOCTYPE html> <html>   ... Read More

How to use inline CSS style for an element in HTML?

Daniol Thomas
Published on 13-Mar-2018 10:32:58
Use the style attribute to set the inline CSS style. The following is the syntax −Syntax<element style="mystyles">Here, mystyles are one or more CSS properties. Separate them with semicolons.ExampleYou can try to run the following code to implement inline CSS style for an element in HTML −<!DOCTYPE html> <html>    <body>     ... Read More

Create a shortcut key to activate an element in HTML

Chandu yadav
Published on 13-Mar-2018 10:29:34
To create a shortcut key, use the access attribute in HTML. Let us say you need to add a shortcut key to the following linkHadoop TutorialTo let shortcut keys work correctly on Firefox web browser (Windows), you need to add it like this −[Alt] [Shift] + accesskeyExampleYou can try to ... Read More

Using more than one CSS classes for an element in HTML

Priya Pallavi
Published on 13-Mar-2018 10:26:32
To add more than one CSS classes, you need to use the class attribute in HTML.ExampleYou can try to run the following code to learn how to implement more than one CSS classes for an element in HTML −<!DOCTYPE html> <html>    <head>       <style>       ... Read More

How to Find HCF or GCD using Python?

Jayashree
Published on 07-Mar-2018 00:50:50
Highest Common Factor or Greatest Common Divisor of two or more integers is the largest positive integer that evenly divides the numbers without a remainder. For example, the GCD of 8 and 12 is 4.x = int(input("Enter first number: "))   y = int(input("Enter second number: "))   if x ... Read More

How to create Ordered dictionaries in Python?

Jayashree
Published on 07-Mar-2018 00:40:06
An OrderedDict is a dictionary subclass that remembers the order in which its contents are added, It is defined in collections module of Python library. OrderDict remembers the order of addition of key-value pairs in a dictionary>>> from collections import OrderedDict >>> od=OrderedDict(d.items()) >>> od OrderedDict([('banana', 3), ('apple', 4), ('pear', ... Read More

What are Ordered dictionaries in Python?

Jayashree
Published on 07-Mar-2018 00:35:42
An OrderedDict is a dictionary subclass that remembers the order in which its contents are added, supporting the usual dict methods.If a new entry overwrites an existing entry, the original insertion position is left unchanged. Deleting an entry and reinserting it will move it to the end.>>> from collections import ... Read More

Where are operators mapped to magic methods in Python?

Jayashree
Published on 07-Mar-2018 00:10:08
You can find the operators mapped to different magic methods here − link
Advertisements