Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

1) What is HTML?

2) Explain the structure of HTML documents.

The DOCTYPE is used to tell the browser to render an HTML document using the so-called
standards mode algorithm or render it with the particular browser’s older non standards
algorithm, called quirks mode.
HTML pages are divided into two sections: the head and the body, which correspond to the and
elements
The head contains descriptive elements about the document, such as its title, any style sheets
or JavaScript files it uses, and other types of meta information used by search engines and
other programs.
The body contains content (both HTML elements and regular text) that will be displayed by the
browser.

3)How to use ems and percents.?

CSS has several different units for expressing a length.


Length is a number followed by a length unit, such as 10px, 2em, etc.
Relative length units specify a length relative to another length property.
Relative length units scale better between different rendering medium.
ex:-em:Relative to the font-size of the element (2em means 2 times the size of
the current font)
Program:

PRIYANSHU SINGH(1DT19IS101)
OUTPUT:

Percent(%):Relative to the parent element


Program:

PRIYANSHU SINGH(1DT19IS101)

You might also like