answersLogoWhite

0


Best Answer

Use the Font face=".." command with the attribute of the font you want. for example" This is arial font This is century font To change the size of the font use the size= ".." attribute with the value being the size of the font using the numbers 1-7 with "3" being default. You could also use the tagsto make the font one size bigger Makes it Blod

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

There is no valid HTML code in modern HTML to set the font size. Instead, use the "font-size" property of Cascading Style Sheets (CSS.)

Let's say you have a paragraph in HTML:

<p>Our example paragraph.</p>

And you want to set its font size. The most direct way is to add a STYLE attribute to the tag, and put the CSS declaration in there.

<p style="font-size:35px;">Our example paragraph.</p>

You can also put that declaration in an external or internal stylesheet, and attach it to the paragraph.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

In HTML (Hyper-Text Mark-Up Language), the font tag is used to control different attributes of your text.

For example using:

<font size="10">your text here</font>

would make the font size '10'.

<font face="arial">your text here</font>

would make the font face 'arial' if that font is available. If the font is not available (i.e. if the viewer doesn't have the font installed on their computer) it will default to Time New Roman.

To change font color:

<font color="blue">your text here</font>

would make the text blue.

Note that CSS (Cascading Style Sheet) is preferred over HTML to control basic commands such as font, font color, etc. Rather than setting font tags line by line in HTML, the CSS specifies it once. You'd then link your style sheet to you web page. The ease of CSS means you can change settings like font in one file and apply it site-wide.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

There are various ways of changing font style. One of them is: <style="font-size: 10px"> , the size can be in pixels.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

<font size="#"></font>

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the correct code HTML for changing the font style?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

How do you write a HTML code font themes?

You can mention the HTML code font by using style. Style element for an attribute contains all further attributes.


What is the code of backround in HTML?

Background can be easily added into the HTML code. in the &lt;style&gt; element you can add background-color="red".


How do I upload an image I have and use the HTML code but the image doesn't show What did I do wrong?

You should check your folder hierarchy and verify that all the HTML/xHTML code is correct. You can use an image editor to ensure the HTML code is correct.


How do you get xml in HTML?

xml can be written straight into html code and vice versa using the correct syntax, ie your html in here and your xml in here


How does CSS inhance HTML?

CSS handles the presentation portion of displaying an HTML document on the web. That is to say that CSS makes things like color, size, shape, weight, etc. possible in HTML. To say that CSS "enhances" HTML, however, is an over simplification. CSS provides separate and different functionality than HTML does. HTML does not have the abilities inherent in CSS. Instead, the CSS code makes HTML code more palatable for a human user. Most web spiders, for instance, do not employ HTML fully, if at all.


How do you make your writing big on piczo using a HTML code?

&lt;FONT style="FONT-WEIGHT:normal; FONT-SIZE:85pt; COLOR:#Blue; LINE-HEIGHT:100pt; FONT-FAMILY:Georgia; LETTER-SPACING:-15px"&gt; TYPE FONT HERE &lt;/FONT&gt; use this HTML, you can change the size of the text by changing the font size in the HTML


What are HTML stylesheets?

HTML is a markup language and not a style sheet. CSS is the styling code used to make an HTML page look the way you want it. CSS Tutorials might help you.


Does HTML correct typos?

No; HTML does not correct typos. In fact, if there is even a tiny typo in part of the code besides what will show up as the website's text, the website/webpage will not work properly.


What is the difference between in-line style and the internal sheets?

Inline and internal style-sheets are 2 forms of CSS in HTML file. In-line CSS is used within the code of HTML, while the internal one is used at the beginning.


How do you write the CSS and HTML code for an embedded style sheet that configures a background color of?

&lt;style type="text/css" media=screen&gt; body{ background-color: gray;} &lt;/style&gt;


What Is The Code To Show An Html A Text?

&lt;code&gt;&lt;code&gt;HTML TEXT HERE&lt;/code&gt;&lt;/code&gt;


Where does the style sheet code get inserted into the HTML page?

Stylsheets are listed in the HEAD section of the HTML document. You can either use the the STYLE tag, if you want to include the styles directly into the HTML, or you can use a LINK tag to pull them in. (You can also issue an @import inside the STYLE tag for this, but it's slow and not best practice because of how the browser implements the action.)