Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • HTML Interview Questions and Answers

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 1.02k
    Comment on it

    HTML Interview Questions and Answers for Beginners

    Hello

    This tutorial, will provide you HTML questions and answers. The content here will help people to get through with their interviews for software industry. If you want to get to get into an IT industry as a font end developer the recruiters expect the knowledge of HTML.

    There are some common questions asked by every interviewer, so here we have collected few questions and related answers based on HTML for freshers and experienced which will definitely helps you.

    What is HTML?

    HTML stands for Hyper Text Markup Language used to describe web documents (web pages). Markup language or HTML is the set of and described by markup or HTML tags, where each HTML tags describes different document content.

    What is the difference between HTML elements and tags?

    HTML tag is just opening or closing entity. For example:

    <hi> and </hi> are called HTML tags

    HTML element consists of opening tag, closing tag and a content inside the tag.
    For Example
    <p>Here is the content</p> : This complete thing is called a HTML element.

    What is Semantic HTML?

    The Study of meanings of words and phrases in language is Semantics, we can say that semantic elements clarifies the content inside the tags, i.e - <form>, <table>, and <img> where as non semantic elements describes nothing about the content <div> and <span>.
    Semantics elements are those elements which describes the meaning to browser and the developer.

    What does DOCTYPE mean?

    The very first thing in any HTML document, starts before HTML tags is DOCTYPE. It is not an HTML tag it is just an instruction or deceleration which tells the web browser which type of HTML is used on a webpage.

    For more detail visit DOCTYPE

    Standards mode and quirks mode?

    Standard mode is simpler then that of Quirks mode as Quirks mode is a default compatibility mode which may differ from browser to browser and result in lack of consistency in appearance on different browsers.

    How many HTML tags will you use for the simple web pages?

    Total 8 tags which will will 4 pairs of tags as shown below.

    <HTML>
    <HEAD>
    <TITLE>This is my simple web page!</TITLE>
    </HEAD>
    <BODY>
    My very simple web page
    </BODY>
    </HTML>
    

    How to make comments without text being displayed up on the browser and why are these comments used

    Such comments are used to explain and clarify code along with developers use this to prevent code from being recognized browser or we can say that so the code will not be displayed on browser. *

    Linking to an image, a website, and an email address

    To link and image we use <img> tag, By using src in opening tag, means using source attribute we specify the image in quote here.
    For example- <img src=provide image source here></img>


    To provide Hyper-linking we use <a> anchor tag, the link is stated in href attribute, the text which need to be hyperlinked should be placed between the anchor tag.

    For example- <a href=abc.com>Text to be hyper linked</a>


    Here, href means hypertext reference which I have given abc.com here means on clicking hyperlinked text I am sending the user to this destination or page.


    To provide link to an email, the href specification will bemailto:xyz.com

    Difference between a bulleted list and numbered list

    Bullet list---> To provide bullet points we use <ul> tag, ul stands for unordered list.

    Numbered list---> We use <ol> tag, ol stands for ordered list.

    In my next Tutorial I will provide HTML5 Interview Questions and Answers

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: