CrazyEngineers
  • Doubt in html...!

    Morningdot Hablu

    Morningdot Hablu

    @morningdot-6Xuj4M
    Updated: Oct 19, 2024
    Views: 1.0K
    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.

    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Manish Goyal

    MemberOct 16, 2010

    You mean to say how can we display a webpage by giving it extension .txt ?
    Are you sure? This action cannot be undone.
    Cancel
  • Morningdot Hablu

    MemberOct 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.
    Are you sure? This action cannot be undone.
    Cancel
  • BCA_GIRL

    MemberOct 16, 2010

    You should use class selectors for this purpose!
    Are you sure? This action cannot be undone.
    Cancel
  • Morningdot Hablu

    MemberOct 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.
    Are you sure? This action cannot be undone.
    Cancel
  • BCA_GIRL

    MemberOct 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!!
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register