![]() ![]() This line is actually a border, which is achieved with the CSS code border-bottom: 1px solid #93B0D2. For example, with the heading of this page, we have a grey underline. ![]() In the example above, the color code #FF0000 is used, which is the color code for red.Ī border can also be applied to only one side. The border color defines the color you want to use for the border. Other types of border styles include dotted, dashed, double, groove, ridge, inset, and outset. The style of the border is how the border appears on the screen. In the code above, the style is defining the border size ("px" short for pixel), style type, and border color. First example with text surrounded by a red border.This example also has multiple lines. To create the example above, the code below is used. In the example below, we have surrounded a paragraph ( ) with a red border.įirst example with text surrounded by a red border. A border in your HTML pages helps bring attention to a section of text or surround any other HTML element.Īs shown below, a border can be created around any text using HTML and CSS on your web page. Using borders, you can add a box around text, and set the border to nearly any color. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |