Is <br/> allowed code?
-
I am trying to remove any javascript and am doing it in “Code” view. I notice a lot of <br/> and am wondering if that is approved code?
I have been deleting them but I’ve come across this code so many times, I want to know if this is approved code or not before I invest time in removing it.
I have a problem with pages being slow to load and slow to save and that’s why I am removing any code or script that seems to be causing this problem.
If <br/> is perfectly fine, I don’t want to spend hours removing it as I see it everywhere.
Thanks for any replies.
-
“break”
<br />is no problem
but do note that the space between the “r” and the “/” should be there. It’s a self closing tag. -
I see <br> in the part below so this is probably allowed code. What does it mean? Page break?
I have been copying and pasting text from other webpages onto my blog. If I insert the text using the plain text thing (widget? don’t know the technical name) that is on top in the ‘toolbox’ will it remove any troublesome and illegal script from appearing?
Will using the eraser remove illegal script?
My pages are so S L O W to load and that’s why I want to remove any illegal script I may have unwittingly inserted.
I don’t insert any javascript knowingly by the way.
I’ve also noticed while cleaning up and removing what possibly might be the troublesome code/script that I see <br/>’s everywhere but no <br>’s. Why is that? (Note I haven’t inserted these in myself – they appeared when I copied and pasted). Is that the problem? Could that be slowing the loading? The fact that there are no <br>’s to match the <br/>’s?
Will using the clean-up code icon that appears in the bar up top help clean this up?
I am not sure how this clean-up icon works btw. I don’t want to muck up my blog by using it when I shouldn’t.
If the <br/>’s are the thing causing problems, is there a quick way of removing them all at once because there are so many of them in my blog page that is slow to upload.
Will using the Eraser help to remove them?
Note <br/> appears everywhere in my blog page (at the end of the line), but <br> doesn’t appear anywhere.
-
This will help you understand the use of the break code(s) – using the break element properly
After you have read it you will know whether or not it’s properly used in the document in question and you can adjust as required.
-
I crossposted with you, timethief. So
is OK? Just leave it? Even if there is no <br> preceding it, I presume?
If that’s the case, I’ll have to hunt for the code that IS causing me problems.
I thought I removed everything that was potentially problematic except the
thing (too many to remove I gave up and came here to check if it’s illegal or not), but there must be something my eyes must have missed because my blog pages are still slow to load and work on and I get that busy script message even after removing some code. -
Is this a wordpress.com blog, bobtailcat?
If so, no javascript or other scripting, other than HTML, will be allowed. -
@membracid
Good catch (wp.com blog?) and the bit about javascript too. I thought the software stripped javascript out except for left over bits and pieces._______________________________________________________
My instinct says this code in the posts has nothing to do with the real problem. I indicated this in the other thread also. The slow page loading time probably means that the javascript wordpress.com uses on our blogs is not playing well with whatever your connection is between your computer and wordpress. -
Yep, it’s a wordpress.com blog. I know javascript isn’t allowed, and I’ve got another question posted on the forum relating to that.
https://en.forums.wordpress.com/topic.php?id=17277&page&replies=10
I am trying to remove any inadvertent javascript that may have gotten in without my knowledge, that’s how the br code question came up.
It seems as if the br code is perfectly acceptable and that is not the problem code/script causing problems.
-
I knew the br code wasn’t the problem but I wanted to post the reference for your benefit and the benefit of others who will read this in the future. Thanks for updating this. :)
- The topic ‘Is <br/> allowed code?’ is closed to new replies.