Skip navigation.

HTML

Horizontal Rules

As the content increases in web page, it is very useful to break up the web page into visually distinct areas. A horizontal rule, indicated by the


tag is used to draw horizontal lines across the browser window. By drawing the horizontal lines, we can visually distinct the areas in the web page.

How to add headings in XHTML documents?

In this section, we will learn how to use heading tags in XHTML documents. The heading tags are used to create headlines in documents. There are 6 heading tags <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, with <h1> being the largest heading and <h6> being the smallest heading. The <h1> tag displays the embodied text in bigger and bolder than the normal text. The <h6> tag displays the embodied text in smaller and bolder than the normal text.

Why do we need heading tags?

Strong, Italic and Underline - Your Fourth Web Page

How to write text in bold, italic and underline in XHTML documents?

We have created three web pages and now we know how to write text paragraphs in XHTML documents. We also learned how to include line breaks and non-breaking space characters in XHTML documents. In this primer we will learn how to write text in bold, italics and underline in XHTML documents.


...

Line Breaks and Spaces - Your Third Web Page

How to insert line breaks and non-breaking spaces in XHTML?

The above question is commonly asked by an XHTML beginner. In our previous primer we learned that XHTML documents do not understand the end of the paragraph if you press the enter key to insert a line in your text editor. When you want to begin a new paragraph you start a new element with <p> and end it with </p>. We are now capable of conveniently writing paragraphs of text using the <p>...</p> tag.

How to insert line breaks in XHTML documents?

WYSIWYG Editor And Its Karma

Yesterday, I had to upload a table and a paragraph of text in one of our websites built on Drupal CMS. I prepared the content in OpenOffice.org Writer. I quickly inserted a table and typed the text in a paragraph in OO Writer. I also added some colors to the table to enhance the look and feel of the document. I thought I could easily replicate the design in the Drupal CMS.

I logged in to Drupal and inserted the post with the table and text content. This post defaced the ambiance of the whole web page. The table was displayed in the extreme right and I had to use the horizontal scroll bar in the browser to see the content. The post needed CSS to fix the problem.

I am developing a solution to add a custom CSS file to Drupal from several days. Due to stringent deadlines of the existing projects I'm unable to spend much time on it. The idea of WYSIWYG editor flashed in my mind. I quickly downloaded the TinyMCE software from Moxicode and the TinyMCE module from Drupal. Installed them on the local copy of the Drupal site. The WYSIWYG editor never turned up in the content posting area. I had to spend some more time to fix the installation issue. I did not have enough time to fiddle with WYSIWYG editor installation.

I looked at other alternatives. I exported the OO Writer file to HTML which gave me only 800 lines of XHTML. Inserting 800 lines of XHTML markup was really not worth for a small post.

Finally, I copied and pasted the table from OO Writer to OO Draw. Exported the table as a jpeg image. Uploaded the image and inserted the text in the Drupal site. Added a one liner markup to float the image to the right of the text paragraph. That gave me what I wanted.

The Paragraph Element - Your Second Web Page

The <p>...</p> Tag. Creating Paragraphs In Web Pages.
In the last primer we learned how to create a web page. In this primer we will study how to publish an HTML document with more text.

Just like our previous example we will write the DTD, Head and Body section of the document.





My Second Web Page

Your First Web Page

How to create a web page?

Are you ready to create your first web page?

Here we go. Open a text editor. You can use any text editor you have chosen to be your favorite. It may be VIM, VI, gedit, XEmacs or even Notepad. Type the following in the text editor:





My First Web Page

Various Methods Of Publishing Web Pages

Various Methods Of Publishing Web Pages

  • Writing Markup Manually

HTML

Do you want to learn how to build a web site?

This primer will help you create web pages and publish them in a step by step manner. I will try to make this primer as simple as possible. I will use analogies to explain technical terms and concepts. You are very welcome to post comments here. You can also post your questions to relevant LAMPComputing.com forums.

Syndicate content