ad

Tuesday, August 30, 2022

html div tag

Body Tag



1] html - Font face, Size & Colour 


 <font> tag is the  use to change the format of the text on  web page. The HTML <Font> tag  supports following  tag additional .Font face and color depends entirely  the computer and browser that is the  being used to view your page  you can use HTML <font> tag to add style, size, and color to  text on your website. You can be use a <font> tag to set all of your text to same size, face, and color.


Color 

Attribute 

Value  - rgb(x,x,x) Colorname

Description 

 color tag Specifies the color of text. Either the color name  the six character color code may be to the  used to specify color


HTML FONT Program

font tag this is a face attribute allows the author to define one Roman", or more different font to be displayed the browser will display  first font specified but if that  not present on the computer the browser will try the next one of  the list .


font Value tag use  example of the font   font_family or "Times New "Verdana", and "Helvetica."

font size  display It Specifies the size of text. This can be absolute (0.. 6), or relative ("+1", "+2","+3",... or "-1", "-2", "_3" ...) 


HTML FONT Program

<!DOCTYPE html>
<html>
<body>
<p><font size="3" color="red">This is some text! </font></p>
<p><font size="2" color="blue">This is some text ! </font></p> <p><font face="verdana" color="green">This is some text!</font></p>
<p><strong>Note:</strong> The font element is not supported in HTML5. Use CSS instead.</p>
</body>
 </html>

HTML FONT Program

Explain Program



HTML FONT Program

OUTPUT IN FONT FACE SIZE & COLOUR

This is some text!

This is some text !

This is some text!

Note: The font element is not supported in HTML5. Use CSS instead.H


2] Div


The <div> tag define is the  division or  section in  HTML document The <div> element is often used as  container for other HTML elements to style them with CSS and  perform certain tasks with JavaScript.

The <div> element is very often used together with CSS, to layout a web page. 


<!DOCTYPE html>

 <html>
 <p>This is some text.</p>
 <div style="background-color:lightblue"> 
 <h3>This is a heading in a div element</h3>
 <p>This is some text in a div element.</p>
</div>
 <p>This is some text.</p>
 </body>

</html>


OUTPUT IN DIV TAG

This is some text.

This is a heading in a div element

This is some text in a div element.

This is some text.


Related Post

css position property

css table property

css menu design


No comments:

Post a Comment