Found 2556 Articles for HTML

How to make a div center align in HTML?

Bhanu Priya
Updated on 04-Oct-2023 14:59:38

10K+ Views

DIV is called as a division tag, the name itself indicates that it makes divisions for the content on the web pages, tag separates the data on web pages, the data like text, images, navigation bar etc., By using DIV tag we can also create particular sections. DIV tag consists of open and close tags , both open and close tags are compulsory if we want to divide the page. By using class or id attributes DIV tags can be easily styled by using CSS or can be manipulated with JavaScript. Any sort of data can be placed ... Read More

How to horizontally center a

Arnab Chakraborty
Updated on 22-Dec-2021 06:36:55

194 Views

Here I have one html form and one css file(style.css).”o-div” is the outer div and “i-div“is the inner div class.Example           center a div                              I am OUTER DIV                       I am INNER DIV,             I am in Center                     OutputI am OUTER DIV I am INNER DIV, I am in CenterStyle.cssbody {    background-color:Gray;    padding:30px; } .o-div {    padding:50px;    background-color:Lime; } .i-div {    background-color:Fuchsia;    max-width:400px;    height:200px;    margin: 0 auto;    text-align:center; }

Using HTML control and SAPUI5 controls and advantages of using UI5 controls over HTML controls

Bhanu Priya
Updated on 04-Oct-2023 14:55:13

221 Views

First of all, let us try to understand what controls are. Controls define the appearance and behavior of screen areas. It consists of Control name. What is SAPUI5? It is a framework used to develop web applications in mobile and desktop where a large collection of JS libraries are present. But these JS libraries cannot be used alone. They have to be integrated into CSS along with JS for developing interactive internet applications. SAP can be customized and also builds its own UI components like, layouts, controls etc. Because of its extensive features we can control and define custom ... Read More

How to align two divs horizontally in HTML?

Bhanu Priya
Updated on 04-Oct-2023 14:44:54

5K+ Views

The division tag name itself indicates that it makes divisions, and displays layouts in web pages. The DIV tag can be applied to text, images, navigation bar etc., where a separate section can be created. This tag consists of open and close tags , and both the tags are used together if we want to divide the page. The content can be any type of data or images. DIV tags can be styled with CSS or manipulated with JavaScript, it is easily styled by using the class or id attributes. The DIV tag is called as block-level ... Read More

How to place two divs next to each other in HTML?

Bhanu Priya
Updated on 29-Sep-2023 16:20:55

45K+ Views

DIV tag is nothing but a division tag, the name itself indicates that it makes divisions for the content on the web pages. It helps in separating the data like text, images, navigation bar etc., we can also create particular sections by using the DIV tag. A DIV tag consists of open and close tags , and both these tags are compulsory if we want to divide the page. DIV tags can be styled with CSS or manipulated with JavaScript, it is easily styled by using the class or id attribute. Any sort of data can be placed inside ... Read More

What is the difference between height and line-height?

Alex Onsman
Updated on 08-May-2020 11:06:32

2K+ Views

Height is the vertical measurement of the container, for example, height of a div.Line-height is a CSS property to specify the line height i.e. the distance from the top of the first line of text to the top of the second. It is the space between the lines of two paragraphs.ExampleYou can try to run the following code to learn the difference between height and line height:Live Demo                    .height {             height: 20px;          }          .lheight ... Read More

Advertisements