Change the Color of Active Links with CSS

Chandu yadav
Updated on 05-Mar-2020 04:59:07

5K+ Views

Use the :active class to change the color of active links. Possible values could be any color name in any valid format. ExampleYou can try to run the following code to implement the color of an active link −                    a:active {             color: #FF00CC          }                     My Link    

Create JShell Instance Programmatically in Java 9

raja
Updated on 04-Mar-2020 14:06:19

518 Views

JShell is an interactive tool introduced since Java 9. It is Java's first official REPL tool to create a simple programming environment in the command-line that reads the user's inputs, evaluates it, and prints the result.We can able to create a new JShell instance programmatically in Java language. JShell and its associated APIs can be found under jdk.jshell package. we can get a new instance for JShell by using the static method: create() of JShell class. The eval() method of JShell class used to add an expression to JShell instance. It returns a list of events triggered by the evaluation. It is exactly one ... Read More

Usage of :lang Pseudo-Class in CSS

Arjun Thakur
Updated on 04-Mar-2020 12:46:57

87 Views

Use the :lang pseudo class to specify a language to use in a specified element. This class is useful in documents that must appeal to multiple languages that have different conventions for certain language constructs.ExampleYou can try to run the following code to understand the usage of :lang pseudo class                    /* Two levels of quotes for two languages*/          :lang(en) { quotes: '"' '"' "'" "'"; }          :lang(fr) { quotes: "" ""; }                     ...A quote in a paragraph...    

Usage of :first-child Pseudo Class in CSS

karthikeya Boyini
Updated on 04-Mar-2020 12:46:22

67 Views

Use the :first-child pseudo class to add special style to an element that is the first child of some other element.ExampleYou can try to run the following code to understand the usage of :first-child pseudo class −                    div > p:first-child          {             text-indent: 25px;          }                              First paragraph in div. This paragraph will be indented          Second paragraph in div. This paragraph will not be indented                But it will not match the paragraph in this HTML:                Heading          The first paragraph inside the div. This paragraph will not be effected.          

Usage of Active Pseudo Class in CSS

Samual Sam
Updated on 04-Mar-2020 12:45:38

81 Views

The :active pseudo-class is used to add special style to an active element. Possible values could be any color name in any valid format.Example                    a:active {             color: #FF00CC;          }                     Click This Link    

Usage of Hover Pseudo Class in CSS

Ankith Reddy
Updated on 04-Mar-2020 12:45:06

114 Views

The :hover pseudo class is used to add special style to an element when you mouse over it. Possible values could be any color name in any valid format.Example                    a:hover {             color: #FFCC00          }                     Bring Mouse Here    

Usage of Margin Property with CSS

George John
Updated on 04-Mar-2020 12:44:07

91 Views

The margin property defines the space around an HTML element. It is possible to use negative values to overlap content. It specifies a shorthand property for setting the margin properties in one declaration.ExampleYou can try to run the following code to set margins −                            All four margins will be 20px                      Top margin will be 15px, left and right margin will be 4% of the total width of the document, bottom margin will be -10px          

Usage of Visited Pseudo Class in CSS

karthikeya Boyini
Updated on 04-Mar-2020 12:43:32

70 Views

The :visited pseudo-class is used to add special style to a visited link. Possible values could be any color name in any valid format. Example                    a:visited {             color: #006600          }                     Click this link    

CSS Outline Color Property

Arjun Thakur
Updated on 04-Mar-2020 12:43:00

106 Views

The outline-color property allows you to specify the color of the outline. Its value should either be a color name, a hex color, or an RGB value, as with the color and border-color properties.ExampleYou can try to run the following code to implement outline-color property −                            This text is having thin solid blue outline.                

CSS Outline Style Property

Samual Sam
Updated on 04-Mar-2020 12:41:19

271 Views

The outline-style property specifies the style for the line that goes around an element. It can take one of the following values −none − No border. (Equivalent of outline-width:0;)solid − Outline is a single solid line.dotted − Outline is a series of dots.dashed − Outline is a series of short lines.double − Outline is two solid lines.groove − Outline looks as though it is carved into the page.ridge − Outline looks the opposite of groove.inset − Outline makes the box look like it is embedded in the page.outset − Outline makes the box look like it is coming out of the ... Read More

Advertisements