Skip to main content

Posts

Recent Posts

Latest News

● Posts on CSS and SEO coming soon ...●

Iframe tag in HTML and its attributes

  What is Iframe tag in HTML and Why it is Used?: Iframe tag in HTML used for embedding or inserting a inline frame which can contain document in a webpage. (In lower version frameset tag used for dividing browser into frames and frame tag indicates a frame. In html5 frameset and frame both tags are unsupported.)  Attributes of iframe tag are as follows:- 1. Src: this attribute specifies location of document to be displayed in inline frame. 2. Width:- width of inline frame 3. Height:- height of inline frame 4. Name: assign name to the iframe 5. Srcdoc: this attribute specifies content of html code page to show  

Understanding meta tag and its attributes

  What are Meta tags in HTML and why they are important?. Meta tags are used to displays information which is visible in search result. This information is used by search engine for understanding webpage to give better results and improve search engine optimization.  This information is not displayed in output or webpage. Meta tag is empty element and present within head tag. Attributes of meta tag are as follows: 1. Name: specifies name of Metadata like author name, description, keyword and copyright. 2. Content: this attribute specifies information about name attribute  3. Char Set: this attribute specifies character encoding used by document called as character encoding declaration. 4. http-equiv: this attribute used for addition of  information in http header This can have values refresh(refresh page after some time), set cookies(send cookies to server), content type(Specifies the character encoding for the document) . expires(session will expired after some time), content

Using Section and Semantic tags in html

  What are Semantic or section tags in HTML?:  In HTML section allow us to group HTML elements. For grouping many HTML elements div tag is used and for grouping few HTML elements. Div tag is block level element and creates a block in webpage while span tag is inline level element and this elements does not start on new line. Semantic tags in HTML:  HTML5 introduces semantic tags to customize content in proper sequence or order like blocks. It is optional to use semantic elements div and span element do the same work as they do.  Following are semantic tags: 1. <header>: this attribute helps to create a header. 2. <nav>: this Attribute helps to create navigation bar in webpage. 3. <section>: this attribute creates section in webpage. 4. <article>: this attribute help to insert article in webpage. 5. <aside>: this attribute help to creates sidebar. 6. <Footer>: this attribute help to create footer. 7. <details>: this attribute used

Inserting Audio and Video file in HTML

  How to inset Audio and video files in HTML using audio and video tags? For inserting audio in HTML <audio> tag is used. In lower version of HTML embed and bgsound tags used for inserting audio files in webpage.  For inserting video in HTML <video> tag is used. In lower HTML version embed and img dynsrc are used for embedding video in webpage.  Attributes of audio tag are as follows: 1. Src : provides location or source of audio file. 2. Controls : this attribute provides an console with play, pause, forward, button as we play music on any music player. 3. Loop : this attribute used for playing audio in assigned value times if loop=2 then audio file will be played two times after finishing  4. Muted : this attribute is used for muting audio 5. Autoplay : this attribute is used for auto playing audio when user open webpage. Source tag is used for adding multiple audio files in webpage. Attributes of video tag are:  1. Src : this attribute specifies location