No products in the cart.

Give examples of Border, Align and …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Give examples of Border, Align and Bg color attributes of tag in HTML
  • 1 answers

Meghna Thapar 4 years, 11 months ago

The most common way of coloring HTML text is by using hexadecimal color codes (Hex code for short). Simply add a style attribute to the text element you want to color – a paragraph in the example below – and use the color property with your Hex code.

Style borderColor Property

  1. Change the color of the four borders of a <div> element to red: borderColor = "red";
  2. Change the color of the top and bottom border to green, and left and right border to purple, of a <div> element: borderColor = "green purple";
  3. Return the border color of a <div> element: borderColor);HTML Tag Attributes are modifiers for the HTML tags and they provide additional information. In most cases they are defined in name="value" pairs and they are always declared in the opening tag.
http://mycbseguide.com/examin8/

Related Questions

Python programming
  • 2 answers
Define networking with two examples
  • 1 answers
Ch 1check point
  • 0 answers
What is database system
  • 2 answers
Draw the flow chart.
  • 0 answers
Symbols are basically of
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App