Skip to content
Sign upLog in
← Back to Community

font size format

Profile icon
paulbosse68

just doing the 5 day challenge and am attempting to change font size. html4 allows tag but im attempting to use <Style=''font-size:50''>. Can someone help with the correct format for this command?

Voters
Profile icon
btfuss
Profile icon
paulbosse68
Comments
hotnewtop
Profile icon
RYANTADIPARTHI

Solution

use the css. That's how you can. It's inline css.

<p style="font-size: 50px;">blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah</p>

like that. It increases by 50px;.
That should work

Profile icon
paulbosse68

yes ive realised that later vesions of html use css to vary font size.. im only just starting the learning proccess. the last language i learnt was cobol nighon 30 years ago...just trying to work through html, css java and java scriptand python methodially.. thank [email protected]

Profile icon
paulbosse68

this time ive done with html4 approach, later on, next time ill use the CSS approach....havent got to that module yet, wont be long though..


@RYANTADIPARTHI

Profile icon
paulbosse68

Unsure which vesion of html is being used as html4 and html5 has quite different approaches to alteration in font size
HTMl4 allows use of ,.
HTML5 alters font through CSS rather than within Html itself
Unsure how to procceed

Profile icon
RYANTADIPARTHI

@paulbosse68
look at my solution

Profile icon
btfuss

im pretty sure its <style='font-size: 50px;'>

Profile icon
paulbosse68

thank you

@2plus2is4hoi