This Repo required for Asac labs class 2
HTML pages are text documents that composed of three main parts:
a line containing HTML version information.
declarative header section (delimited by the HEAD element)
body, which contains the document’s actual content.
adding tags or elements to the words will give the information they surround special meaning so that the browser knows what is a heading, where a paragraph begins and ends, and so on. HTML elements are these characters that live inside angled brackets. Each HTML element tells the browser something about the information that sits between its tags.
Elements are usually made up of two tags:
There are two different types of tags:->
Attributes provide additional informationabout the contents of an element. They appear on the opening tag of the element and are made up of two parts:
name : specifies a name for an HTML element, indicates what kind of extra information you are supplying about the element’s content. It should be written in lowercase.
value: specifies the value of an <input> element,iit is the information or setting for the attribute. It should be placed in double quotes.
STRUCTURE
It is an “information” to the browser about what document type to expect.Each web page should begin with DOCTYPE declaration to tell a browser which version of HTML the page is using (although browsers usually display the page even if it is not included).
< !DOCTYPE html>
< ?xml version=”1.0”?>
If you want to add a comment to your code that will not be visible in the user’s browser, comments help to understand the code for you in future or to other developers. to type a comment you can add the text between these characters:
<!– comment goes here –>
The id attribute specifies a unique id for an HTML element. It is used to uniquely identify that element from other elements on the page. The id attribute is known as a global attribute because it can be used on any element.
<element id=”special-id-name”>
the Class Attribute specify a class for an HTML element. Multiple HTML elements can share the same class rather than uniquely identifying one element within a document.
<element class=”class-name”>
block level elements are elements that will always
appear to start on a new line in
the browser window. i.e :
<article>
<aside>
<dd> <div>
<dl><dt><footer><form>
<h1>-<h6><header><hr>
<li><main><nav><ol><p>
<section><table><ul><video>
Inline Elements are elements that will always appear to continue on the
same line as their neighbouring elements. An inline element does not start on a new line. i.e:
<a><br><button><em>
<i><img><input><label>
<script><select><span><tt>
<strong><textarea><time>
An inline element only takes up as much width as necessary.
The <div> element allows you to group a set of elements together in one block-level box.
The element acts like an inline equivalent of the <div> element. It is used to either:
An iframe is like a little window that has been cut into your page — and in that window you can see another page. The term iframe is an abbreviation of inline frame.
An iframe is created using the <iframe> element. There are a few attributes that you will need to know to use it:
The src attribute specifies the URL of the page to show in the frame.
The height attribute specifies the height of the iframe in pixels.
The width attribute specifies the width of the iframe in pixels.
seamless can be applied to an iframe where scrollbars are not desired
Example :
< iframe width=”450” height=”350” src=”http://maps.google.co.uk/maps?q=moma+new+york &output=embed”> </iframe>
The Result:
The <meta> element lives inside the <head> element and contains information about that web page.
charset: Specifies the character encoding for the HTML document
content: Specifies the value associated with the http-equiv or name attribute
http-equiv: Provides an HTTP header for the information/value of the content attribute
name: Specifies a name for the metadata.
Name Values:
EXTRA MARKUP
authors used <div> elements to group
together related elements on the page then used class or id attributes
to indicate the role of the <div> element in the structure of the page.
HTML5 introduces a new set of elements that allow you to divide up the parts of a page. The names of these elements indicate the kind of content you will find in them.
A header or footer for an individual <article> or <section> within the page. e <header> element used to contain the site name and the main navigation. The <footer> element contains copyright information, along with links to the privacy policy and terms and conditions.
The <nav> element is used to contain the major navigational blocks on the site such as the primary site navigation.
The <article> element acts asa container for any section of apage that could stand alone and potentially be syndicated.
The <aside> element has two purposes, depending on whether it is inside an <article> element or not
The <section> element groups related content together, and typically each section would have its own heading.
The purpose of the <hgroup>element is to group together a set of one or more <h1> through <h6> elements so that they are treated as one single heading
<figure> can be used to contain any content that is referenced from the main flow of an article (not just images).
HTML5 LAYOUT
## Chapter 18: “Process & Design” ## wireframe :
wireframe is a simple sketch of the key information that needs to go on each page of a site. Wireframes allow you to organize the information that will need to go on each page.
A site map is a tool used to help keep you and your site organized. Site maps are like a family trees consisting of pages instead of relatives, that lead to information from one page to the next and back.
## Summary PROCESS & Design