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

CSS Tutorial

How to add text in HTML

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.

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

3055. HTML Formatting and Semantics
Learn about HTML formatting with this HTML tutorial.
https://www.quackit.com/html/tutorial/html_formatting.cfm

2656. Images : Inserting in HTML - HTML Tutorial
HTML images - HTML tutorial
http://www.echoecho.com/htmlimages02.htm

2122. HTML Tutorial - drop down lists menu
Dropdown lists in HTMl
https://tutorialehtml.com/en/html-tutorial-drop-down-lists-menu/

2613. Backgrounds : Fixed Image - HTML tutorial
HTML backgrounds - HTML tutorial
http://www.echoecho.com/htmlbackgrounds03.htm

3200. HTML colors, background, text and border color, html tutorial
HTML colors, background, text and border color html tutorial
https://www.agernic.com/html-tutorial/html-colors-text-background-and-border-color.html

2187. HTML Tutorial - Durchgestrichen
Durchstreichen, Beispiele und Anwendungen
https://tutorialehtml.com/de/html-durchgestrichen/

Your add here
How to get PHP errors to display?
How to prevent sql injection in php mysqli
How do I get PHP errors to display - PHP error_reporting()
mysql_query(): The mysql extension is deprecated and will be removed i
Function eregi_replace() is deprecated in php - How to fix
PHP delete an element from an array
Uncaught Error: Call to undefined function MYSQL_NUM_ROWS() in
Deprecated: mysql_connect() mysql extension is deprecated and will be
mysqli_fetch_array() expects parameter 1 to be mysqli_result boolean g
SQL IN Operator - example
SQL BETWEEN Operator
SQL like syntax and example
SQL WHERE AND & OR multiple conditions
SQL create table primary key autoincrement
PHP mysqli_connect () Function
SQL COUNT(), AVG() and SUM() Functions
Display data from SQL database with MySQLi into php - html table
SQL CREATE DATABASE - example
SQL mysql order by columns, by date, by asc, by desc, random with PHP
PHP mysqli_query() Function - mysqli query
SQL delete row - SQL delete table
SQL update - SQL update select
Insert into SQL - Insert into table SQL - Insert data in sql
Login in PHP - simple login script with PHP MYSQL