Forum Moderators: open

Message Too Old, No Replies

What should be contained in the html code?

         

guitariststuff

3:01 pm on Sep 10, 2007 (gmt 0)

10+ Year Member



Just started learning code for a basic website which will contain only text, buttons for navigation and some images.

i can make up the HTML code so that it looks aesthetically exactly the way i want it to look.

i understand that i should add meta tags. should i add a tag to every bulk of text, button and image, along with my title tag?

how would i add a meta tag to the text, button or image?

i want to make sure that obviously my page looks the way it should but also that it is not brought down in any way because there is important pieces of code missing from it - is there anything else i should be aware of whne coding?

any replies much appreciated.

Marshall

3:23 pm on Sep 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The easiest thing I can suggest is look at the source code of a variety of web sites. From that, you shold be able to see/learn what is common, acceptable, etc.,

Marshall

penders

3:38 pm on Sep 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Your text, buttons and images should already be contained within <p>, <img> tags (elements) etc. Meta tags (contained in the <head>...</head> section at the top of your page) refer to the entire page, not the individual sections of it. Your meta tags/elements should occur once on every page, in the <head> section.

An important META element is:

<meta name="description" content="The first page of my website is about...">

Which contains a brief description of the page and can be used by search engines. There are many.

One place to start looking...
[webmasterworld.com...]

tedster

6:58 pm on Sep 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This thread from the HTML Forum Library [webmasterworld.com] may help:

Meta tags and more - from <head> to </head> [webmasterworld.com]

rocknbil

8:20 pm on Sep 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i understand that i should add meta tags. should i add a tag to every bulk of text, button and image, along with my title tag?

Just to clarify, the "meta" tag you want to make use of in images and buttons is the alt tag, in which alternate text is displayed if images are disabled. It's also what search engines digest when encountering an image.

<img src="myimage.gif" alt="Description of what is in this image">

penders

11:15 pm on Sep 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



...the "meta" tag you want to make use of in images and buttons is the alt tag...

Just to clear up the terminology a bit for those who may not be quite so familiar... I know a lot of people have refered to the 'alt tag' in the past, but it is strictly an attribute. In this case an attribute of the img tag.

Ok, people will know what you mean when you say 'alt tag' (and it's probably easier to say), but it will certainly help with searches if you know the correct jargon and if you were to start calling the 'TITLE attribute' a 'TITLE tag' (both valid but very different entities) for instance, then it will only stand to confuse.

tedster

1:08 am on Sep 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One very solid resource for getting up to speed is the W3Schools website. Their online tutorials can really help:

[w3schools.com...]