Using H tags and external style sheet

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

    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 8 years ago by TSOP.

    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.