Blog Archives
Making your web page titles stand out from the rest of your HTML
Every web page needs a title
With many having multiple sub titles
All varying in different sizes
Web pages contain lots of information and it is important that users are able to find this information with ease. Titles and sub titles are a great way of doing this, a good title will provide users with an accurate insight into what the accompanying content is about.
A good website that demonstrates this is the BBC’s home page that is pictured below. Its use of titles tells you clearly what the content is about with sub titles offering additional links to other relevant content. The main titles are in a large font to gain the focus of the user with secondary titles reduced in size but still more prominent than their standard text.
When adding a title to your HTML coding it is positioned in the body of the text (between the body tags) and they can be 6 different pre-set sizes.
The tag for a title is “h” followed by a number between 1-6. The different numbers are what gives the title’s text its different size compared to the main content.
Here is a picture that shows all the different title tags, next to their corresponding sizes. As you can see these tags also require a closing tag (</).
Now go and try these tags out on your HTML web page, play around with the sizes and see which you prefer.
Adding content to your HTML web page and viewing it in a browser
Now that you have the basic HTML layout for your web page you can start adding content to it.
Lets start with the header section.
Between the title tags enter the title you want displayed along the top of your Internet browser and the tab it is located in.
Your text should be positioned in the same place as the text “CyberCinderblocks First Web Page” between the two title tags.(Image 1a circled in RED)
Doing this heads your browser and names the tab your webpage is located in. (Illustrated in image 2a, circled in RED).
Now lets add some content to the page by adding some text between the body tags. It doesn’t have to be anything long as I’m sure you’ll have changed it before we have finished our web page. In both 1a and 2a these are shown circled in Green.
So now you have done this for yourself, how do you view it as a web page?
First you need to save the work you’ve done so far. I renamed my file to allow me to use the basic layout again without having to type it out from scratch, so like before I went to “Save As” → renamed the file (adding .html to the end of the file name) → clicked “Save” and choose “Use .html“. You don’t have to rename it, you can just choose to save over the file.
To check your coding you need to open it in an Internet browser. Because you have saved the file as html all you have to do is open the file as you would any other and it should open up in your default browser. If you look at image 3a, you can see that the file icon for CyberCinderblocks.html (circled in RED) is of google chrome (my default browser).
You may be be wondering, “if my file opens in a browser as default, how do I open it to add additional code”, that’s easy as well, all you do is right click the file → Open With→TextEdit(or Notepad).
To check your work as your going along, all you have to do is save the coding in TextEdit(or Notepad) and refresh your already opened browser (you don’t need to close TextEdit). This is done by clicking the refresh button on the browser (usually located to the left of the address bar) or by pressing cmd+R (Mac) or F5 (Windows).
The Project
It’s time to get started.
I’ve got myself a copy of Creating a Website; the missing manual by Matthew MacDonald and will be using it as my main resource whilst building my website. I will be referring to it in posts but only the bits that are relevant to me so if you feel it has been insightful it may be worth getting yourself a copy to expand on the areas that would help you.
Now before I jump into building my first ever website I have spent some time deciding what type of site I want to create. MacDonald lists multiple types of websites and I have chosen to make a website dedicated to hosting my personal résumé as it will help with employment in the future whilst demonstrating my ability to use and understand HTML. This type of site will host a wide variety of information about myself such as employment history, education and professional experience, whilst being able to provide more information than a paper copy as it will contain multimedia features and direct hyperlinks to relevant information while the visual display of the site can be customised to show some of my personality.
It will be like downloading my details onto the website. If only it could be done like tron.







