The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> very new to HTML!, How to display two h1
ILBS
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
ILBS
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post May 9 2021, 05:31 AM
Post #3


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(ILBS @ May 9 2021, 03:08 AM) *

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.


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 03:34 AM