JavaScript is case sensitive.
So, if you want to change the font size, you have to go:
span.style.fontSize = "25px";
More Related Contents:
- How To Get Font Size in HTML
- how to set font size based on container size? [duplicate]
- list every font a user’s browser can display
- How to detect which one of the defined font was used in a web page?
- How to get the actual rendered font when it’s not defined in CSS?
- Get computed font size for DOM element in JS
- Preloading @font-face fonts?
- Input type="text" with select functionality after clicking on Input type="text"
- Syntax Higlighter For Site [closed]
- how i can connect and login in mysql localhost in php by using this html code
- How to create a tag with Javascript?
- Can I use HTML tags in the options for select elements? [duplicate]
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- JS function named `animate` doesn’t work in Chrome, but works in IE
- How do I re-trigger a WebKit CSS animation via JavaScript?
- How to update placeholder color using Javascript?
- make html text input field grow as I type?
- Possible to associate label with checkbox without using “for=id”?
- Frosted glass look
- Bootstrap modal: background jumps to top on toggle
- How to define the css :hover state in a jQuery selector?
- Detect CSS transitions using Javascript (and without modernizr)?
- How To Include CSS and jQuery in my WordPress plugin?
- Override styles in a shadow-root element
- Extracting text from a contentEditable div
- How to create a collapsing tree table in html/css/js?
- jquery ui autocomplete positioning wrong
- HTML5 input required, scroll to input with fixed navbar on submit
- Get Element StyleSheet Style in JavaScript
- Getting a sticky header to “push up”, like in Instagram’s iPhone app using CSS and jQuery