Underscore in html: ways.

Using html text, you can give a beautiful design. The underline element is very popular, but not all regular users know how to use it.

HTML underscore

So, how do you underline? Text underline in html is drawn using the <u> tag. It is used in all html and xhtml specifications, but only subject to the transitional <DOCTYPE!>, Since the version of the markup for the browser must be specified. In this case, the document is successfully validated. The element must be specified as standard, that is, at the very top of the page.

html underline




The <u> tag is closing, it must be accompanied by </u>. You need to add it to the markup in this way:

  1. <h1> Heading number one </h1>
  2. <p> Our <u> text </u> in the paragraph </p>

"" .

:

  1. <h2> </h2>
  2. <p> <u></u> </p>

html , . <u> .





, css , , .

, html css-.

CSS

css — . : text-decoration border-bottom.

text-decoration, .

  • - {
  • text-decoration: underline;
  • }

, .

html text underline




. () , . , .

  • - {
  • text-decoration: none;
  • }

:

  • .- {
  • text-decoration: none;
  • border-bottom: 2px dashed black;
  • }

. , "dashed" "solid". , , "dotted".

. , . , , 1 2 . :

  • - {
  • text-decoration: none;
  • border-bottom: 1px dotted blue;
  • color: blue;
  • }

. html, .

  • <h3> </h3>
  • <p class="-"> </p>

, html.




All Articles