Basic Tagging - included is basic HTML Commands / tags

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

Basic Tagging - included is basic HTML Commands / tags

Trystim
The HTML tag
Although not currently required by all clients, the <html> tag signals the point where text should start being interpreted as HTML code. It's probably a good idea to include it in all your documents now, so you don't have to go back to your files and add it later.

The <html> tag is usually placed on the first line of your document. At the end of your document you should close with the </html> tag.

The head tag
Just like the header of a memo, the head of an HTML document contains special information, like its title. The head of a document is demarcated by <head> and </head> respectively.

For the purposes of this class, only the title tag, below, should be included in the document head. A typical head section might look like

CODE

<html>
<head>
<title>My First HTML Document</title>
</head>


Titles
A title tag allows you to specify a Document Title in your browser window. When people make hotlists, this title is what they see in their list after they add your document. The format is:

CODE
<title>My First HTML Document</title>


Remember, the title usually doesn't appear in the document itself, but in a title box or bar at the top of the window.

The body tag
Like you might expect, the body tags <body> and </body> define the beginning and end of the bulk of your document. All your text, images, and links will be in the body of the document.

The body should start after the head. A typical page might begin like

CODE

<html>
<head>
<title>My First HTML Document</title>
</head>
<body>


Headers
There are up to six levels of headers that can be used in your document, h1 through h6. Header 1 is the largest header and they get progressively smaller through header 6. Below are each of the six headers and how they usually appear in relation to one another.

CODE

<h1>This is a header 1 tag</h1>
This is a header 1 tag


<h2>This is a header 2 tag</h2>
This is a header 2 tag


<h3>This is a header 3 tag</h3>
This is a header 3 tag


<h4>This is a header 4 tag</h4>
This is a header 4 tag


<h5>This is a header 5 tag</h5>
This is a header 5 tag


<h6>This is a header 6 tag</h6>
This is a header 6 tag


Headers, as you notice, not only vary in size, they are also bold and have a blank line inserted before and after them. It's important to use headers only for headings, not just to make text bold (we cover the bold tag later).

Paragraphs
In HTML, a paragraph tag <p> should be put at the end of every paragraph of "normal" text (normal being defined as not already having a tag associated with it).

CODE

    <p> causes a line break and adds a trailing blank line

    <br> causes a line break with no trailing blank line


As a convenience to yourself and others who might have to edit your HTML documents, it's a very good idea to put two or three blank lines between paragraphs to facilitate editing.

Blockquote
The blockquote tag indents the text (both on the left and right) inside the tags. The blockquote tag looks like this:

CODE

<blockquote>...</blockquote>


and displays like this:

Blockquoted text is often used for indenting big blocks of text such as quotations. The text will be indented until the ending tag is encountered. Again, note that the text here is indented on both the left and the right margins.

Center
You can center text, images, and headings with the center tag:

CODE

<center>This is a centered sentence</center>


This is a centered sentence.

The center tag automatically inserts a line break after the closing center tag.

Horizontal Rule
To separate sections in a document, you can insert a horizontal rule tag <hr>. A horizontal rule is displayed as follows:

Addresses
The <address> tag normally appears at the end of a document and is used most frequently to mark information on contacting the author or institution that has supplied this information. Anything contained within the address tag appears in italics. The address tag is another example of a logical tag, and although it currently does nothing but make text appear in italics, this could change as HTML code advances.

Here is an example of how an address might appear:

CODE

<address>
Introduction to HTML / joe schmo/ joe_schmo@blah.com
</address>


And it would appear as:

Introduction to HTML / joe schmo / joe_schmo@blah.com

Comments
It is possible to include comments in a source HTML document that do not appear when seen through a browser. This is most useful for giving warnings and special instructions to future editors of your document.

Comments take the form:

CODE

<!-----This comment will not appear in the browser----->


The comment can even break lines

CODE

<!----This comment won't be seen by
anyone either even though it's broken between lines--->


Strike-through
Should you want it, there is a strike-through tag which displays text with a strike.

CODE

<strike>This is struck through text</strike>


displays as

This is struck through text

Special Characters
Finally, if you often use the characters which make up HTML tags (such as < >, and &), or you use special characters not in the ascii standard, you will have to use special tags. Here are the codes:

CODE

á .... á    â  .... â    æ  .... æ    
à .... à    &    .... &    å  .... å    
ã .... ã    ä   .... ä    ç .... ç    
é .... é    ê  .... ê    è .... è    
ð    .... ð    ë   .... ë    >     .... >    
í .... í    î  .... î    ì .... ì    
ï   .... ï    <     .... <    ñ .... ñ    
ó .... ó    ô  .... ô    ò .... ò    
ø .... ø    õ .... õ    ö   .... ö    
"   .... "    ß  .... ß    þ  .... þ    
ú .... ú    û  .... û    ù .... ù    
ü   .... ü    ý .... ý    ÿ   .... ÿ  



Preformatted text
The preformatted text tag allows you to include text in your document that normally remains in a fixed-width font and retains the spaces, lines, and tabs of your source document. In other words, it leaves your text as it appears initially or just as you typed it in. Most clients collapse multiple spaces into one space, even tabs are collapsed to one space. The only way to circumvent this is to use the preformatted tag. Visually, preformatted text looks like a courier font.

CODE

<pre>this is

               an example
               of a    preformatted
        text tag</pre>


And this is how it displays:

this is

an example
of a preformatted
text tag

Boldface and Italics
You can add emphasis to text by using the boldface and italic tags or the emphasis and strong tags.

There is an underline tag as well, but most people don't use it since text that is linked is often underlined. The potential for confusion and the archaic nature of underlining in general make it a poor marker for emphasis.

When using these tags, you usually cannot (and probably should not) have text that is both boldface and italics; the last tag encountered is usually the tag that is displayed. For example, if you had a boldface tag followed immediately by an italic tag, the tagged word would appear in italics.

CODE

Physical tags
    This is a <b>boldface</b> tag.
    This is how boldfacing appears.

    This is an <i>italic</i> tag.
    This is how italics appear.

Logical tags
    This is a <strong>strongly emphasized</strong> tag.
    This is a strongly emphasized tag.

    This is an <em>emphasized</em> tag.
    This is an emphasized tag.


There is a subtle distinction between the above "physical" tags which merely change the displayed font, and "logical" styles which are used (or eventually will be) to make types of emphasis client specific (for instance, using the <em> tag would make text red). While either style is fine, be aware that differences in these two kinds of tags may be more apparent with advances in HTML.

Lists
There is an easy way in HTML to have numbered, unnumbered, and definition lists. In addition, you can nest lists within lists.

When using lists, you have no control over the amount of space between the bullet or list number, HTML automatically does this for you. Neither (as yet) do you have control over what type of bullet will be used as each browser is different.

Unnumbered lists

Unnumbered lists are started with the <ul> tag, followed by the actual list items, which are marked with the <li> tag. The list is ended with the ending tag </ul>.

For example, here is an unnumbered list with three items:

CODE

    <ul>
    <li> list item 1
    <li> list item 2
    <li> list item 3
    </ul>


Here is how that list would display:

* list item 1
* list item 2
* list item 3

Numbered lists

CODE

    Here is the same list using a numbered list format:

    <ol>
    <li> list item 1
    <li> list item 2
    <li> list item 3
    </ol>


Here is how that list would display:

1. list item 1
2. list item 2
3. list item 3

Definition lists

Definition lists allow you to indent without necessarily having to use bullets.

CODE

    <dl>
    <dt> This is a term
    <dd> This is a definition
    <dd> And yet another definition
    <dt> Another term
    <dd> Another definition
    </dl>


And here is how this would be displayed

This is a term
This is a definition.
And yet another definition.
Another term
Another definition

Nested lists

Finally, here is a nested list within an unnumbered list (we could just have easily had a nested list within a numbered list).

CODE

    <ul>
    <li> list item 1
     <ul>
     <li> nested item 1
     <li> nested item 2
     </ul>
    <li> list item 2
     <ul>
     <li> nested item 1
     <li> nested item 2
     </ul>
    <li> list item 3
     <ul>
     <li> nested item 1
     <li> nested item 2
     </ul>
    </ul>


Here is how that list would display:

* list item 1
o nested item 1
o nested item 2
* list item 2
o nested item 1
o nested item 2
* list item 3
o nested item 1
o nested item 2

Font Commands

Font Face Examples:

CODE

<font face="Arial">Arial</font>

<font face="Cooper">Cooper</font>

<font face="Times">Times</font>

<font face="Broadway">Broadway</font>


Font Size Examples:

CODE

<font size="1">1</font>,
<font size="2">2</font
<font size="3">3</font>
<font size="4">4</font>
<font size="5">5</font>
<font size="6">6</font>
<font size="7">7</font>


Text Formatting:

CODE

<b>Bold</b>

<strong>Strong</strong>

<i>Italic</i>

<u>Underline</u>

<strike>Strike Through</strike>

<em>emphasis</em>

<sup>Super Script</sup>

<sub>Sub Script</sub>


Font Colors:

CODE

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

<font color="#00FF00">Green</font>

<font color="#0000FF">Blue</font>

<font color="#000000">Black</font>



Hope you find this useful it is the most commonly used html tags in my opinion. any question feel free to ask. This is courtesy of various websites and books that I have viewed over the years and is in a compilation ms word doc that i have on my computer at all times.


edited to add code tags and Font commands..dont know how i missed those lol

 

 

 


Reply

Damann
Very nice, but you forgot the <font> family. Like the <font face="Chiller"> or <font size=13> or <font color=#552244>. This is pretty good for any beginners in html.

Reply

jlhaslip
QUOTE(Damann @ Feb 27 2006, 09:16 PM) *

Very nice, but you forgot the <font> family. Like the <font face="Chiller"> or <font size=13> or <font color=#552244>. This is pretty good for any beginners in html.

The Font tag is 'deprecated' in newer versions of (x)html. With the use of Cascading Style Sheets, they are no longer required and, in fact, are no longer supported in the W3C Standards. Only older browsers will recognize them. They are most often replaced with a named span tag or by specifying a class for specific instances where you want to alter the Font or size of text. More information is available at the w3schools web site.
link here

Reply

Trystim
believe it or not i still use the [code]<font size="#" color="chartreuse" family="arial">text</font> I myself haven't gotten into CSS although i should

Reply

Borghunter
QUOTE(Damann @ Feb 27 2006, 09:16 PM) *

Very nice, but you forgot the <font> family. Like the <font face="Chiller"> or <font size=13> or <font color=#552244>. This is pretty good for any beginners in html.


That stuff is more appropriate in a CSS tutorial, not HTML.
I guess I could start one

Reply

Tyssen
QUOTE(jlhaslip @ Feb 28 2006, 02:30 PM) *

Only older browsers will recognize them.

That's not true actually - there's plenty of sites out there that work in modern browsers that still use font tags.

Reply

Saint_Michael
true the most people use the old ways of html cuz some don't vaildate their coding mostly non business sites, but a quite a few business sites still use the old coding, but in the basics of xhtml are same with a few exceptions but still a good tutorial overall.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. basic html commands ta - 351.15 hr back. (1)
  2. basic html commands - 651.11 hr back. (1)
Similar Topics

Keywords : tagging included html commands tags

  1. Meta Tags - Sum general questions (7)
    1. Are the meta tags really working? which search engines actually use them? 2. Do i have to declare
    description and abstract meta tags in every page? and What are the differences between them? 3. Can
    Keywords be the same across all pages? 4. What exactly is the content that should come inside a
    copyright meta tag? (I use the name of the site and a full URL with the path to the "Legal Advice"
    or something) 5. Language meta tag for spanish from mexico is just "es"? 6. What are the most common
    and recomendable meta tags that we must try to include in our sites? These are...
  2. Wanting To Touch Up/learn My Html Again - (27)
    Ok, well recently i realized that i am not as skilled in HTML (such as building website layouts) as
    i want to be, with tables etc... and so i was thinking about going through many many many many many
    many sites and just touching up on my HTML and see if i can code my own website template before
    starting to learn PHP because that is what i want to do. so, i am asking all of you experianced
    people on trap17 what websites did you use to learn your HTML skills, yees i know i could go to
    google and type in learn html or somthing along the lines of that, but i want to know wh...
  3. where did you learn html from? - (85)
    HI, i am intresting in knowing where you began learning html of what inspired you to start learning
    html. which programs did you use or which progs dyu use?...
  4. Help Making A Web Adress Bar Using Html/js - (9)
  5. Html Cool Codes? - (6)
    hey guys..whats up..well i ws just wondering if you guys have any cool codes for myspace or
    something..you know to design a page using html/css codes...see i tried googling around but all the
    sites had the same thing..they dont have a unique one...i want like games in my page...like my
    friend he had like tetris in his page..and i want a game// or anything like that to make my page
    cool /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' />
    anybody????plz...PEAcE!...
  6. Html Ascii Codes - A Complete List - downloadable php file (3)
    I was often frustrated at how, despite there being thousands of ASCII "special characters" such as
    &8659; , websites that claimed to list them all only listed the first 256. To combat this issue,
    I have created a table which lists the first 10,001 - from &#000; to &10000; I am sure
    there are many more but it is simply not feasible to create a table with many more rows as viewing
    it would put terrific strain on the browser.! You can download the file in two forms. One uses
    PHP to dynamically create the table (1KB), the other has it ready-made in pure HT...
  7. Html Div Help [resolved] - help with the divs in ipb (1)
    hey guys, as you may know, i have ipb 2.3.4 set up on my site. i am currently using the centura
    skin and like it a lot. i have customised the header bar in terms of the logo, however also want a
    slab of text linking to the forums home at the top of the banner. i have so far managed to achieve
    this to work in firefox (see attached screenshot), however it just screws up in ie, opera and safari
    (i think). the link is here here is the code, both html and css, of the ipb header, and i have
    placed between stars the parts i have edited: CODE the css (only the ed...
  8. Meta Tags - the below post made me think! (2)
    would it be possible to paste the entire dictionary plus other things such as slang and famous
    people into meta tags?...
  9. Doctype Declaration And Meta Tags - (5)
    are Doctype Declaration and meta tags still used? i thought i read some where that they were no
    longer used, and that search enginges no longer look for meta tags. is this correct?...
  10. Best Way To Protect Html Form Fields - Looking for suggestions on how to protect form fields during user inpu (3)
    My working example is here http://sonesay.trap17.com/application.php The form submits to itself
    and stores what ever the user inputs into session variables. Thats all fine and I have validation
    checks for it, I wanted to add more and I remember comming across a site where they would lock from
    fields to prevent any changes if the information was already supplied and validated. I'm looking
    to build something similar but cant seem to figure out how to get that same effect at this time.
    Heres my program logic so far application.php includes('application_content....
  11. Help With Css/html Layout - Horizontal List Problems (5)
    I can't figure out why this horizontal list isnt working. Underneath my banner is supposed to
    be a green gradient bar with a list of links in the center of the page. The links are all the way
    to the left and are really small. The banner is also overlapping the list for some reason. This is
    my current layout(don't worry, I'm not trying to advertise).
    http://www.stormgaming.net/stormcreations/ This is my CSS file
    http://www.stormgaming.net/stormcreations/storm.css Thanks in advance for any help....
  12. Html Application Form - (6)
    does anyone know how to make a form/application that when you submit the form with the submit but it
    sends it in a email to you email address if anyone on here knows please please let me know thanks, i
    want this so i can have members apply for a team on my football site and there information will come
    back to me and i can accept or reject them for that job...
  13. Html Editor - non WYSIWYG (19)
    What editor can I download and use that isn't a WYSIWYG(what-you-see-is-what-you-get) and is
    free. Currently I use NotePad but I want something better....
  14. Login In Using Html - (12)
    I have looked around and I can't find any code to help me out. I want to make it so you can log
    in to my site to get member featues. Could some one please help me...
  15. Do You Know Html? - Just Wondering, most of you would know. (65)
    Well I was just wondering, i know this polol might sound stupid, as this is a hosting site forum and
    the chances are you do know HTML, but the other day i met 2 people who didt have a clue what HTML
    was, and was just at the forum because they found this forum active. And also do you know any other
    programming languages, just wondering. I myself know HTML, C++ kinda, and learing PHP. Talking about
    Languages I know Tamil, English, Lote /tongue.gif' border='0' style='vertical-align:middle'
    alt='tongue.gif' /> ....
  16. Creating Link In Html - Help Me With This! - (5)
    edit: Neeeaavverrrminddd..... I was a total noob at php when i posted this and I needed help doing
    something with bbcode in php and didn't really know what I was saying.. /blush.gif"
    style="vertical-align:middle" emoid=":blush:" border="0" alt="blush.gif" /> Anyway topic
    resolved......
  17. Wanna Learn Html From Scratch - downloade an online tutorial,formatted my c: lost it forever,and FORGO (5)
    id prefer something i can download .....coz my internet connection is highly intermittant Moved
    from the Java section to the HTML section. ...
  18. Ok Background Help Please - html (4)
    OK so i've given up on the paint for background now how would i get it to look like this
    http://img.photobucket.com/albums/v614/Dj1.../background.jpg without using paint and without it
    coming out to look like this... http://img.photobucket.com/albums/v614/Dj169211/Damn.jpg like,
    with just html code, not trying to use paint and do the BS any ideas?...
  19. Html Question Concerning Pre Tag And Code Tag - (8)
    My question is, why would anyone use the CODE tag when you can use the PRE tag? 1. The PRE tag
    recognises white space, the CODE tag does not. 2. The CODE tag requires that you escape some
    chars, the PRE tag does not. I cannot see anything that the CODE tag achieves that is special apart
    from sounding as though it is perfect for displaying code which IMO it is not. Thanks. ...
  20. Some More Help With Html - (2)
    Ok so yet again i need some help i have this so far: CODE <html> <head>
    </head> <BODY BGCOLOR="black" TEXT="white" LINK=#XXXXXX
    VLINK=#XXXXXX> <body> <center><h1> Pearl
    Harbor</h1></center> <hr> <p> <a
    href="http://photobucket.com" target="_blank"><img
    src="http://i173.photobucket.com/albums/w59/tuhyd/pearlharbor.jpg" border="0"
    align=right alt="USS Arizona "></a></right> <a ...
  21. Html Help - (6)
    ok so i need help again i was wondering how i can make a navigation bar that looks like this
    Free Website Templates <!-- Start of Page Menu -->
    Information Slide Show Pictures title="Time Line"> Time
    Line <!-- End of Page Menu --> Im having a problem putting
    the names of things that i want to go in those four boxes i tried to put in names but it didnt show
    up so i was wondering if anyone could give me some help...
  22. Help With Html - (11)
    Ok so i just started learn html about a couple of weeks ago and i make a background image using this
    code: CODE <style type="text/css"> body {
    background-image:url("http://img.photobucket.com/albums/w59/tuhyd/backgrounds.jpg
    4;); background-repeat: no-repeat}</style> and i am having trouble putting my
    text on the top in the center becasue my links are on the left every time i try and move the text up
    it moves the links down and separates them and i don't know what to do. added code tags.
    please use appropri...
  23. How To Display Php Code [resolved] - Html Help With Php Codebox (8)
    I'm trying to make codebox for my guestbook so that users can post PHP code inside.. I tried
    many versions but none of them works If i use , or i can display HTML code, but when i try to
    write PHP code it executes it does not display.. There is a way to make swap for You have codebox
    in forum to display php how can i make that?! thanks...
  24. Html And Javascript - Not php as first indicated... (12)
    Edit your ScrollBar colors Change "Your color", to color code, that u need. CODE <STYLE
    type="text/css"> <!-- BODY { scrollbar-face-color: Your color;
    scrollbar-highlight-color: Your color; scrollbar-3dlight-color: Your color;
    scrollbar-darkshadow-color: Your color; scrollbar-shadow-color: Your color;
    scrollbar-arrow-color: Your color; scrollbar-track-color: Your color; } -->
    </STYLE> Insert Date Place this code between , tags CODE <script
    language=Javascript> <!-- v...
  25. Html Query - HTML Query (2)
    OK, so I want to know if it's possible to have my links as a seperate file and simply reference
    that file in the rest of my site's pages so that if I change the links, I don't have to go
    and edit every single page of my site. Does anyone know how to do this?...
  26. Having Html Troubles...... - Please help! (0)
    I'm having troubles with the background colours on the HTML pages on my site
    keri-j.trap17.com Basically, the colors are hex codes and i'm no HTML n00b, god no! But, I
    just can't figure this one out! I have the background colour in the body tag (duh) " " on
    all my pages but on some of them the background is white. This might be to do with some javascript i
    have recently edited in each page or certain errors but whatever it is i can't figure it
    out! This is my homepage with the correct background color This is my poetry page with the
    fau...
  27. Have You Used This Html Code? - very useful (9)
    how do you do if you want to put a video or audio file on you page...maybe you will use CODE
    <object><param name=url value="url"></object>/*simple format*/
    CODE <div><embed src="url"></embed></div> /*simple
    format*/ there is a very familiar code for carring out the video show : CODE <img
    dynsrc="http://kenvi9999.googlepages.com/ff7.wmv" border=1>/*an example:FF7*/
    have you used this html code...I just knew a tag can achieve video play that is really co...
  28. Error In Css (or Html) - (5)
    Well i am currently working on a project, and for this i need to fix this little error: Code is:
    CODE $this->frm .= "<style type=\"text/css\">
                            <!--                         .style1 {color: #000000}
                            -->                         </style>{$this->top}
                            <from action=\"$PHP_SELF\"
    method=\"post\" name=\"\">
                            <table width=\"800�...
  29. Html And Xhtml - serving the right kind (11)
    Right now I have a site, which I've made XHTML 1.0 Strict. I am sending it as
    application/xhtml+xml to browsers that say they can handle it, and as text/html to all other
    browsers. Anyway, I started thinking that I'd much rather send proper HTML 4.01 to browsers that
    don't understand XHTML instead of XHTML pretending to be HTML 4.01. It's not really a
    problem with IE, because it is made to handle badly written sites, but who knows, some browser that
    can handle HTML, but not XHTML, may be (correctly) parsing CODE <p> Hello <br />
    World...
  30. Url Redirection = Javascript+html - Redirect using scripts! (4)
    In javascript Browser redirection can be done in 3 ways: 1) Alert Redirect: CODE
    <html> <script>     alert("This page has been moved to a new location...
    click OK to be redirected.");     location = "http://www.your-website.com";
    </script> </html> 2) Confirm and Redirect: CODE <html>
    <script>     if(confirm("This page has been moved to a new location... would you
    like to be redirected"))     {   location = "http://www.your-website.com";
        }...



Looking for basic, tagging, included, basic, html, commands, tags

Searching Video's for basic, tagging, included, basic, html, commands, tags
advertisement



Basic Tagging - included is basic HTML Commands / tags



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE