InterviewSolution
| 1. |
What will be the output of the following HTML code? Html tags can be of two typesare pairedun paired |
|
Answer» Explanation: HTML Tutorial HTML Tags HTML Attributes HTML Text HTML Headings BLOCK & Inline Elements HTML Lists Hyperlink HTML Images HTML Iframes HTML ENTITIES HTML Meta Tag HTML Tables HTML Form HTML Marquee Doctypes in HTML XHTML DHTML HTML Tags and Elements Written By: Avinash Malhotra Updated on 10-Aug-2020 ← HTML Tutorial HTML Attributes → HTML Tutorial rating by Jasmine Average rating: 5.0, based on 69 reviews Home Web Designing Html Html Tags Type of HTML tags HTML Tag Body Tag Title Tag Meta Charset List of HTML Tags Tags in HTML HTML Tags or Tags are used to add content in html, like text, headings, table, list links etc. Tags along with attributes are core COMPONENTS of HTML. The latest version of HTML, i.e HTML5 includes around 142 tags. A Tag with attribute and content is called HTML Element. HTML Tags HTML Tags Type of HTML Tags Tags in HTML are categorized as Paired Tags and Unpaired Tags on the basics of opening and closing. Paired Tags are tags with both opening and closing. They can have child tags and text. For example , , etc.Unpaired tags are tags with opening only, example Type of html tags Tags Type USE Paired Tag Pair Tags are written in pairs, means separate opening and closing tag. Exp html, body, head, h1, p, div etc. Unpaired Tags Unpair or self closing tags. They don't need closing, as they are self closed. Unpair tags example etc. Unpaired elements don't have any child or children. They are last node of HTML DOM Tree. HTML Tag HTML or HTML Tag is the parent tag of all HTML Elements. HTML Tag is defined just after doctype declaration. To know more about html doctype, click html doctype. HTML Tag has two children, head tag and body tag. Since HTML3, It is compulsory to define Doctype and then HTML tag. lang attribute is used inside html tag to define language. An option dir="ltr" is also used to ser DIRECTION which if by default left to right. For Urdu and Arabic, use dir="rtl" in html tag.
HEAD Tag HTML Head tag is the first child of HTML. Head .
|
|