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

HTML text tag


<< Previous Page
HTML tutorial
Next Page >>
HTML tutorial

HTML Tutorial » Tags for text

A web browser reads an HTML document, this is reading it from top to bottom and left to right. HTML tags are used to create HTML documents and render their properties. Each HTML tags have different properties.

We mainly display HTML tags for text where you can use to print text on a web page.

Syntax:

<tag_name> your content text </tag_name>
Note: HTML Tags are written in lowercase letters.

 

The <p>, <span>, <br /> tag

  • <p>  - This tag defines a paragraph of text. Inside of <p> tag, we can add any inline element as  <span>.
  • <span> - This is an inline tag that can be used to create a section in a paragraph (<p>).:
  • <br /> - html text tag new line
Example
  <!DOCTYPE html>
<html>
<head>
<title>The &lt;p&gt;, &lt;span&gt;, &lt;br /&gt; tag - example</title>

</head>
<body>
<h2>The &lt;p&gt;, &lt;span&gt;, &lt;br /&gt; tag</h2>
<p> this is an important text <span> and here
another text</span> </p>
<p> Another text - line break <br /> okra pea winter - this is a new line</p>

</body>
</html>

 

Related subjects:
Text align Text size Text color

 

Text tag size and text input size

We change the size of text with the <font> tag using the size attribute. Size attribute specifies how large a font will be displayed on the web page. To close the <font> tag use this </font> to return to a normal text size.

Default font size is 3, and the largest font size that can be used to font in a browser is 7.

Example
  <h2> safdasdasd </h2>
<font size="+1">This is bigger text.</font> <br />
<font size="+2">This is bigger text.</font> <br />
<font size="+3">This is bigger text.</font> <br />
<font size="+4">This is bigger text.</font> <br />
<font size="+5">This is bigger text.</font> <br />
<font size="+6">This is bigger text.</font> <br />
<h3>HTML &lt;input&gt; size Attribute </h3> <br />
<input type="text" id="f_name" name="f_name" size="50">
Note:  the largest font size that can be used to font in a browser is 7

Tags: html text tag without line break, attributes, size, new line, color, line break, font size, background color

 

How to set font color in HTML?

HTML text tag color

To make color text in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML tag, with the CSS property color.

Example
  <h2> Text color </h2>
<p style="color:green">This is demo content.</p>
<p style="color:red">This is another demo content.</p>

Note:  HTML5 do not support the <font> tag, so use CSS style to add font color. The <font> tag deprecated in HTML5.



text tag, without line break, attributes, size, new line, color, line break, font size, background color
HTML text tag - 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.


Error: Unable to connect to MySQL. Debugging errno: 1045 Debugging error: Access denied for user 'u142985959_ager'@'localhost' (using password: YES)