# Adding two titles to the same line on HTML

**URL:** <https://forum.code.org/t/adding-two-titles-to-the-same-line-on-html/33646>\
**Category:** Website and Tools How-To\
**Created:** [November 2, 2020, 3:35pm UTC](https://forum.code.org/t/adding-two-titles-to-the-same-line-on-html/33646 "2020-11-02T15:35:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![asuarez](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@asuarez](https://forum.code.org/u/asuarez)\
**Post date:** [November 2, 2020, 3:35pm UTC](https://forum.code.org/t/adding-two-titles-to-the-same-line-on-html/33646/1 "2020-11-02T15:35:26Z")

</div>

I have students who want to add two titles to the same line on their web page. What tags can they use to accomplish that?  
They want it to look something like this:

```
                 Link one Link two

```

Thanks for your help.  
(There are various things on W3 school but they didn’t work for us). =)

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [November 3, 2020, 1:09am UTC](https://forum.code.org/t/adding-two-titles-to-the-same-line-on-html/33646/2 "2020-11-03T01:09:03Z")

</div>

@asuarez,

If you want to share the link to one of your attempts, we could look at it … It does go beyond the scope of what students learn in CS Discoveries, but it can be done.

I’m sharing a link to a project starter I made. All the “magic” is in the style.css document where the various parts of the links are styled.

There are also more than one way to do this. Mine may not be the easiest…

[https://codeprojects.org/dAF6eVadyCAW7PpSEaz0jOrXrIxEqVHGwC5OJS07UAQ](https://codeprojects.org/dAF6eVadyCAW7PpSEaz0jOrXrIxEqVHGwC5OJS07UAQ)

To see the code, look for the “View Code” link at the bottom of the page.

Hope this helps a little…

Mike

---

<div class="post-metadata">

**Author:** ![edavis](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/edavis/32/4927_2.png) [@edavis](https://forum.code.org/u/edavis)\
**Post date:** [November 5, 2020, 1:45am UTC](https://forum.code.org/t/adding-two-titles-to-the-same-line-on-html/33646/3 "2020-11-05T01:45:03Z")

</div>

@asuarez  
I have to agree with Mike. This is outside of the scope of the unit content, but many of my students like using [w3schools.org](https://w3schools.org) to find new things to add to their projects. My students often choose to use tables to create what you’re talking about. It really gets them thinking about nested tags.

---

<div class="post-metadata">

**Author:** ![asuarez](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@asuarez](https://forum.code.org/u/asuarez)\
**Post date:** [November 5, 2020, 6:40pm UTC](https://forum.code.org/t/adding-two-titles-to-the-same-line-on-html/33646/4 "2020-11-05T18:40:22Z")

</div>

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![asuarez](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@asuarez](https://forum.code.org/u/asuarez)\
**Post date:** [November 5, 2020, 6:41pm UTC](https://forum.code.org/t/adding-two-titles-to-the-same-line-on-html/33646/5 "2020-11-05T18:41:58Z")

</div>

It helps a lot! Thank you!  
I know it may be out of the scope of these lessons but I like letting the students explore and add what they want to try!  
Thanks!

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [November 5, 2020, 10:38pm UTC](https://forum.code.org/t/adding-two-titles-to-the-same-line-on-html/33646/6 "2020-11-05T22:38:16Z")

</div>

I do the same, so I completely understand your wanting to know how to do it. My kids get frustrated if it doesn’t look just right!

Mike
