Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Asyraaf Mohamad
Courses Plus Student 161 PointsDoes HTML code that is written first,appear first in the webpage?
For example,I want to write H1 code for the title of my webpage and then i want to make my menus in H2 tags for like Home ,contact and what not to link to my other pages.How do i make the H2 tags appear at the bottom of my title.
Also,another question,How do I make my h1 and h2 titles positioned at the center of of the webpage?
Lastly,How do I include the same header with the same h1 and h2 tags into every single webpage of my website?

dnogmdehbp
Courses Plus Student 726 Points@Jane
Yeh, but consider thus when you got 10's or even 100's of pages? Try change one thing on the h1 or h2 tags in the whole site.
Read some PHP-tuts it will help you a lot!
2 Answers

dnogmdehbp
Courses Plus Student 726 PointsHey,
Your question: "Does HTML code that is written first,appear first in the webpage?" to answer your first question. Yeah, what you type in first will be putt out first. Ofcourse there are ways to work arround that, but normal the first thing you type will come first on page.
Your 2nd question: "How do I make my h1 and h2 titles positioned at the center of of the webpage?" In the div container you are position those h1&h2 use the css code for aligning text: "text-align:center;" but it realy depends on the place, code an other elements arround those h1,h2 tags to work. It can be if you posted h2 in a unorderd list that it won't work on the way i discribed.
Your 3th question: "How do I include the same header with the same h1 and h2 tags into every single webpage of my website?" I think you could probaly solve this the best trough PHP, but it would take up some knowledge of PHP and Search Engine Friendly URL's.
There is an other way, just trough iframe, but i don't think that's right to use.

Asyraaf Mohamad
Courses Plus Student 161 PointsHey,
Thanks for the help!

dnogmdehbp
Courses Plus Student 726 PointsAs in addition of my answers;
Using the same h1,h2 tags on different pages isn't seo friendly, but not that bad if that's not the purpose of the site!
Jane Marianne Filipiak
7,444 PointsJane Marianne Filipiak
7,444 PointsYour 1st question: In the HTML page, headings are displayed in the way you order them on the page, so if you have typed h2 after h1, then h2 tags will appear under h1 tags.
Your 2nd question: After you have set the order of the h1 and h2 tags in your HTML page, then you can align them center in your css page. Like this:
h1,h2 { text-align: center; }
Your 3rd question: Once you have completed your first HTML page-index html, then you can start to make the additional ones. If you want the same info on these additional pages, you just copy from the index html page into these additional pages.Hoping this info helps- I am a beginner too!