Found 2556 Articles for HTML

Listing down various options for input values in HTML5

Govinda Sai
Updated on 24-Jun-2020 07:21:22

93 Views

The HTML tag specifies set of options for element. You can try to run the following code to list options for input values in HTML5 −Example           HTML Datalist Tag                                                                                   Try to add any of the tutorial name mentioned above.    

How do we include a table caption in HTML?

Yaswanth Varma
Updated on 05-Sep-2022 13:08:43

350 Views

The element is used to add caption to an HTML table. A "caption" must be the first descendant of a parent "table" in an HTML document, however it can be visually positioned at the bottom of the table using CSS. SyntaxTable title... The element contains global attributes and deprecated align attributes (left, right, top, bottom). This element must be used immediately after the table tag is opened as it is a table caption. If a figure needs to be captioned instead of a table use . Following are the examples… Example In the following example we are ... Read More

How to center text in HTML?

Srinivas Gorla
Updated on 31-Aug-2023 01:55:04

134K+ Views

The text in an HTML document can be horizontally centred by using the HTML tag. Since HTML5 did away with this tag, it is advised that you format the document's text horizontally instead by using the CSS text-align property. The element is another name for this tag. Note − Not supported in HTML5 Syntax ... Following are the examples… Example In the following example we are using tag to make our text aligned to the center. DOCTYPE html> Welcome to TutorialsPoint ... Read More

How to add background music in HTML?

Vrundesha Joshi
Updated on 24-Jun-2020 07:22:33

10K+ Views

The HTML tag is used to play music in the background. This tag is for Internet Explorer only.ExampleYou can try to run the following code to add background music in HTML −           HTML bgsound Tag                     Plays sound file in the background.     The HTML tag also supports the following attributes −AttributeValueDescriptionloopnumberLets you replay a background soundtrack a certain number of times.srcURLSpecifies the path of the sound file.

How to specify whether the element is to have its spelling and grammar checked or not in HTML?

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

258 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

How do we include big text in HTML?

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

549 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

How to represent text that must be isolated from its surrounding for bidirectional text formatting in HTML?

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

136 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

How do we include the direction of text display in HTML?

Rishi Rathor
Updated on 24-Jun-2020 07:36:47

125 Views

Use the dir attribute in HTML, to add the direction of the text.ExampleYou can try to run the following code to include the direction of text display in HTML −           This is demo text from left-to-right.       This is demo text from right-to-left.    

How to add a base font in a HTML page?

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

366 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

How to create the tabbing order of an element in HTML?

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

5K+ 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

Advertisements