Just a note

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

This is not really a question or a problem of any kind. Just something interesting I noticed a while back that I decided to share...

Well, I was creating a costume CMS and I had the user who posted placed inside brackets that are used in HTML "< ... >" with no space between the brackets and the text, so mainly, it looked like this...
Quote:
<bogey>

Than, when I checked the page, I didn't see <bogey>. Instead, I saw a validation error. I checked it out and it was saying "Element BOGEY undefined". I generally didn't think of it parsing whatever inside the <...> was as an HTML element until than.

Just thought to place this here :D
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

XML doctype?
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

No XML doctype... here is an example I did just now to relive it...
HTML Code: [ Select ]
<html>
<head>
<title>Test</title>
</head>
<body>
<bogey>
</body>
</html>
  1. <html>
  2. <head>
  3. <title>Test</title>
  4. </head>
  5. <body>
  6. <bogey>
  7. </body>
  8. </html>
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6230
  • Loc: South-Africa

Post 3+ Months Ago

is that "<bogey>" tag inside anything else ... like inside a <p> tag or something?
  • Fabinator
  • Proficient
  • Proficient
  • Fabinator
  • Posts: 467

Post 3+ Months Ago

If you just want to paste the text <bogey> you should use: &lt;bogey&gt;
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Posts: 1417
  • Loc: 55° N, 3° W

Post 3+ Months Ago

Useless info:

If you put

bogey {color: red; font-weight: bold} in your css, the <bogey> tag would be styled in FF.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

righteous_trespasser wrote:
is that "<bogey>" tag inside anything else ... like inside a <p> tag or something?

No... I got some testing to do :)
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

Zwirko wrote:
Useless info:

If you put

bogey {color: red; font-weight: bold} in your css, the <bogey> tag would be styled in FF.


Hmm I wonder if it styles in anything else...
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

:lol: I was thinking the same thing neksus...

Instead of using divs using <bogey1>...</bogey1> :lol: haha just kidding, I'm not going to go that far if that works but that's certainly not what many web developers do if it works...
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

Search engines produce better results with regular tags, and look favorably on correctly formatted ones (h1, h3, em, b).
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

I know... I was just stating that it might be possible to do that although it is frowned upon :)

I'm not actually going to use it...
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

I wouldn't use it if it only worked in FF, otherwise I'd probably use it here and there lol

Post Information

  • Total Posts in this topic: 12 posts
  • Users browsing this forum: No registered users and 33 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.