SilverFox
May 8 2007, 01:36 PM
In all your html there are things you want to follow. Always use lowercase for your HTML TagsDon't use upper case. Upper case is bad (this can be hard to do if your like me and tend to write <I> and then </i> for closing:P). CODE <center><H3>Types of Staff</H3></center>
<H4>Administrators: <i>SilverFox, Danmidas</i></H4> Above: Bad Code Below: Good CodeCODE <center><h3>Types of Staff</h3></center>
<h4>Administrators: <i>SilverFox, Danmidas</i></h4> Use Self-Closing TagsIn html certain tags (ex. img, br, hr) didn't need closing tags. However its best to write them with something called self-closing tags.CODE This is a more normal, bad HTML code.<br><br>I'm not using self closing tags. <BR> Now I just used a capital one. Big bad-bad :P <hr> Above: Bad Code Below: Good CodeCODE This piece of code is better. <br /> <br /> I just used self closing tags. <br /> and I didn't use a capital. <hr /> Make your Documents "well-formed"Form them right. CODE <p>here is an emphasized <em>paragraph.</p></em> Above: Bad Code Below: Good CodeCODE <p>here is an emphasized <em>paragraph.</em></p> Might take you a while to pick up on thise one. In the first example the <p> was closed then the <em>. However that's over-lapping and it isn't good. Always QuoteSome might have a problem with this thankfully I never have (writing the bad code in the example I found I had written it right without trying). CODE <td rowspan=3><br /> <a href=site goes here.net> Above: Bad Code Below: Good CodeCODE <td rowspan="3"><br /> <a href="site goes here.net"> Always quote attributes. DocTypeMost of us use CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> I recommend using: CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> This is the way to the future. Thanks EDIT: Added <center> to examples that didn't have a start tag.
Comment/Reply (w/o sign-up)
saint-michael
May 8 2007, 02:03 PM
Interesting enough the new way of coding has been talked about since xhtml was introduced back in 2000 I think, so it's nothing really new if your coding career start with the xhtml era. Of course the books I have been coming across with recently show like ot emphasize that particular note as well including the use of the "&" symbol in your html coding. One thing I do like to comment on is the doc type which I recently found out myself, you really don't need to use XHTML doc type if you don't plan on using XML with in your site, HTML 4.01 strict is the closes thing to xhtml then it can get with some minor differences. Although people have been using xhtml since it first came out since it was cleaning, some designers especially those who make web template still use html 4.01. But hte one thing I thought was a bit annoying was the fact you need to close every tag in your document like <br> and image tags, I think was a bit unnecessary of course I haven't heard to much about xhtml 2 yet so who knows what they changed with that coding structure. Another thing I would like to point out with the quote thing make sure your using the right quotes since most programming languages uses both " and ' within it's structure. Although a interesting topic it should cover more uncommon things that most designers don't know about or trying to figure out, especially now that ajax is coming around and you got all thes video and photo sites showing up.
Comment/Reply (w/o sign-up)
Chesso
May 8 2007, 02:49 PM
Well mostly self closing tags are there because these tags have no need for an additional close tag. However, without some hard-coded checking, how will the parser know when these tags have finished? The answer was of course, self-closing them  . I also use the XHTML doctype (1.0 transitional). By the way I am pretty sure P isn't a self closing tag, it stands for Paragraph and you normally have the paragraphed text within it (e.g. <p>This is a paragraph.</p>). Oh and don't forget code indenting, it's extremely usefull for readability for future maintenance. The simplest form is to push code in by 1 line, every time it goes inside of something else, and when you start closing those tags off, you start indenting back to the left side until the start tag which has no indendtation, ends up back that way.
Comment/Reply (w/o sign-up)
SilverFox
May 8 2007, 04:28 PM
saint-michael, the reason I called it new age is you'd be surprised how many people are using non-XHTML compliant stuff. This is about XHTML so " is the valid quote...at least for my examples. And I don't know the uncommon things that often  But I know that some people who come to asta surprisingly have almost no coding background, look at me. @Chesso: I see. QUOTE Oh and don't forget code indenting, it's extremely usefull for readability for future maintenance. I know I'll add that. I was speaking mainly of the actual code though
Comment/Reply (w/o sign-up)
pyost
May 8 2007, 07:19 PM
I would also recommend avoiding the <center> tag. Instead, use <div style="text-align: center;">. What's more, the first tag isn't even supported in XHTML 1.0 Strict
Comment/Reply (w/o sign-up)
saint-michael
May 8 2007, 10:54 PM
That is true that a lot of new people come to the forums some have little experience and of course the hundreds of questions are asked, of course you could say some new people don't have much forum experience either. Especially when they post the same question that 20 other people posted before. thats why I pointed that different languages use both " and ', you could say that was a little reminder to be able to tell the difference. Well I know some big name sites are changing over and out of curiosity I looked at yahoo site and they are still using html strict  . I even check google main page and they have no doc type whatsoever and filled with many errors  . But like I said the only reason some are still not using xhtml, because they don't use anything that requires XML support. Then you have those who use pre-made templates and just stick with the original coding because the time consuming process it takes to convert tables to divs, I been going at it on and off for a couple of months and it is time consuming. But I won't talk about myspace coders because I would like to sleep good at night knowing that html coding is getting better and not worse  .
Comment/Reply (w/o sign-up)
Chesso
May 9 2007, 12:01 AM
Hey now don't forget CSS's text-align property can have undesired effects (center text instead of an object/container or center both). They really need one for text only and one for objects/containers. Otherwise you got to use even more code to stop it from centering things you don't want it to.
Comment/Reply (w/o sign-up)
demolaynyc
May 9 2007, 02:47 PM
QUOTE(SilverFox @ May 8 2007, 09:36 AM)  In all your html there are things you want to follow. Always use lowercase for your HTML TagsDon't use upper case. Upper case is bad (this can be hard to do if your like me and tend to write <I> and then </i> for closing:P). CODE <H3>Types of Staff</H3></center>
<H4>Administrators: <i>SilverFox, Danmidas</i></H4> Above: Bad Code Below: Good CodeCODE <h3>Types of Staff</h3></center>
<h4>Administrators: <i>SilverFox, Danmidas</i></h4> Use Self-Closing TagsIn html certain tags (ex. img, br, hr) didn't need closing tags. However its best to write them with something called self-closing tags.CODE This is a more normal, bad HTML code.<br><br>I'm not using self closing tags. <BR> Now I just used a capital one. Big bad-bad :P <hr> Above: Bad Code Below: Good CodeCODE This piece of code is better. <br /> <br /> I just used self closing tags. <br /> and I didn't use a capital. <hr /> Make your Documents "well-formed"Form them right. CODE <p>here is an emphasized <em>paragraph.</p></em> Above: Bad Code Below: Good CodeCODE <p>here is an emphasized <em>paragraph.</em></p> Might take you a while to pick up on thise one. In the first example the <p> was closed then the <em>. However that's over-lapping and it isn't good. Always QuoteSome might have a problem with this thankfully I never have (writing the bad code in the example I found I had written it right without trying). CODE <td rowspan=3><br /> <a href=site goes here.net> Above: Bad Code Below: Good CodeCODE <td rowspan="3"><br /> <a href="site goes here.net"> Always quote attributes. DocTypeMost of us use CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> I recommend using: CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> This is the way to the future. Thanks That's basically the tutorial for coding XHTML. Great tutorial! It's very straight forward and easy to learn in minutes.
Comment/Reply (w/o sign-up)
Quatrux
May 9 2007, 04:21 PM
the only thing I don't understand is the center tag used in the Good Code examples, the </center>, but I don't see the start of it, and anyway, it is a bad idea to use center nowadays, so this is a new age html coding  but with some (some, I saw one?) stone age elements.  To say something funny, p tag isn't popular anymore or tables/tr/td/th  everyone likes to use div, even though I don't believe in this, due to sometimes I need to use <p> to avoid using extra break lines <br />
Comment/Reply (w/o sign-up)
SilverFox
May 9 2007, 04:49 PM
I personally don't use <p> either and I'll see if I left out the center...I know people like to use div but its not overly important to validating XHTML 1.0.
Comment/Reply (w/o sign-up)
Quatrux
Jul 12 2007, 04:59 PM
Is it me, or is it people who talk without any knowledge? AJAX technology isn't getting old and PHP isn't even something similar to AJAX, PHP is a scripting language which syntax is similar to C and it has a lot of features copied from other languages and usually is used for web programming, so if you know PHP with OOP then it is quite easy to learn some other languages.. and AJAX stands for Asynchronous JavaScript and XML, so that means that you can change or do anything what Javascript can do with a page without refreshing all of it in a browser, using XMLHttpRequest() with Javascript, you can connect to a server and send a request and get an answer, I mean send and receive data.. it was created to send XML data, but personally I send plain data, due to it is smaller in bytes and control the data with PHP on the server, but you can use any language or control method you like. And a guy said that he doesn't like CSS, but likes to use plain HTML, HTML isn't created for changing font colour, font size and tables aren't meant for creating your layout bars, it is a bad habit to not like CSS, due to the site look needs to be different only by changing CSS and leaving the same HTML, even though a lot of people have problems with IE, but you really can make it work on almost all browsers the same (usually) !!!
Comment/Reply (w/o sign-up)
SonicHabbo
Jul 12 2007, 09:26 AM
That Really Helped :PThanks It Really Helped
Comment/Reply (w/o sign-up)
mvs.en
May 11 2007, 02:59 PM
QUOTE(Chesso @ May 11 2007, 09:10 AM)  P.S.: Ajax is getting old and well out-dated, majority seem to be going PHP. Yeah, I have no personal experience with Ajax... But I am going to change as much as I can over to PHP. I haven't really coded any website at ALL in like two years now and I'm trying to get back into it. The last time I did... It was a small crappy website that was pretty much all HTML with a TINY bit of CSS. (I really hate CSS so I avoid using it as often as physically possible... Even if it's more efficient, I don't like how it's set up) Anyway As I was saying, just an hour or two ago I was reading up about PHP tutorials and such because I really need to learn more languages/whatever. I'll soon need to start actually coding my website though, because people are starting to demand it of me and I've been wanting to make a new website for years... My only problem has been that I can never find a theme for it that requires the attention of other people... I think I've found one though... But I'm starting to get way off topic, I apologize. <___<
Comment/Reply (w/o sign-up)
Chesso
May 11 2007, 12:10 PM
I just build everything for FireFox and it seems to generate, not good but usable in Internet Explorer 5/6 and presumably above. I have no idea why anyone would replace <br /> or <br> with a <div> tag unless they are looking for specific control over the spacing between line breaks (unless the br tag can be styled to get the same effect?). P.S.: Ajax is getting old and well out-dated, majority seem to be going PHP.
Comment/Reply (w/o sign-up)
kgd2006
May 11 2007, 11:13 AM
Thats pretty good info for the rookie web developers out there. You covered the basis on xhtml and efficient coding techniques. I sometimes find myself messing up my nests of tags haha, But I eventually clean it up in the end. XHTML is definitely the future and will replace html itself soon. Now with the transfer of the new technology which is ajax, more people will try to learn xml which will make them eventually use xhtml style syntax. I just wish I could make more projects for myself so that I could perfect my skills.
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : coding, html, properly, age
- 4 Html Based Website Tips
(4)
A Tutorial For Html Color Codes
(7) HTML Coloring System - RGB Values RGB which stands for Red, Green, Blue. Each can have a value from
0 (none of that color) to 255 (fully that color). The format for RGB is - rgb(RED, GREEN, BLUE),
just like the name implies. Below is an example of RGB in use. Red, Green, and Blue Values:
bgcolor="rgb(255,255,255)" White bgcolor="rgb(255,0,0)" Red bgcolor="rgb(0,255,0)" Green
bgcolor="rgb(0,0,255)" Blue HTML Color Code - Breaking the Code The following table shows how
letters are incorporated into the hexadecimal essentially extending the numbers system to 16 values....
Integrating Html And Css
(9) QUOTE(the_aggie10 @ Trap17.com) Ok. Well i am writing this as a series of tutorials i will be
doing on this subject, so enjoy. I hope this helps. Introduction
to HTML and CSS HTML and CSS are to work together. HTML is what puts the characters
on the page, while CSS is what makes everything look outreageous! For instance, I would use HTML if
i wanted to put "Trap17 is the poop!" onto my page, although if i wanted to make it look nice like
this by adding a font, and maybe some color, then I would use CSS. Learn the ....
{} Changing Font Color / Size {}
Basic HTML for beginners (14) Changing the Size of your Font: - So you've got basic text on your website but its JUST
not what you want. Why not change the size of your font. It can both attract and reject viewers so
becareful how you use it. This tutorial will show you how to do that in very easy, basic steps!
Getting Started.. - Changing the size of your font is quite easy. It requires TWO tags. These two
tags require the Brackets and ending brackets (tags) . If you do not put the ending tag, the font
size will effect your entire website, changing it to that font size. Below is wha....
{} Html'ing & Basic Codes {}
Basic coding HTML for beginners! (0) ** I was looking through the tutorials page and I saw one tutorial on beginning HTML, I thought I
would expand a little on it and show ya some basic codes you can use for your website if your
beginning HTML! ** Beginning HTML HTML isnt all that hard. Once you get the hang of it, its
quite a breeze, but sense your starting out new and would like some basic help on how to do simple
things regarding HTML heres a little help for you! First off, lets start out with what HTML means
and what you need to write it. * HTML - H ypertext M arkup L anguage which is a....
Html Meta Tags Tutorial
-What it is/does; how to utilize it- (21) So, you've got your beginning page started, your homepage is defined, neat, and it looks like
everyone will love it - STOP. Do you really think your site will be even accidently view by anyone,
even if you do have a bought domain?! Don't kid yourself; the fact of the matter is, you're
just one infantesimle speck in the universe of much greater websites than yours. Don't worry,
though - I got your back. Here, I'm gonna explain what meta tags are, and what they're used
for. I'm also going to show how to utilize them for your site, to increa....
Starting Your Website With Html
To build a website, you need to know HOW (7) I was reading through the tutorials, and it seems throughout the tutorials, no one has ever really
taught how to build a beginner's page using HTML. Not that it's anyone's fault, but
if someone is unsure of how to begin and end a page with HTML, then they will not be able to make a
page. So, I figured I'd lend a hand... -------------------------------------------- To begin
your first webpage using HTML, you will need these tags* (in this order): CODE YOUR TITLE
FOR YOUR PAGE THIS IS WHERE YOUR MAIN TEXT GOES To explain: The ....
Upgrading Your Site!
Move from HTML 4.01 to XHTML 1.0 (0) I planned to post 3 different parts because of the length, but so there's no confusion, I'll
just make one big tutorial all together /cool.gif" style="vertical-align:middle" emoid="B)"
border="0" alt="cool.gif" /> . ====================================== (A note to the moderators:
Alright, I've got this down now, so please delete all of my other posts besides this one, and
any posting credits as well; thanks!) ====================================== Now the tutorial:
Concerning those in the webmaster biz... If you are an aspiring experienced webmaster, the....
Creating Tooltips
DHTML, HTML, CSS, Javascript... (7) Here is a little tutorial to make those small yellow-background boxes (tootltips) that pop-up for
some links that describe them when you hover the mouse over them, it uses DHTML, CSS, HTML, and
Javascript, so it gives us a much more wide range than my previous tutorials that just where on
HTML. OK, so here we go... Put this right under CODE var offsetxpoint=-60 //Customize x
offset of tooltip var offsetypoint=20 //Customize y offset of tooltip var ie=document.all var
ns6=document.getElementById && !document.all var enabletip=false if (ie||ns6) var tipobj=doc....
Three Html/ Css/ Javascript Tutorials
(6) Here are some tutorials that always get great results when I post them. Lesson 1 HTML means Hyper
Text Markup Language. HTML is a very common language used for many websites, is the base for more
complicated and powerful langauges like php, HTML can seem hard, but you will find it is one of the
easiest langauges one can learn. The core of HTML is the tag, a tage is just a set of two
arrows-like brackets created by hitting Shift and the comma key, or Shift and the period key. They
look like this... HTML HTML > Tags start a change in the way a webpage ....
Uploading A Html Format Page
(0)
Looking for coding, html, properly, age
|
See Also,
*SIMILAR VIDEOS*
Searching Video's for coding, html, properly, age
|
advertisement
|
|