Home

Profile Editor

Layouts

Contact Tables

Generators

Tutorials
Log inUsernamePassword
Log me on automatically each visit    
Search
Search
Register
Register
Log in to check your private messages
Log in to check your private messages
MyGen.co.uk Forum Index » Tutorials

Post new topic   Reply to topic
HTML basic code snippets Goto page 1, 2  Next
View previous topic :: View next topic  
Author Message
Triple



Posts: 38
Location: Illinois

PostPosted: Tuesday 01st November 11:52am    Post subject: HTML basic code snippets Reply with quote

1. HTML stands for 'Hypertext Markup Language.'
2. HTML code is composed of tags that tell your browser what to do.
3. When you create an HTML file, it is always better to save it with the extention of .html or .htm.
4. You can code any HTML file using notepad or any other text editor.
Great, that's about it. Just a few basic facts that will come in handy once you're ready to code. Lets being, shall we?.




The regular HTML document is made up of two parts; the head and the body. Most of the code will be in the body part of the document, however, some important information will also have to be stored in the head. Keep in mind that when you start a tag, such as the head, you use , and to end a tag, you always use a slash like this: I will now show you how to make a regular page consisting of basic HTML tags.

Open up your text editor and type the following:

<html> Starting the HTML document.
<head> Starting the head section.
<title> Starting the title.
Title here!
</title> Ending the title.
</head> Ending the head section.
<body> Starting the body section.
Body content here!
</body> Ending the body section.
</html> Ending the HTML document.

Now we save it as index.html.


----------------------------------------------
Code Bits and Peices
----------------------------------------------
Formatting Text

Bold text:

Code:
<b>****</b>


Italic text:

Code:
<i>****</i>


Underlining text:

Code:
<u>****</u>


Increase your text by one size above default:

Code:
<big>****</big>


Decrease your text by one size below default:

Code:
<small>****</small>


To create a horizontal line across the width of the table column.

This tag also has a percentage function so you can tell the web page how far across the table column you want it to go.
Code:
<hr width="100%">


Invisible Comments

Comment made by you that won't display on the web page, only in the html. Useful for little reminders.
Code:
<!--****-->


Centred text:

Code:
<center>****</center>


Aligned left:

Code:
<left>****</left>


Aligned right:

Code:
<right>****</right>


Font Size (The default size is 3, it ranges from 1-7):

Code:
<font size="2">****</font>


Font (This will change the font to verdana):

You can add as many fonts as you want, if a computer viewing does not have the font Verdana it will move to Sans-Serif in the below example.

Code:
<font face="Verdana, Sans-Serif">****</font>


Font Color (In place of the six's you should put the hex code of your color) :

Code:
<font color="#666666">****</font>


Image Tags

Adding a picture.

Code:
<img src="example.gif">


Height and width of the image (in pixels)

Code:
<img src="example.gif" height="20" width="20">


Border (0 means no border which is also the default setting)

Code:
<img src="example.gif" border="0">


Alignment (left, center or right)

Code:
<img src="example.gif" align="center">


Embedding Music or Videos

Adding a Video/Audio File.

Code:
<embed src="example.wmv">


Height and width of the video/audio player. (in pixels)

Code:
<embed src="example.wmv" height="40" width="140">


Auto Start (Whether the Audio/Video plays as soon as the page loads True Or False)

Code:
<embed src="example.wmv" autostart="false">


Loop (Whether after starting to play it continues to repeat True or False)

Code:
<embed src="example.wmv" loop="false">

_________________


Last edited by Triple on Saturday 25th March 7:45pm; edited 6 times in total
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Rocky
MyGen Dogsbody


Posts: 1238
Location: Newcastle, UK

PostPosted: Wednesday 02nd November 10:21am    Post subject: Reply with quote

Useful info Smile
Back to top
View user's profile Send private message Visit poster's website
x13igDudex12



Posts: 237
Location: Around

PostPosted: Thursday 24th November 10:30pm    Post subject: Reply with quote

Oh man do i have something that will be like christmas for noobs. Take a look at it. I found it on google when i started out. Still helps a little bit but doesnt give a lot of info and stuff. I downloaded it to my PC and put it on my geocities.

http://www.geocities.com/thatcuteguy229/myspace/html/html1.txt

remember i didnt make it so dont call me a hero or nuthin.
Keep this on the Down Low Wink
Back to top
View user's profile Send private message Visit poster's website
Triple



Posts: 38
Location: Illinois

PostPosted: Friday 23rd December 4:07am    Post subject: Reply with quote

x13igDudex12 wrote:
Oh man do i have something that will be like christmas for noobs. Take a look at it. I found it on google when i started out. Still helps a little bit but doesnt give a lot of info and stuff. I downloaded it to my PC and put it on my geocities.

http://www.geocities.com/thatcuteguy229/myspace/html/html1.txt

remember i didnt make it so dont call me a hero or nuthin.
Keep this on the Down Low Wink


WOW, That is an impressive document....

Love it!
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
danyell723



Posts: 8

PostPosted: Sunday 09th April 4:06am    Post subject: Reply with quote

THANK YOU!!! You helped me fix SOOOO many simple things on my profile! They were bugging the crap outta me! Surprised)
Back to top
View user's profile Send private message
jdluvless



Posts: 7

PostPosted: Sunday 16th April 7:03am    Post subject: eekk Reply with quote

is there a simple and short code for a 1px dashed underline? i really want a short code..please help..and if there is a code for a dashed underline that let you do a color like this [/color]
Code:
3399ff
[color=lightblue](color codes) than please inform me..i'd really like one that is short..and easy to memorize..Big Smile
Back to top
View user's profile Send private message
Triple



Posts: 38
Location: Illinois

PostPosted: Monday 17th April 3:24pm    Post subject: Reply with quote

Like a hairline?
Code:
<hr>


That?
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
eddieg619



Posts: 54

PostPosted: Tuesday 04th July 6:47am    Post subject: Reply with quote

this is really helpful thanx
_________________
Myspace
Back to top
View user's profile Send private message
welshcelt



Posts: 1

PostPosted: Friday 07th July 8:31pm    Post subject: Reply with quote

thnx man this will help me will html i didnt even no what is waz thnx Big Smile Big Smile
_________________
Photobucket - Video and Image Hosting
Back to top
View user's profile Send private message
Camboo1



Posts: 1
Location: Derbyshire

PostPosted: Sunday 01st October 6:27pm    Post subject: Reply with quote

x13igDudex12 wrote:
Oh man do i have something that will be like christmas for noobs. Take a look at it. I found it on google when i started out. Still helps a little bit but doesnt give a lot of info and stuff. I downloaded it to my PC and put it on my geocities.

http://www.geocities.com/thatcuteguy229/myspace/html/html1.txt

remember i didnt make it so dont call me a hero or nuthin.
Keep this on the Down Low Wink

just made my life alot easyer mate cheers Smile Big Smile Laughing Wink
Back to top
View user's profile Send private message Visit poster's website
xstevey_bx



Posts: 80
Location: UK

PostPosted: Sunday 01st October 11:37pm    Post subject: Reply with quote

A brilliant site is http://www.lissaexplains.com !! She taught me all I needed to know about html! Smile
Back to top
View user's profile Send private message Visit poster's website
wilford



Posts: 24

PostPosted: Tuesday 10th October 2:07am    Post subject: Reply with quote

Sub GotoLastSheet()
Dim i as Integer
For i = Sheets.Count To 1 Step -1' Counting backwards
If Sheets(i).Visible And TypeName(Sheets(i)) <> "Module" Then
Sheets(i).Select
Exit Sub
End If
Next i
End Sub

____________________________________________

social security lawyers new jersey
travel insurance quotes
plastics consolidated
Back to top
View user's profile Send private message
darkiewonder



Posts: 895
Location: USA

PostPosted: Tuesday 10th October 2:16am    Post subject: Reply with quote

Wilford. That is NOT Html Snippet but a different language code all together.

http://www.vba-programmer.com/Snippets/Code_Excel/Activates_Last_Sheet.html

Nice job copying and pasting it from there.
_________________
http://www.myspace.com/darkiewonder
Im working on a new page layout. It's so gay. So stay tuned.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Triple



Posts: 38
Location: Illinois

PostPosted: Monday 12th February 7:34pm    Post subject: Reply with quote

wilford wrote:
Sub GotoLastSheet()
Dim i as Integer
For i = Sheets.Count To 1 Step -1' Counting backwards
If Sheets(i).Visible And TypeName(Sheets(i)) <> "Module" Then
Sheets(i).Select
Exit Sub
End If
Next i
End Sub

____________________________________________

social security lawyers new jersey
travel insurance quotes
plastics consolidated


Lawl
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
cheesy360



Posts: 2

PostPosted: Friday 30th March 6:07am    Post subject: Reply with quote

I cant seem to find the url for any songs on my pc how do you find them?[/url]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MyGen.co.uk Forum Index » Tutorials All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
This page was created in 0.064 seconds

Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group
© 2004-2006 Rob Hall and Rocky Wilkins. All rights reserved.