Unit 2-WEB PAGE AND FORMATTING LAYOUT Flashcards
WHAT IS A Mark-Up Language?
A markup language is a computer language that uses tags to define elements within a document.
These tags are embedded within the document’s text, and they describe the structure and content of the document. ….
Mark-Up Language
WHAT IS Concept of Mark-Up Language?
The concept of markup language revolves around the use of tags that provide structure and meaning to the content within a document.
EXAMPLES OF MARK UP LANGUAGE
HTML, XML, and LaTeX.
…………. allow documents to be displayed in different ways across different platforms and devices, making it an essential component of web development.
Markup languages
WHAT ARE THE Components of HTML5(latest version of the HTML markup language )
Elements
Attributes
Tags
Doctype declaration
These are the building blocks of HTML documents, and they define the structure and content of a page.
What are they?
Elements
These provide additional information about an element and can be used to modify its behavior or appearance. What are they?
Attributes
These are used to mark the beginning and end of an element and are enclosed in angle brackets. What are they?
Tags
This specifies the version of HTML being used and should be included at the beginning of an HTML document. What is this?
Doctype declaration
HTML elements are categorized as either ……………………, and they have different default behaviors when rendered in a web browser.
block-level or inline elements
These create a new line after the element and take up the full width of their parent container. Examples include headings, paragraphs, and lists. What are they?
Block-level elements
These do not create a new line after the element and only take up the necessary space required by their content. Examples include links, images, and text span.
Inline elements
…………….. provide additional information about an element and are included within the opening tag. They have a name and a value, separated by an equal sign. For example, the “src” attribute specifies the URL of an image or video element, while the “href” attribute specifies the destination of a hyperlink element.
Attributes
The values of attributes can be either ………
text, numbers, or Boolean values.
Block level vs Inline elements?
Block-level elements are those that create a rectangular block on the page and start on a new line, while inline elements are those that are contained within a line of text and only take up as much width as necessary.
In HTML, elements are categorized into two types:
block-level elements and inline elements.
Examples of block-level elements include…………………., among others.
<div>, <h1> to <h6>, <p>, <ul>, <ol>, <li>, <table>, <form>, and <header>,
</header></form></table></li></ol></ul></p></h6></h1></div>
Examples of Inline elements include………., among others.
<a>, <span>, <img></img>, <em>, <strong>, <input></input>, <button>, <label>, <select>, and <textarea></textarea></select></label></button></strong></em></span></a>
It is important to note that block-level elements can contain both block-level and inline elements, while ……?
Inline elements can only contain other inline elements or data.
LIST 4 Benefits of HTML5 .
- facilitates backward compatibility
- provides a non proprietary open framework (JavaScript)
- invalid markup handling
- improved semantics
HTML5 has been designed in such a way that it is compatible with older versions of HTML. This means that it is easier to use HTML5 on older web browsers and web applications without requiring any major modifications.
Facilitates backward compatibility
HTML5 provides a non-proprietary open framework for web developers to create and develop web applications. This means that developers can use HTML5 with JavaScript to create dynamic and interactive web applications that work across all platforms.
Provides non-proprietary open framework (JavaScript)
Invalid markup handling
HTML5 is able to handle invalid markup, which is not possible in older versions of HTML. This means that web developers can create web pages that are more flexible and tolerant of errors.