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

3051. HTML Colors: How to add Color to your Web Page
Learn about HTML colors with this HTML tutorial.
https://www.quackit.com/html/tutorial/html_colors.cfm

2693. Text : Layout - HTML Tutorial
HTML basics - HTML tutorial
http://www.echoecho.com/htmltext06.htm

2212. HTML Tutorial - Kommentare, Textbereiche
Einen Textbereich in HTML erstellen und verwenden. Warum ist ein Textbereich so nützlich in einem Formular. Einfache Beispiele
https://tutorialehtml.com/de/html-textbereiche/

2112. HTML Tutorial - Attributs
HTML attributs, formating tags, Class, ID, Align, Generical atributs
https://tutorialehtml.com/en/html-tutorial-attributs/

2625. Forms : Form Fields - HTML Tutorial
HTML forms - HTML tutorial
http://www.echoecho.com/htmlforms04.htm

2137. HTML Tutorial - Layouts / Creating a web page with layouts
creating a web page with the help of layouts
https://tutorialehtml.com/en/html-tutorial-layouts/

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