Found 2202 Articles for HTML

Difference between background and background- color

Yaswanth Varma
Updated on 19-Jan-2024 16:36:29

449 Views

CSS offers a variety of styling options for HTML elements. These properties can be used for different purposes, including modifying the width and height of HTML components and adding a background image and color. This property also include margin, color, width, height, background, background-color, and many others. The background of HTML elements is set using the background and background-color properties. Let’s dive into the article to learn more about the difference between background and background color. Let’s discuss them one by one. CSS background property CSS background properties help us style the background of elements. The CSS background property is ... Read More

How do min-content and max-content work?

Yaswanth Varma
Updated on 19-Jan-2024 16:09:33

188 Views

In CSS, we use length, percentage, and keyword values to define an element's size. For developers who want the freedom to present webpage content effectively, the CSS sizing property is necessary. You can use it to apply styles to websites. More significantly, you can do this without regard to the HTML code that each web page uses. We sometimes employ the fit-content, min-content, and max-content keyword value types. Let’s jump into the article to learn about the working of the min-content and max-content. CSS min-content The keyword "min-content sizing" denotes the content's inherent minimum width. This implies that content will ... Read More

Fixed Width Design

Yaswanth Varma
Updated on 19-Jan-2024 16:05:25

279 Views

Most users at the beginning of the internet's existence were desktop computer users. Nowadays, you can access the internet on your laptop, phone, tablet, automobile, etc. People anticipate that the website will appear nice across all platforms. Before responsive web design, web developers and designers tried with a variety of various methods. One of them, was fixed-width design. As the names suggests "The width of your content is fixed" implies, the material's width will always be the same regardless of the size of your screen. Let’s dive into the article to learn more about the fixed width design. ... Read More

Difference between Transitional and Strict doctype

Yaswanth Varma
Updated on 19-Jan-2024 18:58:19

298 Views

HTML documents employ DOCTYPE declarations to identify the HTML version being used and to instruct web browsers to render content in a variety of ways. You must begin each HTML document you code with a declaration. just before the tag is where the doctype is declared. Let’s dive into the article to learn more about the difference between transitional and strict doctype. The two primary DOCTYPE declaration are "Transitional" and "Strict, " with each providing a different function in terms of describing how a web page should be read and produced. Before that let’s have a quick view ... Read More

How to make an image draggable in HTML?

Adeeba Khan
Updated on 22-Nov-2023 17:27:38

2K+ Views

The ability to create draggable elements within a web page is one of the new features and skills that HTML5 offers for web developers. It becomes a very popular and widely utilized feature. It simply means to move a picture to another location by dragging it there with the cursor. By employing mouse or touch motions, users will be able to drag an image or other content around the page. In this article, we'll look at how to build a draggable image in HTML5. It's simple to make any HTML5 element draggable, including photos. The 'draggable' feature is utilized. It accepts ... Read More

How to make an svg scale with its parent container

Adeeba Khan
Updated on 22-Nov-2023 16:52:50

9K+ Views

SVG, or Scalable Vector Graphics, is a markup language built on XML which is employed to produce vector graphics. SVG pictures can be scaled to any size without losing quality because they are independent of resolution. They are the best option for designing visuals that must be viewed on many devices with various screen widths. We'll talk about making an SVG scale with its parent container in this article. The fundamentals of SVG, how to design one, and how to make it responsive will all be covered. What is SVG? Let's first define SVG before learning how to make an ... Read More

How to use text-overflow in a table cell?

Abhishek
Updated on 20-Nov-2023 18:39:22

2K+ Views

The text-overflow property in CSS is used to handle the overflown text on the web page. This property helps us to show the overflown text in a specific way. The text-overflow property is used with two more other properties with fixed value to show overflowed text in a specific manner and those properties are white-space: nowrap; and overflow: hidden; with the given values. Once these properties are set on the element, we can use the text-overflow property with different values as written below − clip − It is the default value of this property in which the overflowed text ... Read More

How to use SVG with :before or :after pseudo element?

Abhishek
Updated on 20-Nov-2023 17:59:50

8K+ Views

The :before and :after pseudo elements are used to add the content just before the start of an HTML element and just at the end of the same or any other element. These pseudo selectors help to add content or any other effect without using the un-necessary elements in the HTML DOM. You can add content or any color and CSS effects on the element using these selectors. The :before selector as the name suggests will add the content before the element and the :after element will add the content after the element. You can add any image, color, background ... Read More

How to use font awesome icon as a cursor?

Abhishek
Updated on 20-Nov-2023 17:40:04

611 Views

In general, we see the design of cursor on any web page as an arrow by default or we can change the type of cursor to a particular type using cursor property of the CSS and assign it any kind of cursor of our choice such as pointer, grab, zoom in, zoom out etc. But, did you know? That we can change the type of cursor to any other type then the ones provided by the CSS. It is possible, as we can use any image to assign the design style to a cursor and can use any font-awesome icon ... Read More

How to sort HTML elements by data-attribute?

Abhishek
Updated on 20-Nov-2023 17:31:52

756 Views

In this article, we are going to learn about the ways of sorting the child elements of an element in the HTML document with the help of data attribute. The are many data attribute available in HTML to use. We can sort the elements by using any of those data attributes. In this article, we will sort the elements with the help of two different data attributes, where one will sort the elements according to the length of the value given to it and another will sort according to the numerical values. The data attributes are listed below − ... Read More

Previous 1 ... 6 7 8 9 10 ... 221 Next
Advertisements