Using H tags and external style sheet

Viewing 2 posts - 1 through 2 (of 2 total)
  • #18508
    TSOP
    Participant

    Google says that H tags shouldn’t be used for styling text but for structuring your text.

    So, what do I do if I want to style text (a heading like “further reading” or “side note”) within a post, but I don’t want to be using inline html or internal css (and I obviously don’t want to use an h tag).

    I would like to make these changes externally, so that I can change the style any time I want without having to go to every single post or page to do so.

    Is this possible?

    • This topic was modified 9 years, 8 months ago by TSOP.
    #18515
    TSOP
    Participant

    This worked:

    If you don’t want to use an H tag, you could use a P tag.

    You can define a class in CSS external style sheet:

    .more {
    color: orange;
    font-size: 18px;
    }

    And then use it in your page:

    <p class=”more”>Further information</p>

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.