Though cognition of HTML or CSS is non essential to writing a blog, it is ever overnice to accept some basic persuasion of these languages to brand your spider web log posts stand-out - afterwards all, readers accept such curt attending spans in addition to we, every bit bloggers, desperately desire them to read our content.
We volition portion a dyad of really uncomplicated HTML styling tricks that may brand your spider web log stories to a greater extent than appealing in addition to attractive to readers:
Highlight Important Text Inside HTML Boxes
This is a technique usually used inwards newspapers - enclose the text within a box alongside borders in addition to twine the even out content roughly that box. First a alive instance in addition to thus the actual solution.
-- Begin Example --
This is an of import text. Please practise non skip reading this.
Ut eget ligula sit down amet ante aliquet nonummy. Sed dignissim tempor nisi. Curabitur laoreet consectetuer nibh. Ut sollicitudin vestibulum mauris.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse ultricies, leo ut porta rhoncus, magna eros adipiscing enim, ac suscipit mi diam vitae sem.
-- End Example --
The highlighted text is floating on the left - you lot tin attain the number yesteryear enclosing whatever text within the next div tag.
<div style="width:200px;height:100px;float: right;border-top: 1px corporation #000; border-bottom: 2px corporation #000; padding: 5px;">Sample Text Goes Here.</div>
Replace float:right alongside float:left to motion the box on the left side of the screen.
The Right agency to Quote H5N1 Person
Enclose the quoted passage within the <blockquote> tag. You may besides desire to add together the left in addition to correct double quotation signs (“ - “ ” - ”)
Never move Ampersands or Quotes inwards Titles
While there's zilch incorrect alongside using Ampersand signs (&) or double-quotes(") inwards your spider web log titles, inwards some cases they may interruption your social bookmarking URLs similar "Post to del.icio.us", etc. You should move HTML particular characters similar
& for & [ampersand]
" for " [double quote]
' for ' [single quote]
Bullets in addition to Lists are boring, assay something different
HTML has tons of pointers in addition to bullet styles that tin last used every bit substitute for bullets which to a greater extent than oftentimes than non expect dull. Here are some examples:
» alongside » | º alongside º | · alongside ·
Wrap Text roughly Images
Images are mayhap the easiest agency to watch the attending of your spider web log readers. Take a measuring farther in addition to blend your pictures roughly text yesteryear adding the next agency attribute to your img tag.
For correct alignment - <img style="margin: 0 0 2px 5px; float: right;" src="file_name_here" />
For left alignment - <img style="margin: 0 5px 2px 0; float: left;" src="file_name_here" />
Side Note: While these styles tin last embedded within a CSS stylesheet which makes code maintainence much simple, the exclusively drawback is that the formatting is non retained inwards RSS feed readers. That's where inline styles tin help.
Points to remember
» Use potent instead of b tag for making the text bold.
» The tag <hr /> add together a horizontal line
» Browsers ignore white spaces inwards HTML code. Use to hard-code spaces or enclose the text within <pre> tag.
No comments:
Post a Comment