Get Support Now    |     Purchase Support Hours    |     Contact Us
  Search
10 Simple Things that make any DNN site better

Get our PDF tutorial "10 Things" we think will make lots of DNN sites better. Its a great list that includes "how we do it" for all 10!

Email:

Get DotNetNuke Support
Guaranteed DNN help

Guaranteed? You bet! If you're not happy with our work give Don Bishop a call at 717.718.1208 x101. If we can't remedy the situation we'll refund your money.  It’s that simple. Guaranteed!

Need Support Right Now?
If you want to contact us immediately, give us a call.

717.718.1208

HTML Guide for Beginner DNN Users

Posted By: Teresa Mills on 05/16/2011

Have you ever gotten so frustrated with trying to style content in DNN that you just completely started from scratch… more than once?  Perhaps you are trying to create a bulleted list and the paragraph below the bulleted list just will not get itself out of being indented.  Or you are trying to unbold something by clicking the ‘B’ tool and it just will not unbold itself. 

Often times, a simple HTML fix behind the scenes can save you a lot of styling headaches.  But when you look at the source, you may not know exactly what to fix.

Let me offer you some very basic HTML tips.  You can find a little cheat sheet at the end of this blog, that you can print out and keep in your working area.

Common HTML Issues in DNN:

The Paragraph and Div tags:  <p> and <div>

Each section of content should either be surrounded by a <p> paragraph tag </p> or a <div> div tag </div>.  Both of the tags must have an ending tag.  So if you have two paragraphs of text that will not separate, when looking in the source, make sure they are separately surrounded by either a paragraph or a div tag.

The Line Break: <br />

Most HTML tags have a beginning tag and an end tag.  One common exception to that is the line break tag <br /> .  The break tag starts and ends itself.  This tag adds 1 line break to your content.

The Bulleted List:  Unordered <ul> and Ordered (or numbered) <ol>

The bulleted list issue is a common one.  You either want to bullet an item or un-bullet and item and DNN just will not let you.  A regular bulleted list starts with a beginning <ul> tag (or unordered list) and ends with a closed </ul> tag.  The actual items should be surround by a beginning <li> tag (or list item) and an ending </li> tag.  So if you view the source of your content and you see a paragraph of text within the <ul> </ul> tags and you don’t want it indented, you can just simply cut and paste it outside of those tags and surround it with a beginning and ending paragraph tag:  <p> paragraph here </p>

Bolding or the Strong Tag: <strong>

The other common issue is bolding text.  Often times when you paste from word, you will get carried-over HTML formatting that you don’t want (sometimes even if you’ve used the Paste from Word feature in DNN).  One of the most common ones is the <strong> tag.  The <strong> tag takes the place of the deprecated bold <b> tag.  The <strong> tag should be opened and closed </strong>, so if you see a beginning <strong> tag with no properly placed end tag, all you have to do is just type the ending strong tag in your source like so:  </strong>

Good HTML vs. Bad HTML

If you are pasting directly from Word, and you see a TON of HTML when you view the source code, then you are doing it wrong.  Refer to my previous blog which gives you instructions on how to paste content in correctly:  DNN and Pasting from Word

This blog will actually show you visual examples of good code vs. bad code.

Last but not least:  view and print this handy HTML Cheat Sheet on the next page…

Spiffy Web Team’s HTML Cheat Sheet

Tag

What it does

Text Tags

 

 

<hl></hl>

Creates the largest headline

<h6></h6>

Creates the smallest headline

<strong></strong>

Creates bold text

<em></em>

Creates italic text

 

 

Formatting

 

 

<p></p>

Creates a new paragraph

<p align="left">

Aligns a paragraph to the left (default), right, or center.

<br />

Inserts a line break

<ol></ol>

Creates a numbered list

1.      Item 1

2.      Item 2

3.      Item 3

<ul></ul>

Creates a bulleted list

·         Item 1

·         Item 2

·         Item3

<li></li>

Surrounds list items, and adds a number or symbol depending upon the type of list selected

<div></div>

A generic tag used to format large blocks of HTML

<hr />

Inserts a horizontal rule

 

&#160; or &nbsp;

Inserts a space

 

 

Links

 

 

<a href="http://www.website.com"></a>

Creates a hyperlink

<a href="mailto:name@email.com"></a>

Creates an email link

<img src="filename.jpg" />

Adds an image

 

 
Comments
Your Name:
Your eMail Address:
Your Comment:
CAPTCHA image
Enter the code shown above in the box below

Contact Spiffy For DNN Support!

If you need DotNetNuke support contact us to talk about your site. No obligation!  Click here to get DNN support now. 

Spiffy Web Team
4 Kent Rd Ste. 200
York, PA 17402
Phone: 717.718.1208
Toll Free: 800.932.3380
Fax: 717.600.2341

Follow Spiffy!

Follow us on Twitter, Facebook and YouTube to get updates when we post great new blog entries and new videos that can help you learn about DotNetNuke! We also throw in a few great downloads and specials offers ever now and then too, there's no downside!

            

Copyright 2009-2011 Affinigent, Inc.
Site Map    |     Terms of Service    |     Link to Us    |     Homepage    |     Mobile Site    |     Login
Follow Us on Facebook, Twitter and You Tube