Advertisement
Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

Handling HTML Content in Drupal

If you aren't familiar with HTML, you're in luck: You don't need to know how to code in HTML to create links with Drupal. To see that you don't need to know HTML, consider the text in these two versions of the created Contact Me page node: one with HTML and one without.

  • With HTML code, the page text reads:

    The best way to reach us is via e-mail. You can send e-mail to us at
    <a href="mailto://lynn@drupalfordummies.com">lynn@drupalfordummies.com</a>.
    For business inquiries regarding our technical writing services, please
    contact our agency, Studio B, at <a href="mailto://info@studiob.com">
    info@studiob.com</a>.
  • Without HTML code, the text reads:

The best way to reach us is via e-mail. You can send e-mail to us at
lynn@drupalfordummies.com. For business inquiries regarding our technical
writing services, please contact our agency, Studio B, at info@studiob.com.

Both versions give you the same end result, e-mail addresses that are hyperlinks. The first version, with HTML tags, is a little tricky to type and definitely not as easy to edit if (for example) an e-mail address were to change.

image0.jpg

Drupal does the dirty work for you. This also applies to web addresses and URLs. To create an HTML link, you would ordinarily have to type

<a href="http://drupalfordummies.com">http://drupalfordummies.com</a>

Instead, Drupal automatically converts http://drupalfordummies.com into a link.

HTML requires tags to create paragraph and line breaks. Drupal handles this for you, behind the scenes, so you don't need to include <p> or <br> tags in your content.

This automatic formatting takes some of the work out of your content creation. When you create or edit your content by typing text in the Body text box of a basic page or article, it's very readable.

blog comments powered by Disqus
Advertisement
Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win an iPad Mini. Enter to win now!