Code for "<"

This is a discussion on "Code for "<"" within the Web Page Design section. This forum, and the thread "Code for "<" are both part of the Design Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #21  
Old Oct 1st, 2003, 17:07
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
One word - Validation

Once you learn to code by hand (in Windows Notepad if necessary) and not rely solely on WYSIWYG drag-and-drop web-building applications, you'll realise the depth of skill in professional web development and the reasons why your suggested fix is inappropriate.

If your happy just pottering around creating amateur websites then your solution might be considered workable.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #22  
Old Oct 1st, 2003, 17:29
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
One word- Notepad....

By the way, most of my coding is hand done, no offense, but I am not stupid. haha. If you want to know why my websites usually look really cartoony, mainly cuase I am a NewB to software and stuff. But I know my coding pretty well, I don't know all of it by anymeans. Thats why I am here ASKING. Its a beautiful thing really. But yeah I agree, notepad is the way to go, and just for your information D3mon, Blockquotes work on all browsers!! so do <div> tags, and if you can't see them then you've done something to your browser, I have checked Opera, Netscape, Mozilla, IE, and Navigator, all of these work correctly. Netscape is 10-15 pixels off, but usually the whole thing is.... thats another story for another time. Cheers!

But one more time, let me reiterte this point. I NEVER said it was the BEST way to go. I said it WAS a way to make it APPEAR normal. No offense, but either none of yall read anything, or you British people are weird. Let me explain this point of view by an American. If I say my way works, and it is a way of doing this, than you say, NO its not the best way!!!! well.. heres what I analyze of this...
1. Your a weirdo and dont understand American English, cause in American it means it works, but there are other ways.
2. Your a dumb person who just can't get anything anyways.
3. You dont read posts, except for the previous one, which can cause problems.

So.. what are ya???

P.S.- IM a 2!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #23  
Old Oct 1st, 2003, 19:57
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Oh yeah OK. I'm a dumb British wierdo. But it sounds like you've got problems of your own if you can't take advice.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #24  
Old Oct 1st, 2003, 23:02
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
No, I can take advice. I will more than likely do it your way from now on. Thats the beauty of it, we are both right, but you are more right than I am.. Do you understand?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #25  
Old Oct 2nd, 2003, 07:59
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
<sigh>Here we go again!</sigh>

u2o
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #26  
Old Oct 2nd, 2003, 13:39
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Stepping back... A final word if that is ever possible?

When you are coding HTML, if you ever use a < or a > character you should always use the correct HTML code, this also goes for any non alphanumeric characters. Example:

< this will work on it's own, but as soon as you do a > the whole sentence will be processed and rendered as... nothing. i.e.,
Code: Select all
<blockquote>Can you <not see> me</blockquote>
will render
Code: Select all
Can you me
to get the result initially wanted, you would need to do:
Code: Select all
<blockquote>Can you &lt;not see&gt; me</blockquote>
will render:
Code: Select all
Can you <not see> me
Also some browsers may not display your document the way it was intended. Possibly not at all. Not all browsers are as lenient as IE.

What could happen is: The browser processes the page, it intercepts a < and now starts looking for a terminating >, but one don't exist! So, it carry on looking but hits the end of the document with the final </body> tag. Your page shows everything up to th < character - There has been an error in the HTML code.

This is why we should use HTML codes.

In a nutshell, Use HTML codes, they don't get processed. - It's your webpage, they are your audience, it's your risk and your reputation.

u2o
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #27  
Old Oct 2nd, 2003, 16:56
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I'm slightly confused u2orange...

What was the point of using <blockquote> in your example?
As far as I can see all it does is indent code? Does it actually do anything else? It certainly doesn't allow you to view < in the browser... The only way to do that is, as we have already established to use the html code thingy :razz:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #28  
Old Oct 2nd, 2003, 18:23
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
The reason he used Blockquote is cause that is what I have always used instead of HTML code symbols (whatever they are called, I dont know, haha). Try a blockquote and put a < in it. It will show up. But what U2Orange pointed out, that if you close the tag in the quotes F.E.- <hello world how are you> then nothing will show up at all, but if you dont close it then you will see this in your browser. - <hello world how are you . Nicely pointed out U2, makes a lot of sense and I actually learned something. Thanks for the full explanation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #29  
Old Oct 2nd, 2003, 20:46
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, but if you put a < in then you don't NEED blockquotes at all... it'll do it by itself...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #30  
Old Oct 2nd, 2003, 21:02
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
<blockquote> had nothing to do with it, it was only used in the example, but as I can see, it may have caused confusion. I was just trying to point out that you should not use < as a character, and should always use &amplt;

Sorry for the confusion

Glad you learned something kulegamr

u2o
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #31  
Old Oct 3rd, 2003, 15:05
Junior Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by kulegamr

The reason he used Blockquote is cause that is what I have always used instead of HTML code symbols (whatever they are called, I dont know, haha). Try a blockquote and put a < in it. It will show up. But what U2Orange pointed out, that if you close the tag in the quotes F.E.- <hello world how are you> then nothing will show up at all, but if you dont close it then you will see this in your browser. - <hello world how are you . Nicely pointed out U2, makes a lot of sense and I actually learned something. Thanks for the full explanation.
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

Ok Kulegamr, you say you're here to learn stuff, so listen. I'll do this one more time. Doing blockquote and pre tags is doing NOTHING in regards to the format of the less-than and greater-than signs. In your example page that you linked to, if you remove the blockquote and pre tags, then it'll display exactly the same text (obviously in a different format) - but it'll still show the < and > the same. The blockquote and pre tags have NOTHING to do with how these tags are displayed.

However there are occasions when just doing < and > signs isn't sufficient. This occurs when you have text between a less-than and more-than sign. <like this> <and like> <this> <also <like this>. If you paste that in to your example page - in a blockquote or pre tag if you so choose - you'll notice that it doesn't display. To get it to display, you need to replace these tags with & lt; and & gt;

Infact, note that in the source of this page, all of the < and > have been converted. If you are writing server-side code that deals with user input (like on this site), on most occasions you should ensure the text is encoded for the reasons stated above.

Phew. Are we all in agreement now?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #32  
Old Oct 3rd, 2003, 16:28
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
You've actually put it quite nicely, but whether or not Kulegamr will understand is another matter entirely.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #33  
Old Oct 3rd, 2003, 19:27
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
OHHHHHHHH..... AHHHHHHH... I get it now.. He he. Wow, I never knew that it would do that before. That is completely new to me. So the tags I used dont do anything, I just thought they did... Wow, how dumb am I? <yall can answer if you want too>

So, blockquote and pre, dont do anything outside of change the layout/font of the text?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #34  
Old Oct 4th, 2003, 07:53
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Precisely! Re-read the thread and you'll see why we were so confused with you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
code

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
code help please lcsaeteurn JavaScript Forum 1 Apr 30th, 2008 02:06
code behind code doesnt work skat ASP.NET Forum 4 Feb 18th, 2008 10:05
live search code and styleswitcher code hebel JavaScript Forum 0 May 12th, 2007 06:16
Can somebody give me the code to hide the source code? renren JavaScript Forum 7 Mar 7th, 2006 12:27


All times are GMT. The time now is 15:09.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42