ad

Friday, August 25, 2023

HTML pre tag

     

                     

        HTML pre Tag


Information 

1. The <pre> tag defines preformatted text. 

2. Text in a <pre> element is displayed in a fixed-width font.

3.  text preserves both spaces and line breaks. 

4. syntax with :- <pre>.......</pre> tag

5. displayed in a fixed-width font.

6 .The text will be displayed exactly as written in the HTML source code.


Program 

 HTML <pre> tag

<html>
<head>
<title>html pre tag </title>
</head>
<body>
<pre> My name is ram
my college name is satara

 
I like Apple My favourity color is skyblue
</pre>
</body>
</html>


OUTPUT




html preformatted text

        
Related Post :- 

html aside tag

inline css in html

html login in form

Thursday, August 3, 2023

html iframe


HTML <iframe>

Information

         1] The HTML <iframe> tag specifies an inline frame
         2] The src attribute defines the URL of the page to embed
         3] Always include a title attribute (for screen readers)
         4] The html <iframe> height and width attributes specify the size of the iframe
         5] html <iframe> Use border:none; to remove the border around the ifram

Program

<!doctype html>

<html>

<body>

<h2>HTML Iframes</h2>

<p>You can use the height and width attributes to specify the size of the iframe:</p>

<iframe 

src="https://webdesigningtheory.blogspot.com/2023/05/html-and-css-use-to-create-easy-webpage.html" height="300" width="500" title="iframe">

</iframe>

</body>

</html>


OUTPUT

iframe html

Related Post :-

external css in html

internal css

html login in form