what will happen if the doctype is not specified in the html web page?

1 0
2 years ago 794 views
Not mentioning DOCTYPE will pose threat to browser compatibility and the use of older versions of HTML. The browser will not support the use of certain new features and tags that come with latest versions of the mark up languages. The purpose of DOCTYPE is to tell the browser what type of HTML you are writing. It is not valid to omit the DOCTYPE. There is no “Standard” format. The browser will just try to parse HTML as best it can. But not all elements will be displayed correctly. DOCTYPE is a required part of all HTML documents.

what is the role of <hr> tag? what are the various attributes it can take?

1 0
2 years ago 791 views
The <hr> tag in HTML stands for horizontal rule and is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections. The <hr> tag is an empty tag, and it does not require an end tag. Attributes of the <hr> tag are 1). Align- Used to specify the alignment of the horizontal rule. 2). noshade-Used to specify the bar without shading effect. 3). size- Used to specify the height of the horizontal rule. 4). width- Used to specify the width of the horizontal rule.