-->

HTML5 mark tag




  •    Mark     Tag  in HTML 5

    The <mark> tag was introduced in HTML 5. The HTML <mark> tag is used for indicating text
    as marked or highlighted for reference purposes, due to its relevance in another context.
    The <mark> tag is supported in all major browsers. Use the <mark> tag if you want to highlight
    parts of your text. We can mark the text using many properties from global attributes of html5
    e.g. by changing font ,background color ,font color etc. This tag must have opening and closing
    <mark> tag.





      Syntax  


    The syntax of mark tag is as :

    <mark> ..............</mark>




      Example  



    <!DOCTYPE html>
    <html>
    <head>
    <title> HTML mark Tag </title>
    </head>

    <body>

    </body>
    </html>



      Result  


    Do not forget  subscribe  to our YouTube channel.




     Attributes 


    HTML tags can contain one or more attributes. Attributes are added to a tag to provide 
    the browser with more information about how the tag should appear or behave. Attributes 
    consist of a name and a value separated by an equals (=) sign, with the value surrounded 
    by double quotes.

    There are 3 kinds of attributes that you can add to your HTML tags: Element-specific, 

    global, and event handler content attributes. The attributes that you can add to this tag are listed below.


    1. Element-Specific Attributes
    2. Global Attributes






       Have a Nice Stay Here    :)  




















  • 0 comments:

    Post a Comment

    For Any Tech Updates, Hacking News, Internet, Computer, Technology and related to IT Field Articles Follow Our Blog.