How to Specify Pages in HTML : Learn how to design your pages from the ground up
An Introduction To HTML Tags
One of the first ways to specify a page in HTML is to introduce yourself to tags. The tag is a command that defines exactly what you want to create, it can be the insertion of an image, putting text on a page, and specifying the entire web page itself. Every tag is defined with an opening and closing symbol. There are key words that specify the command that you are trying to execute. For instance if you would like HTML to create a table, or a box to hold your contents on the website, your tag would begin to look like this . The main thing to remember is that every tag must be opened and closed in order for HTML to understand your command. If you ever get an error message, in most cases it is because the tags weren’t properly closed or opened.
Setting Up the Webpage
When we are setting up our website we will want to start by specifying a page in HTML. This includes the characteristics of the page such as the size, the color, how many tables, and so forth. Let’s look at an example of how we would specify a page in HTML, with the following tags.
This is the tag that deals with any images that you plan to incorporate. A link to a directory is written into the code of this tag, so that HTML knows exactly where to find the image.
Specifying the colors of the page with CSS
Now that you are familiar with tags and their functions we want to learn the functions that add some color to your web page. The basic way in HTML to add color is found in the bodybackground tag or <Bodybackground = red>. This is one way to accomplish adding color to your site, but you can also use CSS. CSS is a program that works along with HTML to add a vast array of colors from a preset palette. The great thing about using CSS, or Cascading Style Sheets to add color, is that you only have to write the code for the CSS color palette once. If you have multiple HTML pages, they will all reference one CSS sheet.
Here is an example of CSS incorporated with HTML. In this case the color of this page is purple, so the file will request a specific purple color from the style sheet.
background-color: #d8da3d }
When you teach yourself the basic HTML programming language to set up your website, you will soon discover new techniques and tricks to make your page unique!