generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: SMALL Break in HTML?

Previous Thread :: Next Thread 
Bob123456789103570 is not online. Bob123456789103570
Joined: 23 Dec 2008
Total Posts: 9531
14 Apr 2012 09:15 PM
I seem to have forgotten how to create a small break in HTML. All I can remember, believe it or not, is [p] -- far too large of a gap between two text areas. How can I create a SMALL gap between two lines?
Report Abuse
Bob123456789103570 is not online. Bob123456789103570
Joined: 23 Dec 2008
Total Posts: 9531
14 Apr 2012 09:18 PM
Oh, right. I can change the width of a line break.
Report Abuse
Bob123456789103570 is not online. Bob123456789103570
Joined: 23 Dec 2008
Total Posts: 9531
14 Apr 2012 09:21 PM
I keep fixing my own problems. [br] followed by [/br] fixed it.
Report Abuse
pokelover980 is not online. pokelover980
Joined: 12 Jun 2009
Total Posts: 4141
14 Apr 2012 09:29 PM
Better yet, remove the opening br tag and instead format it as [br /] so you follow the HTML standards more appropriately.

Dear god I got filtered because I tried to put a conditional break character in to use the > and < signs normally. Dammit Roblox, I know people use conditional breaks to get passed the filter and post bad words, but it's the only way we can post HTML normally because you're too lazy to fix the problem with posting > and < because you don't know how to replace them with HTML entities.
Report Abuse
coolbob44 is not online. coolbob44
Joined: 26 Nov 2009
Total Posts: 1649
14 Apr 2012 09:33 PM
<
Report Abuse
WildSurvival is not online. WildSurvival
Joined: 02 Mar 2009
Total Posts: 511
14 Apr 2012 09:41 PM
It's htmlspecialchars() right?
Report Abuse
Bubby4j is not online. Bubby4j
Joined: 25 Dec 2008
Total Posts: 1831
14 Apr 2012 09:53 PM
In HTML5 you don't need a closing / for br.
Report Abuse
pokelover980 is not online. pokelover980
Joined: 12 Jun 2009
Total Posts: 4141
14 Apr 2012 09:53 PM
It would be in PHP, but Roblox uses ASP.NET. Luckily, ASP.NET has the HtmlEncode method to do that, so I have no idea why Roblox doesn't just use it :V
Report Abuse
pokelover980 is not online. pokelover980
Joined: 12 Jun 2009
Total Posts: 4141
14 Apr 2012 09:56 PM
"In HTML5 you don't need a closing / for br."

You don't *need* it in any version of HTML, but it IS in the standard that you are supposed to follow it. In XHTML, your page is considered invalid if it doesn't have it, but sadly web browsers will still display it normally (you may call me insane for saying that's a sad thing, but it is. If a page is following XHTML standards, it should be forced to, and if it doesn't follow it, the browser should have all rights to break the web page all it wants because the coder was too lazy to follow the stricter standards of XHTML while choosing to use it).
Report Abuse
LPGhatguy is online. LPGhatguy
Forum Moderator
Joined: 27 Jun 2008
Total Posts: 4725
15 Apr 2012 03:32 AM
@Pokelover980
I was one of the people who followed the XHTML 1.0 Strict ruleset.
*sigh*
Report Abuse
miloguy is not online. miloguy
Joined: 19 Dec 2009
Total Posts: 7702
15 Apr 2012 03:53 AM
[br /]
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
15 Apr 2012 05:01 AM
I agree with Poke.

If you don't code your HTML right, it shouldn't work right. End of story.

Browsers should also nuke b, i, u, and center, it makes me sick to see them on pages, and I've seen arrogant people say they're gonna use them until the day they cannot be used any-more, blatantly ignoring standards.
Report Abuse
pokelover980 is not online. pokelover980
Joined: 12 Jun 2009
Total Posts: 4141
15 Apr 2012 11:13 AM
"Browsers should also nuke b, i, u, and center, it makes me sick to see them on pages, and I've seen arrogant people say they're gonna use them until the day they cannot be used any-more, blatantly ignoring standards."

The HTML4 standard actually still defined some of them for a reason. The strong and em tags were to be used in cases where something was meant to stand out or have emphasis, specifically for people with text-to-speech programs to read the page to them so that the program adds the needed emphasis or whatnot. On the other hand, the b and i tags are used for styling, but CSS is recommended as an alternative for that, and in HTML5 it is the standard that you use CSS for that.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
15 Apr 2012 04:10 PM
"You don't *need* it in any version of HTML, but it IS in the standard that you are supposed to follow it."

Nope.

"In XHTML, your page is considered invalid if it doesn't have it, but sadly web browsers will still display it normally (you may call me insane for saying that's a sad thing, but it is. If a page is following XHTML standards, it should be forced to, and if it doesn't follow it, the browser should have all rights to break the web page all it wants because the coder was too lazy to follow the stricter standards of XHTML while choosing to use it)."

I completely agree. Browsers shouldn't display invalid xHTML pages and should instead display an error. However, that's in xHTML. We're talking about HTML here.

"Browsers should also nuke b, i, u, and center, it makes me sick to see them on pages, and I've seen arrogant people say they're gonna use them until the day they cannot be used any-more, blatantly ignoring standards."

Actually, the b element "represents a span of text offset from its surrounding content without conveying any extra emphasis or importance, and for which the conventional typographic presentation is bold text; for example, keywords in a document abstract, or product names in a review". In HTML5, that is. It was redefined and does not anymore have a presentational purpose.

The i element was also redefined in HTML5. It now "represents a span of text offset from its surrounding content without conveying any extra emphasis or importance, and for which the conventional typographic presentation is italic text; for example, a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, or a ship name".

The u element was also redefined in HTML5 and now "represents a span of text offset from its surrounding content without conveying any extra emphasis or importance, and for which the conventional typographic presentation is underlining; for example, a span of text in Chinese that is a proper name (a Chinese proper name mark), or span of text that is known to be misspelled."

And finally, the center element does not exist in HTML5.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
15 Apr 2012 04:11 PM
"and instead format it as [br /] so you follow the HTML standards more appropriately"

We're talking about HTML here, not about xHTML.

In HTML4 and the previous versions of HTML, [br/] is _INCORRECT_.

In HTML5, both [br] and [br/] are accepted, but [br] is preferred.

Finally, in xHTML, only [br/] is correct.

[br][/br] is acceptable in versions of HTML before HTML5 and in xHTML, BUT IS NOT ACCEPTABLE IN HTML5.

Also, [br /] is acceptable whenever [br/] is acceptable. [br /] is used only because older browsers will not accept [br/]. You can also add more than one space if you want, but it'd just be redundant.


HTML (before HTML5) was based on SGML.

xHTML was based on XML.

"Tags are used to delimit the start and end of elements in the markup. Raw text, RCDATA, and normal elements have a start tag to indicate where they begin, and an end tag to indicate where they end. The start and end tags of certain normal elements can be omitted, as described later. Those that cannot be omitted must not be omitted. Void elements only have a start tag; end tags must not be specified for void elements. Foreign elements must either have a start tag and an end tag, or a start tag that is marked as self-closing, in which case they must not have an end tag." - The HTML5 Standard

"8.1.2.1 Start tags

Start tags must have the following format:

1. The first character of a start tag must be a U+003C LESS-THAN SIGN character (<).
2. The next few characters of a start tag must be the element's tag name.
3. If there are to be any attributes in the next step, there must first be one or more space characters.
4. Then, the start tag may have a number of attributes, the syntax for which is described below. Attributes must be separated from each other by one or more space characters.
5. After the attributes, or after the tag name if there are no attributes, there may be one or more space characters. (Some attributes are required to be followed by a space. See the attributes section below.)
6. Then, if the element is one of the void elements, or if the element is a foreign element, then there may be a single U+002F SOLIDUS character (/). This character has no effect on void elements, but on foreign elements it marks the start tag as self-closing.
7. Finally, start tags must be closed by a U+003E GREATER-THAN SIGN character (>).
" - The HTML5 Standard

"While the HTML syntax described in this specification bears a close resemblance to SGML and XML, it is a separate language with its own parsing rules.

Some earlier versions of HTML (in particular from HTML2 to HTML4) were based on SGML and used SGML parsing rules. However, few (if any) web browsers ever implemented true SGML parsing for HTML documents; the only user agents to strictly handle HTML as an SGML application have historically been validators. The resulting confusion — with validators claiming documents to have one representation while widely deployed Web browsers interoperably implemented a different representation — has wasted decades of productivity. This version of HTML thus returns to a non-SGML basis.

Authors interested in using SGML tools in their authoring pipeline are encouraged to use XML tools and the XML serialization of HTML." - The HTML5 Standard
Report Abuse
pokelover980 is not online. pokelover980
Joined: 12 Jun 2009
Total Posts: 4141
15 Apr 2012 06:05 PM
Too lazy to respond to your entire post right now, but:

"In HTML4 and the previous versions of HTML, [br/] is _INCORRECT_."

Indeed, but [br /] is not. Self-closing tags in HTML4 and earlier are valid so long as you put the space before the / and it is an element like br or img where it is allowed.
Report Abuse
miloguy is not online. miloguy
Joined: 19 Dec 2009
Total Posts: 7702
15 Apr 2012 08:47 PM
HTML: [br]
XML: [br /]
STUPID: [br][/br]



HTML is able to know a tag doesn't need to close because it's awesome like that. XHTML is just XML, and in XML you need to tell it that the tag doesn't have anything inside it.
Report Abuse
myrkos is not online. myrkos
Joined: 06 Sep 2010
Total Posts: 8072
15 Apr 2012 10:36 PM
OT:

You know what annoys me? This:

transition-timing-function:ease-out;
-moz-transition-timing-function:ease-out;
-webkit-transition-timing-function:ease-out;
-o-transition-timing-function:ease-out;

If almost all browsers support a "function" with _exactly_ the same syntax except for the stupid prefix, then there shouldn't be the prefix in the first place.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image