Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Basic HTML Guide


MsNobody
 Share

Recommended Posts

Introduction

I would recommend using Notepad (Windows) or BBEdit (Mac) for any HTML work you begin.

 

Text Tags

 

Bold

 

<b></b>

 

 

 

Example:

 

<b>Hello!</b>

 

 

The previous code will show up as Hello!

 

 

 

user posted image

 

Italics

 

<i></i>

 

 

 

Example:

 

<i>Hello!</i>

 

 

The previous code will show up as Hello!

 

 

user posted image

 

Underline

 

<u></u>

 

 

 

 

Example

 

<u>Hello!</u>

 

 

The previous code will show up as Hello!

 

 

user posted image

 

Strike

 

<s></s>

 

 

 

Example

 

<s>Hello!</s>

 

 

The previous code will show up as Hello!

 

 

user posted image

 

 

Center

 

<center></center>

 

 

 

Example

 

<center>Hello!</center>

 

 

The previous code will show up as

Hello!

 

Headings

 

There are many different sizes of headings.

 

 

<h1>Large Heading!</h1> 

 

 

 

user posted image

 

 

<h2>Heading 2</h2> 

 

 

Heading 2

 

 

user posted image

 

 

<h3>Heading 3</h3> 

 

 

Heading 3

 

 

user posted image

 

 

<h4>Heading 4</h4> 

 

 

Heading 4

 

 

user posted image

 

 

<h5>Heading 5</h5> 

 

 

Heading 5

 

 

user posted image

 

Line Breaks & Paragraphs

 

Hello, how are you?

I'm doing pretty good today.

 

In order to get this you must do this:

 

 

Hello, how are you?<br>I'm doing pretty good today.

 

 

 

user posted image

 

Hello, how are you?

 

I'm doing pretty good today.

 

In order to get this you must do this:

 

 

Hello, how are you?<p>I'm doing pretty good today.

 

Link to comment
Share on other sites

Font Size and Colors

 

The follow tag is used to change the font size.

 

 

 <font size=" ">text to change</font>

 

 

In the blank spot, you should put a plus (+) or minus (-) sign in front of a number. For example:

 

 

<font size="+3">text to change</font>

 

 

That will get you a bigger font size than what you began with.

 

 

user posted image

 

In order to change the color of the text you should use this code:

 

 

<font color="#FF0000">Red</font>

 

 

That code will get you something that looks like this: Red

 

There are many different websites with charts of color codes but

 

here is one.

 

Special Characters

 

Here is a list of special characters and their uses.

&nbsp - one space

&copy - copy wrtie symbol

" - quote

< - <

> - >

& - &

 

 

Links

 

 

<a href=http://gtaforums.com>GTA Forums</a>

 

 

The previous code will get you GTA Forums.

 

 

user posted image

 

If you have other pages on the same server as your home page, you can use this following code:

 

 

<a href="gtaforums.html">GTA Forums</a>

 

 

Images

 

 

<img src="imagenamehere.jpg">

 

 

That code will insert the specified image into your document if you have the image on the same directory as your page.

 

 

user posted image

 

You can use the following the code to insert a image from another website:

 

 

<img src=http://www.gtaforums.com/imagehere.jpg>

 

 

HTML Comments

 

HTML comments aren't required but they can be very helpful as it helps cut down on confusion while working with your web site. You can put an HTML comment anywhere you'd like by using the following code:

 

 

 <!-insert comment here -->

 

 

Any comments you insert into your document will only be seen by looking at the source code.

Tables

 

Tables may be a little complicated at first.

 

 

<table border="1"><tr><td>row 1, cell 1</td><td>row 1, cell 2</td></tr><tr><td>row 2, cell 1</td><td>row 2, cell 2</td></tr></table>

 

 

I'll break the code down for you.

 

 

user posted image

 

 

<table border="1"></table>

 

 

As you can imagine, this tag controls the border size of the table. 1 is the smallest and the borders get larger from there. Personally, I prefer anything between 1-3 depending on what the table is for.

 

 

user posted image

 

 

<tr></tr>

 

 

This tag begins and ends the table.

 

 

user posted image

 

 

<td></td>

 

 

This tag begins and ends the cell.

 

 

user posted image

 

See, once the code is broken down, tables aren't all that complicated.

 

Conclusion

 

This is the end of my basic guide to HTML. Feel free to post any comments/questions you have in this thread. Eventually, I hope to add more to this.

Link to comment
Share on other sites

Mmm... I would like you NOT to suggest people to use <font>, but use <span> and then choose some CSS styles for it.

 

Much better result, and it's also what most people would say to webdesigners today they should.

Link to comment
Share on other sites

Mmm... I would like you NOT to suggest people to use <font>, but use <span> and then choose some CSS styles for it.

 

Much better result, and it's also what most people would say to webdesigners today they should.

Ah well, the <font> tags will work for now.

Link to comment
Share on other sites

immessedup17
This is crap. Everyone please ignore this topic.

Awww, let her karma whore if she wants, no matter the quality.

Link to comment
Share on other sites

The guide is not the best by any long stretch of the imagination, I feel your effort is wasted. If people want to learn HTML, I doubt a thread like this will be their first choice. A look at http://www.w3schools.com/html/default.asp would be a better use of their time. Most tutorials made here will just be scrutinised and then forgotten.

 

You have also included countless tags which are becoming/have become deprecated. Beginners are better off learning the recommended techniques straight away, instead of learning these older ones and then migrating once they are familiar with them.

Link to comment
Share on other sites

This is crap. Everyone please ignore this topic.

This is starting to become a regular thing... me agreeing with Cerb.

Link to comment
Share on other sites

 

This is crap.  Everyone please ignore this topic.

This is starting to become a regular thing... me agreeing with Cerb.

Good heavens! nervous.gif To be honest, MsN, it's been done many times. I added the first one or two to the Mega Topic, but there's just been a few over and over. Too common, and too easy really. HTML is so common, there's tutorials everywhere, books, etc. And we hardly need anymore here. Thanks for the thought and effort, but no thanks. If you get what I mean.

Link to comment
Share on other sites

This is crap.  Everyone please ignore this topic.

This is starting to become a regular thing... me agreeing with Cerb.

Good heavens! nervous.gif To be honest, MsN, it's been done many times. I added the first one or two to the Mega Topic, but there's just been a few over and over. Too common, and too easy really. HTML is so common, there's tutorials everywhere, books, etc. And we hardly need anymore here. Thanks for the thought and effort, but no thanks. If you get what I mean.

HTML is becoming less useful by the second as SQL and stuff become even more regular. Sure everything else relies on HTML being there but CSS has made most of these things obsolete or even 'extinct' I mean seriously who uses

<b></b>

 

anymore. Its just as easy to create a class for it so that each time you don't have write it all out all over again!

Link to comment
Share on other sites

Well it's depreciated, so you should use <strong> anyway. HTML does seem to play second fiddle now.
Link to comment
Share on other sites

HTML is a markup language, of course it's not important, it's the CSS that does the whole thing.

 

Though at points you must return to the <b></b> tags or <strong></strong> tags if you have sentence where some specific text needs to be strong.

 

Aye? HTML will never die... untill W3C gets a better idea.

Link to comment
Share on other sites

 

HTML is a markup language, of course it's not important, it's the CSS that does the whole thing.

 

Though at points you must return to the <b></b> tags or <strong></strong> tags if you have sentence where some specific text needs to be strong.

 

Aye? HTML will never die... untill W3C gets a better idea.

Such as XHTML, which has been around for several years already. rolleyes.gif

 

The <b> is was deprecated in HTML4.01 and isn't even present in XHTML 1.0 Strict, so saying people "must return" to it is totally wrong. As Alcholica points out, <strong> is the future-proof alternative. Seperation of content and style is the key. BTW, Svip, you are also wrong when you say "its CSS that does the whole thing" because CSS can't do much if there's no (X)HTML structure to work with!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.