As for HTML5, the characters become thicker without a strong tag.

Asked 2 years ago, Updated 2 years ago, 116 views

Thank you for your help.
As for HTML5, the characters become thicker without a strong tag.
The running environment is Google Chrome.

How can the string without the strong tag be thickened?
Please let me know.

Here's the source code:

<!DOCTYPE html>
<html lang="ja">
    <head>
        <metacharset="utf-8">
        <title>First HTML</title>
    </head>
    <body>
        <h1>Headline <h1>
        <h2>Medium Headings <h2>
        <h3>Subhead <h3>
        <p>Hello!<br>Hello!</p>
        <p>Hello!</p>
        <p>Hello!</p>
        <p>Hello!</p>
        <p>Hello!</p>
        <p>Hello!</p>
        <p><strong>Hello!</strong>/p>
    </body>
</html>

html html5

2022-09-30 20:45

2 Answers

Invalid closing tag for h1 h2 h3


2022-09-30 20:45

The h tag defaults to font-weight:bold.
In the h tag

h2,h3,h4{
    font-weight:normal;
}

can be resolved by the

So

<!DOCTYPE html>
<html lang="ja">
    <head>
        <metacharset="utf-8">
        <title>First HTML</title>
        <style>
        US>h2,h3,h4{
            font-weight:normal;
        }
    </style>
    </head>
    <body>
        <h1>Headline </h1>
        <h2>Medium Headings</h2>
        <h3>Subhead </h3>
        <p>Hello!<br>Hello!</p>
        <p>Hello!</p>
        <p>Hello!</p>
        <p>Hello!</p>
        <p>Hello!</p>
        <p>Hello!</p>
        <p><strong>Hello!</strong>/p>
    </body>
</html>


2022-09-30 20:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.