Styling html text without CSS

I would like the html code of part of my tumblr page, but in context I cannot add any css. Is there a way to format text size, font, color, etc. Without using css? I watched the tags <font>, but they don't seem to be supported in html5. Is there a workaround or tag that will do this for me?

thank you for your help

+4
source share
6 answers

Add CSS as a style directly to the tag you want to format.

EX.

<p style="width:20px;height:20px;background-color:#ffcc00;">The contents go here</p>

+2
source

Only with HTML, without CSS, you can set

  • font family with <font face=...>
  • font size from <font size=...>(albeit to several values)
  • <font color=...>
  • italic typefact <i>
  • <b>
  • <sup>
  • <sub>
  • <u>
  • <br>
  • <wbr>
  • () &shy;
  • <nobr>
  • align ( ) valign attribute
  • / bgcolor background body
  • <marquee>

( , ).

HTML5 "" "", ( ), , nobr ( , ).

(HTML5 - , "", . , , .)

CSS style, , .

+15

,

, . - css. Inline css : <p style="color:red">

- , . css, html!

!

,

+1

CSS , HTML :

    <doctype HTML>
    <html>
    <head> <title>My title</title>
        <style>h1{
            color:red;
            font-size:20px;
    }
        </style>
    </head>
    <body><h1>My large text heading</h1>
     <script>alert("Hi , I'm in javascript inside the HTML File");</script>
    </body>
    </html>

, , HTML . FYI Javascript '<script> ( ", javascript" ); </script> '; , .

+1

You can use span style, div styles to style your web page using cascading sheets.

Example: <span style="color:#abc123;"> NAME </span>

0
source

You can also add. <a href="thepagelink.html" style="text-decoration:none;"></a>This will remove the underline and any formatting from the link. Then you can add your own style, for example<a href="thepagelink.html" style="text-decoration:none;" style="color: #07781C;"></a>

0
source

Source: https://habr.com/ru/post/1528229/


All Articles