CSS - CSS Attribute Selector Value




 CSS Attribute Selector Value

Learn css - css tutorial - CSS Attribute Selector Value - css examples - css programs

CSS Selector attribute value - Definition and Usage

  • In css , attribute selector value is used to select html element with specified attribute and value.
  • It is used to apply different style with different attributes and values.
CSS Attribute Selector Value
  • The [attribute] selector is used to select elements with a specific attribute values.
  • It represents an element with an attribute name of attribute.

css code - Example

a[target] 
{
text-decoration: none;
}
click below button to copy the code. By - css tutorial - team

Sample coding - sample html code

 Tryit<!DOCTYPE html>
<html>
    <head>
        <style>
            a[target] 
            {
                text-decoration: none;
            }
        </style>                     
    </head>
    <body>
        <a href="http://www.wikitechy.com" target="_blank”>
         Click wikitechy
        </a>
    </body>
</html>
click below button to copy the code. By - css tutorial - team

Code Explanation - css style

Code Explanation css attribute selector value
  1. a[target] selector directs the user from one web page to another web page.
  2. Text-decoration property removes the underlined line from the link text (Click wikitechy) by displaying them as a normal text.
  3. Note :In general, almost all the links appear in blue color with underlined.
  4. The anchor <a> tag defines a hyperlink which directs the user from one page to another. target=”_blank” opens the linked website in a new window. Here we defined to open http://www.wikitechy.com website.

css tutorial - Output :

Output css attribute selector value
  1. Click wikitechy is a link which appears without underline. Clicking on the link directs us to the wikitechy website as displayed in the following browser window.
Output 2 css attribute selector value

This page provides a detailed information on class in css , learn html and css , css programming , css website , css transition generator , css design , css language , css a , advanced css , html and css tutorial , css coding , html css tutorial , css javascript , html & css , free css , html and css editor , html css javascript , html css editor , css test , html css templates , css editor online.


View More Quick Examples

CSS BASICS & SELECTORS CSS SELECTOR ATTRIBUTE CSS STYLE FORMS COLORS & BACKGROUND CSS MARGIN & PADDING CSS WIDTH & HEIGHT CSS LINKS CSS BLOCKS

Related Searches to css attribute selector value