Doubt in html...!

Morningdot Hablu

Morningdot Hablu

@morningdot-6Xuj4M Oct 19, 2024
As we know by using these tags <b>,<i>,<r> we can able to change the text style.
Look at this code
<html>
<head>
<iframe src="cboy.txt">
</iframe>
</head>
</html>
.
Here in this code i will fetch a txt file in an html page.
Any body have idea how above text styling tag will be implemented on the text in the text file fetched from our HDD.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Oct 16, 2010

    You mean to say how can we display a webpage by giving it extension .txt ?
  • Morningdot Hablu

    Morningdot Hablu

    @morningdot-6Xuj4M Oct 16, 2010

    No goyal not like that.
    Check this code
    <html>
    <head>
    <iframe src="cboy.txt">
    </iframe>
    </head>
    </html>
    It will display the output like this
    [​IMG]

    And look at this code
    <html>
    <head>
    <body style="color:blue">
    <font size="7">
    I am a cboy
    </font>
    </body>
    </head>
    </html>
    It will display the output like this

    [​IMG]
    I want this type of output by upper code where i featched the text from a text file stored on HDD.
  • BCA_GIRL

    BCA_GIRL

    @bca-girl-wzX9cA Oct 16, 2010

    You should use class selectors for this purpose!
  • Morningdot Hablu

    Morningdot Hablu

    @morningdot-6Xuj4M Oct 16, 2010

    Have you tried it..?
    It doesn't work.I think it's not possible to change the style of fetched text from some file.
  • BCA_GIRL

    BCA_GIRL

    @bca-girl-wzX9cA Oct 16, 2010

    I think we can change the formatting of text by copying the text fom src file and then applying class selectors.Try this!!