From the course: How to Boost Your Productivity with AI Tools
Using AI to convert text to HTML markup
From the course: How to Boost Your Productivity with AI Tools
Using AI to convert text to HTML markup
Converting plain text into text with HTML markup is not a difficult task. It's just a boring task. And wouldn't it be far better if it could be done without any errors in a matter of seconds so that no human brains need to be damaged by the experience? Well, that's what this prompt is for. It's super simple. Just paste in some text and you'll get a marked up version in return. After it's done that, it'll even give you an option to improve the text to make it perform better for a particular SEO keyword. How about that very useful prompt? So come on, let's give it a go. I will paste in the prompt and then read it out to you. Right. "You are an expert HTML coder with a thorough understanding of formatting text for SEO. I want you to format this {text} with <h1>, <h2>, and paragraph tags to help it perform well with search engines. I then want you to ask me if I'd like to improve the text and then wait for my response. If I say 'yes,' I want you to ask me for a keyword I would like to use to optimize the text. Then stop and wait for my response. Once I give you my keyword, I want you to rewrite the text with HTML markup to improve SEO for the keyword without changing the tone of the text or too much of the content. Do not add any information that wasn't previously included and do not shorten the length of the text." Right. We just need to get some text to paste in here. Now, what I'm going to do is I'm going to paste in some text from a web page on my own site, and this web page is about some AI workshops that I run. So let me paste this in and see what it does. So it is immediately, as we can see here, converting this to properly HTML marked up text. As you can see, it's adding tags, so it's adding h1, h2, h3 tags here as well. Paragraph tags. This all looks absolutely perfect. Look, h1 for here, this of main headline, h2 for a subhead, then we go further down. We've got some points here. We've got h2 and h3 tags here. This is great. Okay. Right. "Now, would you like to improve the text further" is what it's asking us at the bottom of the screen here. So we're going to say, "yes." I'm just going to put in Yes. The keyword I want to use is, and for this it might be, let's say, practical AI for business, because that's kind of what the workshop's about. Let's see what it does here. Great. So now it has taken the text, it's hardly changed at all, but it has added in this keyword throughout the text. Now, it's something that you would want to check. You'd want to make sure that it's adding enough of the keywords in the right places so that it's going to really help with SEOs. You're probably going to want your keyword added to particular h1, h2 tags and you might need to go back and do that yourself. But at the moment it's certainly taken text and it is converted it into some really, really nice marked up text ready to be put into some kind of webpage. Would I trust the AI to do this job better than a human? Of course, I would. ChatGPT speaks code as a first language. It's like asking if I trust an Italian chef to make a pizza. Absolutely, far more than I trust a masseuse. Although I'm pretty sure they do an amazing job on the door.