Add a Base Font in an HTML Page

Yaswanth Varma
Updated on 05-Sep-2022 12:44:01

571 Views

The HTML tag specifies the standard font-family, font-size, and colour for the text in the HTML document. It is advised that you format the text in the document using CSS attributes like font, font-family, font-size, and colour since this tag was deleted in HTML5. Note − Not supported in HTML5 Syntax Following are the examples… Example: Instead using CSS (basefont is not supported by html5) In the following example we are using css style to allow basefont as it was alternative of it. DOCTYPE html> body ... Read More

Difference Between Java Method and Native Method

Debarpito Sarkar
Updated on 05-Sep-2022 12:39:32

1K+ Views

This article will help you understand all differences between a Java method and a native method. Function / Method A program module (a part of the program) used simultaneously at different instances in a program to perform specific task is known as Method or Function. It can be regarded as a black box that is capable of returning an output (obtained as per execution of the codes written inside). Similarly, all the methods available in Java class act as a black box. On providing values (arguments) to a method, it processes the code available within it and returns the output. ... Read More

What is an I/O Filter in Java

Debarpito Sarkar
Updated on 05-Sep-2022 12:33:42

1K+ Views

This article will help you understand what I/O filter in Java is. The Java I/O Filter The Java I/O Filter is inside java.io package. It provides sets of input and output streams used for reading and writing data to input and output sources. There are different types of classes in java.io, naming Input Stream, Output Stream, etc. Some of the important types are discussed below − Input Stream The InputStream class of java.io is an abstract superclass which reads data from an input source. The source can be a file, a string, or anything that can contain data. This class ... Read More

Specify Spelling and Grammar Check in HTML

Yaswanth Varma
Updated on 05-Sep-2022 12:30:10

422 Views

Grammar and spelling errors in text fields can be found using the HTML spell check tool. Using the spellcheck property, the spell check capability may be added to HTML forms. The spellcheck attribute is an enumerated attribute that specifies whether or not the HTML element will be checked for mistakes. It is compatible with HTML's "input" and "textarea" fields. Syntax Following are the syntax for including spell check in HTML − . . Following are the examples… Example: Spellcheck value =”true” In the following example we triggered the spellcheck attribute to “true” to enable spellcheck in ... Read More

Include Big Text in HTML

Yaswanth Varma
Updated on 05-Sep-2022 12:28:04

759 Views

The HTML makes the enclosed content shown with a font size that is one level bigger than the text (medium becomes large, for example). The size is limited to the largest font size supported by the browser. Syntax Contents... Following are the examples… Example In the following example we are using html to make our text bigger. DOCTYPE html> Tutorialspoint welcome to tutorials the best e-way learning Output When the script is executed, the text "the best e-way learning" increases ... Read More

Represent Text for Bidirectional Formatting in HTML

Yaswanth Varma
Updated on 05-Sep-2022 12:26:38

243 Views

The HTML element instructs the bidirectional algorithm of the browser to treat the text it contains independently of the content around it. It's very helpful when a website dynamically adds some text without knowing which direction it should go. For example, few languages like Arabic, Urdu or Hebrew are written in the right – to – left direction instead of the usual left – to – right. We use the tag before and after the text that goes in the opposite direction of the script to rearrange it. However, if there is confusion about the text direction ... Read More

Create Tabbing Order of an Element in HTML

Yaswanth Varma
Updated on 05-Sep-2022 12:24:36

6K+ Views

tabindex is a global attribute that enables an HTML element to get focused in a sequential keyboard order (usually using the TAB key of keyboard). In order to function in an accessible manner, it requires a value of 0, a negative number or a positive. The tabindex attribute can be applied to any of the html element. Syntax Following are the examples… Example In the following example we used base URL = https://www.tutorialspoint.com/index.htm to which all other relative links will treat as starting URL. DOCTYPE html> ... Read More

What is a Marker or Tagged Interface in Java

Debarpito Sarkar
Updated on 05-Sep-2022 12:14:41

3K+ Views

This article will help you understand what a Marker or Tagged Interface in Java is. Before understanding marker interface, let’s revise on Interface. INTERFACE Similar to an object, an Interface is a blueprint of a class. It consists of static constants and abstract methods. It is a mechanism to achieve abstraction and multiple inheritance in Java. It is declared using the interface keyword. It provides total abstraction, meaning all methods in an interface must be declared with empty body, and all fields must be public, static and final by default. Syntax interface { // constant fields declaration ... Read More

Key Features of Java

Debarpito Sarkar
Updated on 05-Sep-2022 12:08:11

5K+ Views

This article will help you understand what the key features of Java Programming language are. The Key features of Java Programming Language are − Java is Easy to Understand Java’s base is similar to that of C and C++ languages and it includes many important features of these languages. It removes many drawbacks and complexities of C or C++. So if one has good understanding of either C or C++, then Java language will be very familiar and easily understandable. Java is an object oriented programming language Object Oriented Programming (OOP) is an approach to standardize the programs by creating ... Read More

What is Java String Literal

George John
Updated on 05-Sep-2022 11:34:39

4K+ Views

Strings, which are widely used in Java programming, are a sequence of characters. In Java programming language, strings are treated as objects. The Java platform provides the String class to create and manipulate strings. You can also create a String directly as − String greeting = "Hello world!"; A string literal should be enclosed in double quotes. Whenever it encounters a string literal in your code, the compiler creates a String object with its value in this case, "Hello world!'. Example Live Demo public class StringDemo { public static void main(String args[]) { ... Read More

Advertisements