how to change the text size in the title with html

I want to change the size of text in a h4 title. I want all letters to be capital but some to be smaller than others. Basically change the text size withing the h3 tags. Thanks so much for any help..

Related posts

5 comments

  1. You can change the text size either in CSS or with the style attribute.

    <h3 style="font-size:50px">The H3 Title</h3>
    

    In CSS:

    h3 {
       font-size:50px;
    }
    

    If you want to size parts of your title, use strong.

    <h3 style="font-size:50px"><strong style="font-size:25px">The</strong> H3 Title</h3>
    

    h3 {
      font-size: 50px;
    }
    #h3Strong {
      font-size: 25px;
    }
    #h4Strong {
      font-size: 20px;
    }
    h4 {
      font-size: 45px;
    }
    <h3><strong id="h3Strong">The</strong> H3 Title</h3>
    <h4><strong id="h4Strong">The</strong> H4 Title</h4>
  2. Have you tried something like this:

    .c2{
        font-size:2em!important;
    }
    .span{
        font-size:1em;
    }
    h3{
        text-transform: capitalize;
    }
    

    And the html :

    <h3>
        <span class="c2">1</span>
        <span>2</span>
    </h3>
    

    .c2{
        font-size:2em!important;
    }
    .span{
        font-size:1em;
    }
    
    h3{
        text-transform:uppercase;
    }
    <h3>
        <span class="c2">a</span>
        <span>b</span>
    </h3>

    http://jsfiddle.net/n7fye5nc/

  3. Something like this?

    <h4>this is <small>where the title goes</small></h4>
    
    <style>
    
    h4 {
        font-size: 1em;
        text-transform: uppercase;
    }
    
    h4 small {
        font-size: .75em;
    }
    
    </style>
    
  4. To increase the font size, use the CSS font-size property.

    To make all text uppercase, use the CSS text-transform property.

    .big {
      font-size: 2em;
      text-transform: uppercase;
    }
    <h3>Hello World!</h3>
    <h3 class="big">Foo Bar!</h3>

Comments are closed.