HTML Articles

Page 66 of 151

How to set text direction in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 3K+ Views

Text direction in HTML controls how text flows within elements. The direction property specifies whether text reads from left-to-right (LTR) or right-to-left (RTL). This is essential for multilingual websites and proper display of languages like Arabic, Hebrew, or Persian. We can set text direction using the CSS direction property through inline styles, internal stylesheets, or external CSS files. The direction property affects the text flow, alignment, and even the positioning of UI elements within the container. Syntax Following is the syntax for setting text direction using the CSS direction property − direction: ltr | rtl ...

Read More

How to create hidden comments in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 16K+ Views

HTML comments are used to add notes and documentation to your code that are not displayed in the browser. They help developers understand the code structure and temporarily hide content without deleting it. HTML comments allow you to document your code, hide content temporarily, and leave notes for other developers. The browser completely ignores commented content, making it invisible to website visitors but visible in the page source. Syntax Following is the syntax to create comments in HTML − Comments start with . Everything between these markers is hidden from the browser ...

Read More

How to use inline CSS (Style Sheet) in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 4K+ Views

Inline CSS allows you to apply styling directly to individual HTML elements using the style attribute. This method is useful for quick, element-specific styling without creating separate CSS files or blocks. Inline CSS is one of three ways to apply CSS to HTML elements − Inline CSS − Using the style attribute directly within HTML tags. Internal CSS − Using tags in the document head. External CSS − Linking to separate CSS files. Inline CSS takes the highest precedence and will override internal and external styles applied to the same element. Syntax ...

Read More

How to use internal CSS (Style Sheet) in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 5K+ Views

Internal CSS is a method of applying styles to HTML elements by placing CSS rules inside a tag within the section of an HTML document. This approach allows you to define styles for a single HTML page without using external CSS files. Internal CSS is particularly useful when you want to apply unique styles to a specific page that differ from your site's global styles, or when creating standalone HTML documents that need their own styling. Syntax Following is the syntax for internal CSS − ...

Read More

How to link pages using absolute URL in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 3K+ Views

An absolute URL in HTML is a complete web address that includes the full path to a resource, including the protocol (http/https) and domain name. Unlike relative URLs, absolute URLs provide the complete location of a resource and can be used to link to external websites or specific pages within the same site. What is an Absolute URL? An absolute URL contains all the information needed to locate a resource on the web. It includes − Protocol − Such as http:// or https:// Domain name − The website address like www.example.com Path − The specific location ...

Read More

How to change the target of a link in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 9K+ Views

The target attribute of the tag controls where a link opens when clicked. This attribute allows you to specify whether the link should open in the same window, a new tab, or in specific frames within a frameset. Syntax Following is the syntax to change the target of a link in HTML − Link text Target Attribute Values The target attribute accepts the following values − _blank − Opens the link in a new tab or window. _self − Opens the link in the current tab or window (default behavior). ...

Read More

How to create a bookmark link in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 15K+ Views

A bookmark link in HTML allows users to jump to specific sections within the same webpage or to sections on different pages. Bookmarks are particularly useful for long documents, creating table of contents, or providing quick navigation to important sections. HTML bookmarks work by combining the id attribute to mark target sections and anchor links with hash (#) references to jump to those sections. When clicked, the browser automatically scrolls to the bookmarked location. Syntax To create a bookmark link, first add an id attribute to the target element − Section Heading Then ...

Read More

How to create HTML link that doesnt follow the link?

Sreemaha
Sreemaha
Updated on 16-Mar-2026 457 Views

The nofollow attribute in HTML creates a link that doesn't pass SEO authority to the target page. When you add rel="nofollow" to a link, it tells search engines not to follow the link or transfer any ranking credit to the destination website. Syntax Following is the syntax to create a nofollow link − Link Text The rel attribute specifies the relationship between the current document and the linked document. When set to "nofollow", it instructs search engines not to follow the link. Understanding Nofollow Links The rel="nofollow" attribute serves several purposes − ...

Read More

How to create a Bibliography with HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 4K+ Views

A bibliography is a list of written sources of information on a subject, typically found at the end of academic papers, books, or research documents. In HTML, we can create well-structured bibliographies using semantic tags like for work titles and or for organizing the references. The tag defines the title of a creative work such as a book, article, song, painting, or movie. It provides semantic meaning to indicate that the enclosed text represents a work title or citation. The text inside tags renders in italic format by default in most browsers. Syntax ...

Read More

How we can put three divisions side by side in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 11K+ Views

The tag defines a division or section in an HTML document. This tag is mainly used to group similar content together for easy styling and also serves as a container for other HTML elements. There are multiple CSS techniques to place three divisions side by side in HTML. Syntax Following is the basic syntax for the tag − Content... Method 1 − Using display: inline-block The display: inline-block property allows elements to sit side by side while maintaining block-level properties like width and height. This is one of the simplest methods ...

Read More
Showing 651–660 of 1,509 articles
« Prev 1 64 65 66 67 68 151 Next »
Advertisements