Found 2202 Articles for HTML

How do we include an emphasized text in HTML?

Bhanu Priya
Updated on 06-Oct-2023 14:41:40

493 Views

To Emphasize the text content in HTML we use tag. It is same as tag. It has closing and opening tags, . The tag is a phrase tag. It renders as emphasized text. Emphasized text The text that is present in between open and closing tags of appears in an italic form. The main difference between italic and emphasized tag is that, emphasized tag semantically emphasizes on section of words whereas tag shows text in italic which indicate alternative mood. The effects of tag can be achieved by using ... Read More

Create editable content in an HTML document

Bhanu Priya
Updated on 06-Oct-2023 14:37:28

778 Views

In Html, we can edit the content by using contenteditable attribute, it specifies whether the elements content is editable or not by the user. The property of contentEditable is set or returns if the content of an element is editable. Syntax The usage/syntax of editable content in HTML is − The above contenteditable attribute has two values true/false. True indicates that the element is editable. False indicates that the element cannot be edited. Example Following is the example, to create editable content in an HTML − This ... Read More

How do we include a section in an HTML document?

Bhanu Priya
Updated on 06-Oct-2023 14:30:29

1K+ Views

Section is one of the tag used in HTML, which defines the section of document like header, footers, chapters etc., Section tag divided the content of document into two parts, section and subsections. It is useful when there is a requirement of two headers or footers or chapter or other sections of document needed. Section tag groups the related content in a generic block. It is a semantic element, that describes meaning to browser as well as developer. section has open and closing tags, It supports almost all browsers. Section tag also supports global attributes ... Read More

How do we add a definition term in HTML?

Bhanu Priya
Updated on 06-Oct-2023 14:25:24

485 Views

The definition term is represented as tag in HTML, it describes the name or term in a description list. The define term is conjunction with and tags. tag is used to describe each name or term tag defines a description list. define tag supports both global and event attributes. The tag is supported by almost all browsers. Syntax Following is the syntax of define term − code Example Following example of adding a definition term in HTML. Here we are using all the three ... Read More

Check whether the content of an element is editable or not in HTML

Yaswanth Varma
Updated on 05-Sep-2022 14:08:41

918 Views

The contenteditable attribute indicates whether or not an element's content is editable. If the content is found to be editable, the browser will allow editing by modifying its widgets. This attribute must always take one of these two values below − true, or an empty string − indicating that the content is editable false − indicating that the content is not editable If the attribute does not take any of the values mentioned above, it is declared an empty string and will, by default, become an editable content. Note − If an element's contenteditable attribute is not ... Read More

How to create Definition Lists in HTML5?

Yaswanth Varma
Updated on 05-Sep-2022 14:10:37

2K+ Views

A description list—previously known as a definition list—offers an organised arrangement of a term and its definition. For defining a definition list, the following tags are used − − This is the list of definitions. It stores terms and their definitions as tables of rows and data. − This is the term used to define. It keeps the phrase under definition. − This serves as the description or definition. It contains the definition of a particular term. Using these tags, Following are the examples… Example In the following example we are using , , ... Read More

Listing down various options for input values in HTML5

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

183 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

632 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

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

11K+ 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.

Advertisements