How to add text in HTML
HTML Tutorial » How to add text in HTML
Inserting a text or paragraph in HTML is quite simple,between <body> & </body> tags.
Syntax:
How to insert text in HTML - examples
Inside <body> and </body> we can add any text or paragraph to which we can add the tags <h1>, <p>, <strong> learned on the previous page.
Here is an example:
<html>
<head>
<title> How to insert text in HTML</title>
</head>
<body>
<h1> Title, Information on the content of the pages. My first web page!</h1>
<p> Here we have a Paragraph</p> <br />
<strong> Here we have a strong Paragraph </strong> <br />
<em> Here we have an italic Paragraph </em> <br />
<a href="https://www.agernic.com/html-tutorial.html">Visit our HTML tutorial</a> <br />
</body>
</html>
Exceptions - Tags that do not need closing:
<img src="/assets_tutorials/img/image.jpg" /> -- Image Tag --
<br /> -- Line Break Tag --
<input type="text" size="12" /> -- Input Field --
<hr>
Related subjects:
How to put text in image HTML
How to insert text in HTML code using javascript dynamically
How to add text in HTML
Tags:
How do I put text over an image in HTML?, How do I put text onto a picture?, How do I put text in the middle of an image in HTML?
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
How to add, insert text in HTML page using CSS - examples
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.
<html>
<head>
<title>My first HTML page</title>
<style>
body {
font: Verdana, Arial, Helvetica, sans-serif;
background-color: #CCC;
margin: 0;
padding: 0;
color: #000;
}
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>
</head>
<body>
<h1>Method to write text in HTML</h1>
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 />
<p> This paragraph it is an example from AgerNic.com </p>
<p> here you can add how many lines you like</p>
</body>
</html>
Don't Forget the End Tag when you add / insert 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.
<p>This is another paragraph without end tag.
On this page you get how to Add, insert Text, paragraf in HTML
How To Add Text, paragraf in HTML using CSS, Writing text in HTML for beginners, how to insert text in HTML code, HTML page, add text color box in HTML, space between text,
html add text, on image, to button, on top of image, abov image, box, on hover, to bottom on page,editor, over image
How To Add Text, paragraph in HTML using CSS, Writing text in HTML for beginners, how to insert text in HTML code, HTML page, add text color box in HTML, space between text,
html add text, on image, to button, on top of image, abov image, box, on hover, to bottom on page,editor, over image
How to add text, paragraf in HTML - html tutorial
This tool makes it easy to create, adjust, and experiment with custom colors for the web.

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

Find here examples of creative and unique website layouts.

Find here examples of creative and unique website CSS HTML menu.