Programming, website development forum Get latest updates by RSS Follow TechnicalTalk on Twitter Follow TechnicalTalk on Facebook 
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password    
  Forgot your password?  

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

Basic Tags in HTML

 
webmaster forum
shahul  Offline
DON'T TRY TO BEAT ME
Activity
0%
 
Regular Coder
Location: INDIA
Gender: Male
Age: 24
Posts: 52
Topics: 31
January 02, 2009, 08:51:55 AM

To create a paragraph:
   create a pragraph Using <P> tag
   
   Example :
      
Quote
<p>This is a Tag using to create Paragraph</p>

To create a link
   create links using <a> tag
   
   Example :
   
Quote
<a href = "www.technicaltalk.net">This is our forum</a>

To break a line
   break a line using <br> tag
   
   Example :
   
Quote
Go to next line<br>

To insert an image
   insert an image <img> tag

   Example :
   
Quote
<img src ="image destination" width="size of image width" height="size of the height">

Header tags
   these are the header tags in html <h1>,<h2>,<h3>,<h4>,<h5>

   Example :
   
Quote
<h5>Heading</h5>
for bold
   use <b> tag for bold

   Example :
   
Quote
<b>bold letters</b>

for italic
   use <i> tag for italic

   Example :
   
Quote
<i>italic letters</i>

To underline
   use <u> tag for bold

   Example :
   
Quote
<u>underlined letters</u>

For background color
   use <bg> for background color

   Example :
   
Quote
<bg color="red">


These are the general tags available in HTML.WANT MORE TAGS?  shiny
« Last Edit: January 08, 2009, 04:01:54 AM by polas »
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
January 02, 2009, 08:59:53 AM

Thanks for posting these - a good reference Smiley

What other tags do you think are important? It is interesting to see you have chosen not to include the <font ...> tag, I find that one quite useful for, amongst otherthings, changing the font colour.

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
Thomas  Offline
Formerly theone759.
Activity
0%
 
Professional Coder
Posts: 351
Topics: 53
January 02, 2009, 09:11:29 AM

Nice thread. I was thinking of posting something like this last night.
 
webmaster forum
Activity
0%
 
New Poster
Location: Makati, Philippines
Gender: Female
Age: 31
Posts: 4
Topics: 1
WWW
January 07, 2009, 07:47:54 PM

thanks shahul. are you sure about the italic and underline tags though?

is there anyone who can recommend an e-book for basic html? 
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
January 08, 2009, 04:02:54 AM

thanks shahul. are you sure about the italic and underline tags though?

Good spot! I have now fixed it for the OP.

As far as ebooks, good question - I think W3 schools is a good resource - is it not sufficient, do you want a book especially?

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
nerdee  Offline
Activity
0%
 
Regular Coder
Posts: 51
Topics: 0
January 12, 2009, 09:53:11 AM

Those are some that anyone involved with websites/forums should know before starting.
 
webmaster forum
Activity
0%
 
New Coder
Posts: 23
Topics: 2
WWW
July 24, 2009, 01:42:19 PM

Just a note, that some of these tags need a bit of refining in case anyone is using them for reference. It's just to make sure you are writing complient code.

<br> and <img> tags as they are self containing, need to be closed... eg
<br /> and <img src="picture.jpg" alt="picture description" />

<b> and <bg> tags should no longer be used.

You should now use <strong> to make your text bold and use CSS to create background colours (let me know if you want some guidance on how to do this!).
 

GOATSPORT - For all your sports discussion

http://www.goatsport.com
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
July 24, 2009, 02:22:45 PM

I never knew this, can you explain why you need the \ to close the tags? Why can we not use <b> any more, is <strong> the same ?

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
Activity
0%
 
New Coder
Posts: 23
Topics: 2
WWW
July 24, 2009, 05:21:51 PM

I was hoping nobody would ask me about <b> tag!! It's kind of hard to explain, using <b> in your copy doesn't mean anything, it just makes it bold (bear with me!), when you use <strong> it carries weight with it, and means that the text in between the 'strong' tags is important. Screenreaders etc will make more of a meal out of text in <strong> tags. (I realise this probably makes no sense, but I just always use strong tags now as a rule of thumb)

Now for the forward slashes, now that there are so many different web browsers, it is important that we write structured semantic code - the key word when referring to the slashes is structured. One part of this is that basically when you open something, you must close it, even single tags. So just as you close <p> tags, <br>'s need to be closed also.

GOATSPORT - For all your sports discussion

http://www.goatsport.com
 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1387
Topics: 105
NaviBuster NaviBuster
WWW
July 25, 2009, 12:07:43 AM

I never knew this, can you explain why you need the \ to close the tags? Why can we not use <b> any more, is <strong> the same ?


using strict \ to close a tag was added when XHTML was introduced. Basically it doesn't matter if you close some of the TAGs or not in simple HTML.

Just to add more There are two types of TAG in HTML
1) Single TAG
2) Paired TAG

Now single tags are those who do not necessarily have a closing tag like <hr> OR even META tags used in <HEAD> section. Using a <link> tag which is used to include external CSS file is also a good example in this category.

Every one knows about the Paired Tags like <Body></Body>  <Head>/<Head>  <Table></Table> etc.
For this the end tag is a must Or else they will not give you results properly especially like with HTML Table structure Tags.

Now in early days of HTML many people (new HTML Programmer who started publishing so many websites) didn't knew that the single Tags can be closed by using '\' like <   \> , and therefore there resulted many websites on the internet which had in-proper HTML Tags.

But now when when we use XHTML then we have to use \> tags to close the 'Single' Tags like <hr \> <link \> etc
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
July 25, 2009, 02:33:08 AM

Ah right, thanks for the explanation guys, I never knew that but it does make sense. So you would suggest closing single tags whenever I write simple HTML?

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
Activity
0%
 
New Coder
Posts: 23
Topics: 2
WWW
July 25, 2009, 03:26:29 AM

Definitely, it's good practice. You should look into XHTML, it may sound daunting but if you write good code you will probably already be nearly writing in XHTML.

Just as a note in case there is some confusion in the previous posts. Close tags with the toward slash '/' not the back one.

GOATSPORT - For all your sports discussion

http://www.goatsport.com
 
webmaster forum
Dazbenny  Offline
Activity
0%
 
New Poster
Posts: 5
Topics: 0
July 27, 2009, 02:04:52 AM

if u can explain default properties of all the basic tags which u explain it will help those person who are new to HTML or CSS
and also mentioned how to close empty tags
« Last Edit: July 17, 2010, 12:13:42 AM by Admin »
 
webmaster forum
eugeniu  Offline
Activity
0%
 
New Coder
Posts: 23
Topics: 1
July 30, 2009, 09:15:34 PM

For the sake of consistency with XHTML and HTML5, please close those empty tags and rethink that <bg> tag.
 
webmaster forum
belgaila6  Offline
Activity
0%
 
New Poster
Posts: 1
Topics: 0
August 01, 2009, 07:38:17 AM

Thanks it's very important. clapping
 
webmaster forum
Activity
0%
 
Regular Coder
Posts: 53
Topics: 2
August 03, 2009, 08:30:46 PM

Just a note, that some of these tags need a bit of refining in case anyone is using them for reference. It's just to make sure you are writing complient code.

<br> and <img> tags as they are self containing, need to be closed... eg
<br /> and <img src="picture.jpg" alt="picture description" />

<b> and <bg> tags should no longer be used.

You should now use <strong> to make your text bold and use CSS to create background colours (let me know if you want some guidance on how to do this!).
 


Please note! This is only if you are using the XHTML doctypes. If you are using an HTML DOCTYPE, it is not necessary or recommended to do self closing tags.
 
webmaster forum
Activity
0%
 
New Poster
Posts: 10
Topics: 3
August 16, 2009, 09:39:33 PM

This is a great reference. Now I know where I'll go when I start blanking out...  shiny
 
webmaster forum
Computer Head in 'da House!
Activity
0%
 
Regular Coder
Posts: 85
Topics: 9
WWW
January 01, 2010, 01:23:54 PM

Nice reference. Smiley  It definitely gives novices (or people like me who can't remember the proper syntax) a place to look when using these tags.

Your PC Forums
 
webmaster forum
fat32  Offline
Activity
0%
 
Regular Coder
Posts: 99
Topics: 3
February 17, 2010, 10:17:32 PM

Nice post bro... This is very usefull for newbie who want promote site @ forum or blog because they need live link post... hehehe Cheesy
 
webmaster forum
Activity
0%
 
New Coder
Real name: josaph...
Location: Usa...
Posts: 17
Topics: 2
WWW
July 16, 2010, 11:11:04 PM

HTML full form is Hyper Text Markup Language.  HTML language is used for creating web pages.  It is a markup language, not a programming language.  HTML markup tags are usually called HTML tags.  The first tag in a pair is the start tags, the second tag is the end tag, Start and end tags are also called opening tags and closing tags. 

No Fee Work at Home |Data Entry |Work from home
 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1387
Topics: 105
NaviBuster NaviBuster
WWW
July 17, 2010, 12:19:35 AM

It is a markup language, not a programming language.

Exactly, Many people misunderstand HTML as programming language. Programing languages can make decisions. They have conditional statements like using If...Then. Programming languages also have looping statements like For....Next

But HTML do not contain any of the conditional nor looping statements. The purpose of the HTML is to display the data, as it is provided to it.

DO NOT MAKE MISTAKE BY CALLING HTML AS PROGRAMMING LANGUAGE. HTML IS MARKUP LANGUAGE.

Hope this helps a lot.
 
webmaster forum
Jeremy  Offline
Activity
0%
 
Skilled Coder
Posts: 103
Topics: 4
WWW
July 18, 2010, 09:33:35 AM

Some of the info in this thread is outdated...and some tags deprecated.

You are better off using CSS for fonts, colors, in other words, anything style.

Also, '/>' vs. '>' for example is a difference between XHTML and HTML. A lot of people use XHTML just because Dreamweaver defaults to it.

It never hurts to use the W3 validator to make sure your code is correct!

 thumb

Second Home Mortgage
Private Student Loans
 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1387
Topics: 105
NaviBuster NaviBuster
WWW
July 18, 2010, 09:14:57 PM

A lot of people use XHTML just because Dreamweaver defaults to it.



I do not agree with this statement. Many technical people have started realising the importance of XHTML and therefore they have started using it.
 
webmaster forum
Activity
0%
 
New Coder
Location: Australia
Gender: Male
Age: 22
Posts: 42
Topics: 1
dexbydesign
WWW
August 03, 2010, 01:53:36 AM

I honestly can't remember if <font> is still valid XHTML, but if you are (shock horror) lazy like me, I use it because I find it quicker than just declaring it in CSS.  I know that technically this isn't true, as you can set a style once in CSS and then just call it with <span> whenever you need it, but I'm not 100% on CSS so I find this method easier.

I have to admit to using XHTML because Dreamweaver defaults to it, but I do also agree that it is important to keep up with standards (to an extent, like if you want to do extra things with your site which aren't covered by XHTML standards)  and that it's been used for that purpose as well. 
 
webmaster forum
EvoD  Offline
Activity
0%
 
New Coder
Posts: 32
Topics: 4
August 03, 2010, 11:55:26 PM

Those are some really basic tags
 
webmaster forum
kapolres  Offline
Activity
0%
 
New Poster
Posts: 1
Topics: 0
WWW
August 07, 2010, 03:19:41 PM

This is very Important friend.  .  thaks alot.  . 

 
webmaster forum
Activity
0%
 
New Coder
Posts: 17
Topics: 2
August 13, 2010, 08:32:59 AM

Please provide some examples of some of the HTML and CSS codes using empty codes and how to use them in practical websites for newbie’s.

immobilien mallorca | Cheap Website Design | chicago movers
 
webmaster forum
krshjones  Offline
Activity
0%
 
New Coder
Posts: 15
Topics: 2
August 16, 2010, 04:05:23 AM

Thanks for your valuable post...That was really useful, HTML have different types of tags. In HTML some tags are empty and some tags are non empty...

dvd copy software | golf myrtle beach | Personal Loans
 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1387
Topics: 105
NaviBuster NaviBuster
WWW
August 16, 2010, 04:24:03 AM

Please provide some examples of some of the HTML and CSS codes using empty codes and how to use them in practical websites for newbie’s.

Can you give me example of empty tag?
 
webmaster forum
playnstop  Offline
Watch Online Movie
Playnstop.com
Activity
0%
 
New Coder
Gender: Male
Age: 21
Posts: 18
Topics: 1
Playnstop Wath Free clear playnstop
WWW
August 21, 2010, 03:51:20 PM

Nice posting for further details visit hxxp: www. w3schools. com/tags/default. asp

complete details about HTML tag

Free Watch Online Movies
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
August 30, 2010, 12:44:43 PM

I honestly can't remember if <font> is still valid XHTML, but if you are (shock horror) lazy like me, I use it because I find it quicker than just declaring it in CSS.

Same here!

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
carry12  Offline
Activity
0%
 
New Coder
Location: UK
Gender: Female
Age: 31
Posts: 16
Topics: 2
WWW
February 04, 2011, 10:16:55 PM

Hello Friends. . . . . .

The basic tags include <html>, <title>, <meta>, and <body>.  We introduce each of the four in the following:

1. <html>:This tag is used to indicate that this is a HTML document. Most HTML documents should start and end with this tag.  

2. <head>:This tag is used to indicate the header section of the HTML document, which typically includes the <title> and <meta> tags, and is not displayed in the main window of the browser.

3. <title>:This indicates the title of this HTML page.  The title is what is displayed on the upper left corner of your browser when you view a web page.

4. <meta>:The <meta> tag information is not directly displayed when the page is rendered on the browser.  Rather, this is used for the author of the HTML page to record information related to this page.  Two common attributes are name and content.

5. <body>:The <body> tag includes the HTML body of the document.  Everything inside the <body> tag (other than those within the <script> tag) is displayed on the browser inside the main browser window.

The <body> tag may contain several attributes.  The most commonly used ones are listed below:

    * bgcolor: This is the background color of the entire HTML document, and may be specified either by the color name directly or by the six-digit hex code.
    * alink: The color of the links.
    * vlink: The color of the visited links.
    * topmargin: The margin from the top of the browser window.
    * leftmargin: The margin from the left of the browser window.

Thanks

GreatForum
 
webmaster forum
Activity
0%
 
Skilled Coder
Posts: 125
Topics: 0
March 15, 2011, 02:11:12 AM

HTML is very easy to learn. There are some very basic tags of HTML, Which are given below.

<html> - Begins your HTML document.

<head> -

<title> - The TITLE of your page.

</title> - Closes the <title> tag.

</head> - Closes the  <head> tag.

<body> - This is where you will begin writing your document

</body> - Closes the <body> tag.

</html> - Closes the <html> tag.

Network Management Service
 
webmaster forum
ShaunWd  Offline
Activity
0%
 
New Coder
Real name: Shaun
Posts: 34
Topics: 0
WWW
March 15, 2011, 04:31:57 AM

every HTML code contain <html></html> , <title> </title>, <body></body> tags, so they also be included in list of basic HTML tags. 

SEO Forum , PHP Forum
 
webmaster forum
Activity
0%
 
New Poster
Posts: 1
Topics: 0
March 20, 2011, 11:53:12 PM

Nice thread
I just come up to post such great and help full tips for naive html codders.
Thanks a lot for posting great things.

Web Master
Dentist
« Last Edit: March 21, 2011, 08:44:32 AM by Admin »
 
webmaster forum
cuddly  Offline
Activity
0%
 
Regular Coder
Posts: 91
Topics: 4
March 31, 2011, 08:45:49 AM

HTML code for links
Syntax
<a href=”URL”>Anchor tag</a>

HTML Links - The target Attribute

Syntax

<a href="URL" target="_blank">Anchor Text</a>

HTML Links - The name Attribute

Syntax

<a name="name">Text</a>
<a href="#name">Anchor Text</a>

or

<a href="URL#name">Anchor Text</a>

Miracle Mineral Supplement  | Resveratrol Australia
 
webmaster forum
Activity
0%
 
Professional Coder
Real name: Odusee
Location: Australia
Gender: Female
Posts: 458
Topics: 47
WWW
June 08, 2011, 12:23:22 AM

Nice post. Basic tags indeed. Cheesy

Find it all at ONE Address~ Check it Out!
 
webmaster forum
Activity
0%
 
Regular Coder
Gender: Male
Age: 24
Posts: 60
Topics: 10
July 12, 2011, 11:45:46 PM

This article is nice, i think its good for the beginners to know these basic tags to study out further.

Payday loan
 
webmaster forum
Activity
0%
 
Professional Coder
Real name: Odusee
Location: Australia
Gender: Female
Posts: 458
Topics: 47
WWW
July 26, 2011, 10:22:24 PM

They were hoping nobody would ask me about <b> tag.  It's kind of hard to explain, using <b> in your copy doesn't mean anything, it hardly makes it bold, when they apply <strong> it carries weight with it, and means that the text in between the 'strong' tags is important.  Screenreaders etc will make more of a meal out of text in <strong> tags.

<strong> is usually use in CSS or Php is it not? <b> is used in HTML. Nonetheless they both bring out the boldness in the articles Smiley

Find it all at ONE Address~ Check it Out!
 
webmaster forum
kellylsn  Offline
Activity
0%
 
Professional Coder
Posts: 229
Topics: 7
August 02, 2011, 03:21:49 AM

Each and every useful basic tags are included here and i think its enough to go ahead.

Payday Loan
Online Easy Loans
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.15 | SMF © 2011, Simple Machines


Google visited last this page January 13, 2012, 09:33:10 PM