alt="Basic HTML for Bloggers" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2014/04/html-codes-500x266_c.jpg" />
style="line-height: 1.5em;">Ten years ago, you had to know some web coding to protect yourself, but now there are so many editors and plugins available that even knowing the basics of HTML is no longer required to href="http://www.webhostingsecretrevealed.net/blogging-with-whsr/">run a blog.
class="border aligncenter wp-image-9449 size-full" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2014/04/html-codes.jpg" alt="html codes" width="750" height="400" srcset="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2014/04/html-codes.jpg 750w, http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2014/04/html-codes-300x160.jpg 300w" sizes="(max-width: 750px) 100vw, 750px" />
The problem with this is that if you don’t know a few basics, you can easily get into real trouble in your blog and have to hire a pricey developer to fix what may be a minor problem. Not only that, but creating changes to your blog such as adding a custom text widget requires a little knowledge. And if you are experiencing content layout doesn’t look right, HTML knowledge can get you back on track.
Here are some very basic HTML pointers for bloggers.
Word of Warning Before Writing HTML
style="line-height: 1.5em;">I want you to get comfortable using these tags, but you should always remember that if you leave out a portion of the tag, you can cause serious problems.
style="line-height: 1.5em;">Each tag has an end and a beginning, and leaving one of those out tells the computer that the tag is still open…and all the following code will be included in that tag. In addition, please type it out. If you copy and paste what I’ve written, you may get problems when the site interprets your code.
Links: The <a> tag
style="line-height: 1.5em;">One of the most important things to know is how to make links. The latest update of WordPress is experiencing some issues with some “no follow” plugins, so while you are waiting for a compliant plugin, you’ll need to know how to set up a nofollow link for your sponsored and product review posts.
style="line-height: 1.5em;">The tag looks like this:
<a href="http://www.websiteyouarelinking.com/" target="_blank" rel="nofollow">Website Name</a>
style="line-height: 1.5em;">In the “a” is the tag, “href” tells the browser where to take the visitor once she clicks the link. The target “_blank” tells the browser to open that link in a new tab – very important so that visitors don’t leave your website completely. Next, we have the all-important “nofollow” link that you need to ensure you don’t get penalized by Google for compensated posts. (If you are writing a post that is not compensated, you can leave out ‘rel=”nofollow”’ to give the link a boost on Google.) Next comes the title – make it accurate and SEO-friendly. Finally, “</a>” closes this tag.
style="line-height: 1.5em;">Images: The <img> Tag
style="line-height: 1.5em;">Sometimes you’ll want to create text widgets that includs images or linked images. This is the code:
style="line-height: 1.5em;">Pulling in a single image:
<img alt="Gluten Free Brownies" src="http://mom-blog.com/wp-content/uploads/2014/04/2014016_brownies.jpg" width="490" height="293" />
style="line-height: 1.5em;">Notice that this is a SINGLE tag, but it ends with “ />” to close the tag. In this tag, you’ll see “alt” tag. This is what you fill out after you load your image and is necessary for visitors who are visually impaired. (Make sure you use it to denote what the photo is, and not what you want your SEO to be.) “Src” is the link to where your image is actually located. “Width” and “height” are just that – the size of your image in pixels. This is optional, and should match your actual image size, or else the image will appear warped.
style="line-height: 1.5em;">Here’s how to set up an image with a link:
<a href="http://www.websiteyouarelinking.com/" target="_blank" rel="nofollow"><img alt="Gluten Free Brownies" src="http://mom-blog.com/wp-content/uploads/2014/04/2014016_brownies.jpg" width="490" height="293" /></a>
style="line-height: 1.5em;">As you can see, you simply replace the text from our <a> tag example (“Website Name”) with an image link and viola!
style="line-height: 1.5em;">The Paragraph Tag: <p></p>
id="attachment_9421" style="width: 310px" class="wp-caption alignright">
Aucun commentaire:
Enregistrer un commentaire