very new to HTML!, How to display two h1 |
very new to HTML!, How to display two h1 |
ILBS |
May 8 2021, 11:47 AM
Post
#1
|
Newbie Group: Members Posts: 14 Joined: 8-May 21 Member No.: 27,930 |
Hi
I would like to display h1 as "Hello world" and I want to display this character ">" to the right of "Hello world" I tried this: CODE <h1> HOME </h1> <h1> > </h1> But I get: Hello World > ========= But I want Hello world > All help appreciated thanks |
ILBS |
May 8 2021, 08:08 PM
Post
#2
|
Newbie Group: Members Posts: 14 Joined: 8-May 21 Member No.: 27,930 |
Ok thanks
So what is the code in Hrml if I want to display two pieces of Text one next to each other like this HOME > And can’t be the same h1 tag because HOME can change and the > can change! So I want them separate ! Thanks |
Christian J |
May 9 2021, 05:31 AM
Post
#3
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
And can’t be the same h1 tag because HOME can change and the > can change! So I want them separate ! If you mean change styling, you could use other HTML elements inside the H1. For example: CODE <h1>Foo<span>Bar</span></h1> and then style the SPAN element differently with CSS. |
Lo-Fi Version | Time is now: 19th April 2024 - 03:34 AM |