Html Flashcards
What is HTML?
HTML stands for hyper text markup language. It is a language of the World Wide Web. It is a standard text formatting language which ya used to create and display pages on the web. It makes text more interactive and dynamic. It can turn text into images, tables, links..etc
What are tags?
HTML tags are composed of three things: an opening tag, content, and ending tag. Some tags are unclosed tags. HTML documents contain two things: content and tags. When a web browser reads an HTML document , the browser reads it from top to bottom, and left to right. HTML tags are used to create HTML documents and render their properties. Each HTML tags have different properties. Content is placed between tags to display data on the web page.
Do all HTML tags have an end tag ?
No. There are some HTML tags that don’t need a closing tag. For example img and br
How many types of heading does an HTML contain
- H1-h6
What is the difference between HTML elements and tags?
The element is an individual component of the HTML web page or document. It represents semantics or meaning. For example the title element represents the title of the document. the tags are used to make up and contain the elements.
What are attributes and how do you use them?
Each tag has additional attributes that change the way the tag behaves or is displayed. For example an input tag has a type attribute. Attributes are specified directly after the name of the tag , they should only appear in opening or self closing tags. Never closing tags.
What is the difference between inline and block elements?
A block level element is drawn as a block that stretches to fill the full width of the page. It will always start a new line and be in its own line. Block by default tags include (div, img, section,form, nav) in-line elements are drawn where they are defined and only take up space that is absolutely needed. Inline by default tags include ( span, b, strong, a, input)
When are comments used in HTML?
To help understand the code easier, and explain it to future developers who might need to use it.
What are some HTML tags used to display data in a tabular form?
Table, tr, th, td, caption, colgroup, col, tbody, thead, tfooter
How to create a hyper link in HTML?
The HTML provides the anchor tag to create a hyperlink that links one page to another.
What are some common lists that are used when designing a page?
Ordered lists, unordered lists, and definition lists.
What is semantic HTML?
It’s a coding style, it’s the use of HTML markup to reinforce the semantics or meaning of the content. For example: in semantic HTML b and I are not used for bold and italic. Instead we use strong and em.
How to create a nested webpage in HTML?
The iframe tag is used to display a nested webpage. In other words, it represents a webpage within a webpage.
What is an image map?
An image map is used for linking many different webpages using a single image. It’s represented by the map tag.
Does a hyperlink only apply to text?
No. You can use them for both text and images.
Explain the layout of HTML.
HTML layout specifies a way in which the web page is arranged. Every website has a specific layout to display content in a specific manner. Following are different HTML elements which are used to define the different parts of a webpage:
: It is used to define a header for a document or a section.
: This defines a container for navigation links
: It is used to define a section in a document
: This is used to define an independent, self-contained article
: It is used to define content aside from the content
: It is used to define a footer for a document or a section
What is a marquee?
Marquee is used for the scrolling text on a web page. It scrolls the image or text up, down, left or right automatically. You should put the text which you want to scroll within the …… tag.
What are the tags used to separate a section of texts?
There are three tags that can be used to separate the texts:
<br></br> tag – Usually <br></br> tag is used to separate the line of text. It breaks the current line and conveys the flow to the next line
<p> tag – This contains the text in the form of a new paragraph.
</p>
<blockquote> tag – It is used to define a large quoted section. If you have a large quotation, then put the entire text within <blockquote>……….</blockquote> tag.</blockquote>
What is the difference between DIV and SPAN in HTML?
The difference between span and div is that a span element is in-line and usually used for a small chunk of HTML inside a line,such as inside a paragraph. Whereas, a div or division element is block-line which is equivalent to having a line-break before and after it and used to group larger chunks of code.
What is the purpose of using alternative texts in images?
The purpose of using alternative texts is to define what the image is about. During an image mapping, it can be confusing and difficult to understand what hotspots correspond to a particular link. These alternative texts come in action here and put a description at each link which makes it easy for users to understand the hotspot links easily.
How to create a new HTML element?
You can create new elements for the document in the following way:
document.createElement﴾”myElement”﴿
It can be also be used in the HTML as:
hello edureka!
Is the tag considered as a HTML tag?
No, the declaration is not an HTML tag.
There are many type of HTML, such as, HTML 4.01 Strict, HTML 4.01 Transitional, HTML 4.01 Frameset, XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, XHTML 1.1 etc. So, is used to instruct the web browser about the HTML page.