How Do You Change Font Size In HTML?
Before HTML 4.0, properties of font such as size could be manipulated through the “font” tag. This tag is now gone. The World Wide Web Consortium (W3C) has removed it from its list of recommendations because it isn’t helpful to programmers. The display properties of fonts in a webpage are manipulated by cascade style sheets (CSS). But because the old “font” tag is still supported, this article focuses on both ways of changing fonts. Open an HTML file in a text editor. Place a “font” tag inside the “body” tags of an HTML page. Write some text between the begin and end parts. Insert a “size” property in the opening tag and give it a value of one, as shown in the example below. Save the source file with the code below, refresh the web browser and observe the size of the font. Example: Text Change the value of the “size” property in Step 2 to 7. Save the source file, refresh the monitor and notice the new font size. Place a “header” and a “paragraph” tag between the “body” tags of an HTML