Thursday, 4 July 2024

Horrible HTML

 Google Blogger is quite good to write posts in, but occasionally the editor seems to lose the plot and I can't get it to format the post how I want it to.

In these cases I can go and edit the HTML code in the post.  I am by no means an expert in HTML, but I do know my way around simple stuff.

The first view of the HTML code is horrendous, but there is a button to "format html" which makes it readable.

It does seem to have a habit of leaving empty <div>s around which can be deleted.  Also unwanted <div>s changing the line spacing which can be replaced by a simple <p>

But, if the compose view looks OK I generally don't touch the HTML.  If it looks wrong then it's usually only a few minutes to correct it - after a bit of practice. 

There does not seem to be a button to place a horizontal line, so the only way is to add a <hr> in HTML view.

But the editor is still better than the Wordpress one, which seems to abhor a <br clear="all"> statement and simply deletes it. 

Curiously editing Blogger is different in Safari and Firefox!  I thought I was doing a lot of typos in Safari but when I looked more closely it seems to be some sort of problem with the auto-correct which adds in the suggestion as well as my typing.  So I just get jibbereish.  Also <shift> and <return> generates a line break, or <br> in Firefox but not in Safari.  Weird.

Microsoft Expression Web 4 was much better to use, or even Frontpage.  But they won't run on a MacBook.

No comments:

Post a Comment