Following are basic yet useful scripts for beginners and a refresher for advanced wapmasters as well. For complete script references and tutorials, i recommend that you consult w3schools.com. Enjoy!
HTML/xHTML Tags and Scripts
Creating a Web Page
<title>Title of Page Here</title>
<p>this is a paragraph and you can input some texts and images here.</p>
*Note the structure, how each tag is nested, and the proper syntax. A normal html web page starts with the tag <html> and ends with </html> to declare that there's nothing more follows. From the top, the <head> follows after the <html>, then the <title> which will be closed immediately with </title> after putting the desired page title. After this, the <body> comes next where you can put texts and images, or even audio files and inputs, then close it thereafter with </body> when nothing follows.
Adding A Logo, Head and Footer
There are various ways, depending what you like and how it appears in adding your logo, head and footer of your html document or web page. We'll tackle some of these below.
<title>your page title here</title> </head>
<a href="target destination url here">link text or image here</a>
*note : Here in XTGem, you can immediately insert the image url of your logo (e.g. <img src="logo url" alt="logo" /> and an option maybe to center it by adding <p align="center"> before your image url, and closing it with </p>. Likewise in the footer, you don't need to add the <div> tag if you prefer not to.
Horizontal Rule and Break Tags
<br /> This is a break tag and it has no twin closed tag. Using the <br /> once will prompt you to go one line down.
The horizontal rule <hr /> has no closing tag likewise. You can set the color, width, height, and image to it, like this: <hr ="image url here" width="200" height="3" />.
This is a very useful tool tag to navigate your web pages and link-ups to other web pages as well - all multimedia forms.
<a href="target url destination here">link text here</a>
*The "target url destination" is the destination when clicking "link text" which is the one visible on your page.
You can also put an image link in place of text by typing the url, e.g., <img src="image url" />.
Styling with (x)HTML
You can style portions of your web page whatever you like to be displayed. Although this is more tedious to do than CSS, it is also fun and interesting especially when you're lazy putting your CSS within your head tag. We'll tackle some of the more familiar ones below.
The <head> tag can be styled, like the other html tags, by adding 'style' to the tag, e.g., <h1-6 style>, then set the attributes and values that you want. See the example below.
The head size selected here is the 4th <h4>. You can select whatever size you want from the biggest <h1> to the smallest <h6>. The rest is self-explanatory (background color, font-color, alignment, and the text you want to appear and styled which, in the example is 'Head Styling' - edit these which suits your needs).
If you wish perhaps to have different web pages of different skin, you can use the < body style >. This will override your default skin (css template) without losing it.
The paragraph tag < p > can also be styled by adding 'style' into it then perform the usual assigning of attributes and values to it. The example below shows how it is done. So simple to follow because all presented here are of the same pattern. No sweat.