Loading, please wait ...
Open its course - Web Engineering

Short Questions for HTML basic text formatting tags

  • 1 What are the universal attributes of any tag element in HTML?

    Answer
    The universal attributes are:
    align(depricated) class id style title dir lang xml:lang


  • 2 What are the parts of attribute for HTML tag?

    Answer
    All attributes are made up of two parts a name and a value :

    • The name is the property of the element that you want to set. for example, the < a > element carries an attribute whose name is href , which you can use to indicate where the link should take you.
    • The value is what you want the value of the property to be. For < a >, the value is URL of the site that the link should take you to, so the value of the href attribute can be http://www.google.com


  • 3 What is the difference between a HTML tag and HTML element?

    Answer

    A tag is made up of a left and right angle bracket and letters and numbers between those brackets, whereas elements are the opening and closing tags plus anything between the two tags.


  • 4 Why we use alt attribute with an image tag?

    Answer

    The required alt attribute specifies an alternate text for an image, if the image cannot be displayed. The alt attribute provides alternative information for an image if a user for some reason cannot view it.


Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert