AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
HTML Tutorial

How to add text in HTML

HTML Tutorial » HTML Text and Paragrafs

<< Previous Page
HTML Tags Attributes
Next Page >>
HTML Style


HTML contains several elements, tags and attributes, for displaying text in several formats with different graphic aspects.
Below is explained how a text can be put in HTML in a simple way, how to add text in HTML

Method to write text in HTML

In order to write text to be displayed on our website, we will simply enter it in the <body> tag, as we have seen in the previous examples.
To insert a paragraph we will write the text between the opening and closing of the <p> tag:

Example:
  1. <html>
  2. <head>
  3. <title>My first HTML page</title>
  4. <style type="text/css">
    <!--
    body {
    font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
    background-color: #42413C;
    margin: 0;
    padding: 0;
    color: #000;
    }
    h1, h2, h3, h4, h5, h6, p {
    margin-top: 0; /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
    padding-right: 15px;
    padding-left: 15px;
    }
    -->
    </style>
  5. </head>
  6. <body>
  7.   <h1>Method to write text in HTML</h1>
  8. In order to write text to be displayed
    on our website, we will simply
    enter it in the <body> tag, as we have seen
    in the previous examples.<br />
  9. <p> This paragraph it is an example from AgerNic.com </p>
  10. <p> here you can add how many lines you like</p>
  11. </body>
  12. </html>


Don't Forget the End Tag when you add text in HTML

Don't Forget the End Tag. If you start with <p> you must end with </p>. Most browsers will display HTML correctly even if you forget the end tag:

Example:
<p>This is a paragraph without end tag.
<p>This is another paragraph without end tag.


<< Previous Page
HTML Tags Attributes
Next Page >>
HTML Style


How To Add Text In HTML, Writing text in HTML for beginners
How to add text, paragraf in HTML - html tutorial

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


HTML Img Background
HTML Image Link
HTML Image Size
HTML Text Style
HTML Text Align
HTML Text Size
HTML Text Color Style
HTML Text Color
HTML Table Color
HTML Table Row Colspan
HTML Table Width
HTML Table Style
HTML Table Border
HTML Table
HTML Font Face
HTML Font Size
HTML Font Color
HTML Headings
HTML div border color
HTML div class
HTML class container
HTML form action
HTML comment
HTML link new tab
HTML link underline
HTML link tag
HTML button action
HTML button onclick
HTML button link
HTML table style
HTML image
HTML colors
HTML div style
Text, paragraf in HTML
HTML Tags Attributes
HTML - Elements
HTML Introduction
Home HTML Tutorial
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.