HOME | PHP Tutorial | CSS
facebook icon
AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP
PHP Tutorial

PHP forms
HTML Tutorial

CSS 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

2217. HTML Tutorial - Einfügen von Videos in HTML-Seiten
Einfügen eines Videos in html. Wie man den HTML5 Videotag verwenden
https://tutorialehtml.com/de/html-video/

2658. Images : Border Around - HTML Tutorial
HTML images - HTML tutorial
http://www.echoecho.com/htmlimages04.htm

3048. HTML Tutorial
Free HTML tutorial - learn how to create a website using HTML.
https://www.quackit.com/html/tutorial/

2659. Images : Alternative Text - HTML Tutorial
HTML images - HTML tutorial
http://www.echoecho.com/htmlimages05.htm

2257. XHTML Tutorial - Syntax
In html 4.01, tags like: applet, frame, iframe and img can have defined the name attribute. In XHTML this is deprecated and you can use instead the id attribute. Some really old browsers do not recognize the id attribute for these elements. A simple and
https://tutorialehtml.com/en/xhtml-tutorial-syntax/

2635. Forms : Image Button - HTML Tutorial
HTML forms - HTML tutorial
http://www.echoecho.com/htmlforms14.htm

Your add here
PHP md5() function

PHP strlen() function

PHP str_repeat() function

PHP strtoupper() function

PHP ucfirst() function

PHP strstr() function

PHP strip_tags() function

PHP ltrim() function

PHP count() Function

PHP html_entity_decode() function

PHP strtolower() function

PHP htmlspecialchars() function

PHP define() function

PHP explode() function

PHP htmlentities() function

PHP str_replace() function

SQL BETWEEN Operator
PHP Variables
HTML form action - radio HTML form - how to create
HTML - Elements: body, head, title
PHP delete an element from an array
HTML Font Face