HTML text tag
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:
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
<!DOCTYPE html>
<html>
<head>
<title>The <p>, <span>, <br /> tag - example</title>
</head>
<body>
<h2>The <p>, <span>, <br /> 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.
<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 <input> size Attribute </h3> <br />
<input type="text" id="f_name" name="f_name" size="50">
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.
<h2> Text color </h2>
<p style="color:green">This is demo content.</p>
<p style="color:red">This is another demo content.</p>
text tag, without line break, attributes, size, new line, color, line break, font size, background color
HTML text tag - 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.