-->

  • HTML Text Formating

    HTML Bold and Strong Elements




                HTML Bold <b> And <Strong> Elements              

           
    The HTML <b> elements define bold text without any extra importance.


    HTML <b> Tag. The HTML <b> tag is used to create a 'b' element, which represents bold text in an HTML document. The <b> tag should be used to markup text as bold without conveying any extra importance, for example in article abstracts, where the beginning of an article is set in bold text.



    Syntax


    The <b> tag is written as <b>  </b> with the text to be bold inserted between the start and end tags.

    Like This :

                        <b>This text is bold.</b>                        




    Example


    <!DOCTYPE html>
    <html>
    <head>
                
                
    <title>HTML Bold Tag</title>
                
                
    </head>
                
    <body>
                
    <p>This is normal line.</p>
    <p><b>This text is bold.</b></p>
                 
    </body>
    </html>




    Output


    This is normal line.
    This text is bold.







    Attributes





    Attributes can be added to an HTML element to provide more information about how the element should appear or behave.
    There are 3 kinds of attributes that you can add to your HTML tags: Element-specific, global, and event handler content attributes.

    The <b> element accepts the following 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.