Small Tag in HTML

WBOY
Release: 2024-09-04 16:27:20
Original
393 people have browsed it

The tag is one of the features in HTML mainly; it represents the text identified and displayed from one size into another size that is big to small size HTML body text will be converted largely into small. The tag will focus on the HTML its not undercover whole user browser font sizes. It will support all type of browsers, so it is fully accepted the browser compatibility modes. tag is an HTML element the web page content will change the smaller size, and there are no changes in the text on the web pages.

Syntax:

The basic syntax of the tag as follows.

<html>
<body>
<p>
<small>
----some contents---
</small>
</p>
</body>
</html>
Copy after login

The above codes are the basic steps to declare the tag in HTML documents. We must use both opening and closing brackets for the tag. In each HTML tags have their own features and some de-merits to the projects based on the versions, runnable environments, etc. these features are acceptable for all the HTML tags. tag is used for all the places in HTML tags; they use nested concepts to derive the HTML web contents in sub-division parts.

How does Small Tag work in HTML?

HTML small tags do not have any specific attributes support for HTML web pages; it is a global one that will support all over the web page contents in the browser screen. By using a small tag, the size of the fonts must vary; that is a small font for some various needs its have an expectation also it includes styles. In html5 is gained some new purposes for web page users. But it is common for the HTML small text inside comments and some fine prints also; it often includes some legal text or copyright information.

In body tag in a web page, all the contents of the text will be the same size that is often as normal, but there are sometimes certain parts of the copied text that will be a smaller size visually it will be broken one that the text is split and make it as a readable format in web pages. The tag is one way to format the text, and CSS with some other tags has reduced the importance of this tag. The small tag was one of the good tags when we used it properly, and also, it will be used multiple times on web pages and can be nested with inside other tags for some effects.

We will add to possible for styles and added some functionalities to the tags; this is nothing but adding an attribute with after the small in the opening tag. It includes attributes for class directories, id, languages, styles, and titles. In most of the cases class, ids are used with the web pages and its usages as line as examples with all the attributes there is have some spaces after the initial with the attribute names than an equal sign, identifiers of the attributes in double-quotes. Both the class and ids types are the attributes it refers to the CSS stylings of the elements, and it will be either stored in tag of the web page documents on an external file.

An id refers to denote the single instance of the web page whereas classes usually it refers to some repeating elements on the page it is mainly for the reasons for tag the class attributes is nearly always used over the id attributes because in practice, type it does not make many differences in the web page. The attributes are always allowed with some CSS styles pieces of information for the tag in HTML. The directory dir attribute is allowed for reading the HTML text in both left and right format language lang. It is allowed to specified the languages for both tag and title contents. It is used to allow some extra contents and information for the tags.

It is mainly possible to attach the scripts like javascript to use the HTML tags and also as well as add some functionalities to the web pages based on the user requirements those scripts in HTML will write for the outside scope of the document.The tag is an inline element in HTML. We use the tag to define the alter text size in the web pages if suppose the page is written in HTML5 versions, the mentioned altering text tag size issue is to be ignored on the case.

Examples

The examples of the following are given below:

Example #1

Code:

<html>
<body>
<p>Welcome To My Domain</p>
<p><small>welcome users To My Domain</small></p>
</body>
</html>
Copy after login

Output:

Small Tag in HTML

Example #2

Code:

<html>
<head>
<style>
sample {
font-size: .8em;
color:blue;
}
</style>
</head>
<body>
<p>Welcome To My Domain,All the New Users welcomed once again</p>
<sample> Please contact any queries to email:[email protected] </sample>
</body>
</html>
Copy after login

Output:

Small Tag in HTML

Example #3

Code:

<html>
<body>
<p>Welcome To My Domain.</p>
<button onclick="sample()">Click</button>
<p id="example1"></p>
<script>
function sample() {
var s = "mailto:[email protected]!";
var r = s.small();
document.getElementById("example1").innerHTML = r;
}
</script>
</body>
</html>
Copy after login

Output:

Small Tag in HTML

上記の 3 つの例は、基本的な を示しています。 Web ページ内でさまざまな形式の HTML をタグ付けします。プロジェクトのユーザー要件に基づいて、リアルタイム環境で小さなタグと属性を使用します。また、3 番目の例では JavaScript を使用しました。ボタンをクリックすると、メール アドレスが小さいサイズで表示されるため、前の 2 つの例と比較すると異なります。イベント ハンドラー メカニズムは HTML コンテンツ属性を使用して、HTML ドキュメント内からスクリプトを呼び出すことができます。フロントエンド画面の関数をバックエンドに呼び出すと、スクリプトが呼び出され、特定のイベントが発生します。各イベント ハンドラー メカニズムには、HTML スクリプト内の一連のイベントを処理するための特定の属性が含まれています。

結論

主に HTML では、 を使用します。 tag には、HTML の事前定義タグの表面に触れる機能が 1 つあります。主にHTMLタグの中でも汎用性が高く使いやすいタグになります。 CSS と組み合わせて、ユーザーにとって Web ページをより魅力的に表示します。

The above is the detailed content of Small Tag in HTML. For more information, please follow other related articles on the PHP Chinese website!

source:php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!