Delitos Cometidos Por Mujeres
3.6 Sustracción de Menores .1 Aspectos Generales:
3.7.2 Las partes
Concepts
Session
Creating Navigational Aids and Division-Based Layout Table 8.2 lists attributes and value of <meter> tag.
Attribute Value Description
form form_id Is used for specifying one or more forms that <meter>
element belongs to
high number Is used for specifying the high range value
low number Is used for specifying a range of value that is to be considered as low and should be greater than min attribute value
max number Is used for specifying the maximum value of the range min number Is used for specifying the minimum value of the range optimum number Is used for specifying the optimal value for the <meter>
tag
value number Is used for specifying the current value of the <meter>
tag
Table 8.2: Attributes and Value of <meter> Tag
Progress - The <progress> tag can be used with JavaScript to display the progress of a task.
Table 8.3 lists attributes and value of <progress> tag.
Attribute Value Description
max number Is used for specifying the work as a floating point number that the task requires in total
value number Is used for specifying how much task has been completed
Table 8.3: Attributes and Value of <progress> Tag Code Snippet 4 demonstrates the code to display <progress> tag.
Code Snippet 4:
<progress value=”24” max=”120”></progress>
8.3 HTML5 Semantic Layout
The sample representation of a Web page layout is displayed in figure 8.1. The section will explain every section defined and the purpose of each section.
Concepts
Session
Creating Navigational Aids and Division-Based Layout
In other words, figure 8.1 shows the HTML5 semantic layout and used elements for every section.
Figure 8.1: HTML5 Semantic Layout
<header>
The <header> element provides introductory information. This information can include titles, subtitles, logos, and so on. It can also include the navigational aids.
The <head> tag provides information about the entire document, whereas the
<header> tag is used only for the body of the Web page or for the sections inside the body.
Code Snippet 5 demonstrates the use of <header> tag.
Code Snippet 5:
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8”>
<title>My First Page</title>
</head>
<body>
<header>
<h1>Sample Blog </h1>
</header>
</body>
</html>
Concepts
Session
Creating Navigational Aids and Division-Based Layout
In the code, the <header> element shows the commencement of the body. This is the visible part of the document. Inside the <header>, the <h1> element is used to indicate the importance of the heading.
<nav>
The nav element is a section which contains the links to other pages or links to different sections within the page. In other words, it is a section containing the navigation links.
Navigational elements are helpful in identifying large blocks of navigational data and are generally not preferred for small navigational displays.
Code Snippet 6 demonstrates the use of <nav> tag.
Code Snippet 6:
<body>
<li> home </li>
<li> help </li>
<li> contact </li>
</ul>
</nav>
</body>
In the code, the <nav> element is present between the <body> tags but after the closure of <header> tag.
<section>
It is the main information bar that contains the most important information of the document and it can be created in different formats. For example, it can be divided into several blocks or columns.
For example, a Web site’s home page could be divided into sections for an introduction, news updates, and contact information.
Concepts
Session
Creating Navigational Aids and Division-Based Layout
Code Snippet 7 demonstrates the use of <section> tag.
Code Snippet :
<body>
<header>
<h1>Sample Blog </h1>
</header>
<nav>
<ul>
<li> home </li>
<li> help </li>
<li> contact </li>
</ul>
</nav>
<section>
<h1>Links</h1>
<ul>
<li><a href=”#”>Link 1</a></li>
<li><a href=”#”>Link 2</a></li>
<li><a href=”#”>Link 3</a></li>
</ul>
</section>
</body>
Similar to the navigation bar, the main information bar is a separate section.
Therefore, the main information bar appears after the </nav> closing tag.
<aside>
The <aside> element is a column or a section that generally contains data linked to the main information but not as relevant or important as the main information.
This element is used for typographical effects, such as for sidebars, for groups of nav elements, for advertising purposes, and for other content that cannot form a part of the main content of the page.
Concepts
Session
Creating Navigational Aids and Division-Based Layout Code Snippet 8 demonstrates the use of <aside> tag.
Code Snippet :
<!DOCTYPE html>
<html lang=”en”>
<body>
<header>
<h1>Sample Blog </h1>
</header>
<li><a href=”#”>Link 1</a></li>
<li><a href=”#”>Link 2</a></li>
<li><a href=”#”>Link 3</a></li>
</ul>
</section>
<aside>
<blockquote>Archive Number One</blockquote> <br>
<blockquote>Archive Number Two</blockquote>
</aside>
</body>
</html>
The <aside> element can be placed in any part of the site layout. It can also be used in any way as long as the content is not considered as the main content of the
Concepts
Session
Creating Navigational Aids and Division-Based Layout Figure 8.2 shows output of Code Snippet 8.
Figure 8.2: Output of Code Snippet 8
<footer>
HTML5 provides the <footer> element to give an end to the document’s body. A footer typically contains information about the sections. This can include the author or company details, links to related documents, copyright data, and so on.
Code Snippet 9 demonstrates the use of <footer> tag.
Code Snippet 9:
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8”>
</head>
Concepts
Session
Creating Navigational Aids and Division-Based Layout
<body>
<header>
<h1>Sample Blog </h1>
</header>
<nav>
<ul>
<li> home </li>
<li> help </li>
<li> contact </li>
</ul>
</nav>
<section>
<h1>Links</h1>
<ul>
<li><a href=”#”>Link 1</a></li>
<li><a href=”#”>Link 2</a></li>
<li><a href=”#”>Link 3</a></li>
</ul>
</section>
<aside>
<blockquote>Archive Number One</blockquote> <br>
<blockquote>Archive Number Two</blockquote>
</aside>
<footer>
Copyright © 2012-2013 </footer>
</body>
</html>
Usually, the <footer> element represents the end of the body section. However, the <footer> tag can be used many times inside the body to represent the end of different sections.
Concepts
Session
Creating Navigational Aids and Division-Based Layout Figure 8.3 shows output of Code Snippet 9.
Figure 8.3 Output of Code Snippet 9
<article>
The <article> element helps to insert a self-contained composition in an application, page, document, or site. For example, an <article> element could be an interactive widget, an entry in a blog, an article in a newspaper or magazine, a post in a forum, a comment submitted by a user, or any other independent content.
Concepts
Session
Creating Navigational Aids and Division-Based Layout Code Snippet 10 demonstrates the code for <article> tag.
Code Snippet 10:
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8”>
</head>
<body>
<header>
<h1>Sample Blog </h1>
</header>
<nav>
<ul>
<li> home </li>
<li> help </li>
<li> contact </li>
</ul>
Second Blog entry
</article>
</section>
<aside>
<blockquote>Archive Number One</blockquote>
<blockquote>Archive Number Two</blockquote>
</aside>
<footer>
Concepts
Session
Creating Navigational Aids and Division-Based Layout
Copyright © 2012-2013 </footer>
</body>
</html>
In the code, the <article> tags are placed within the <section> tags. This indicates that the <article> tag belongs to this section. The <article> tags are placed individually one after another, because each one is an independent part of the <section>.
Figure 8.4 shows output of Code Snippet 10.
Figure 8.4: Output of Code Snippet 10
Concepts
Session
Creating Navigational Aids and Division-Based Layout Figure 8.5 shows the new layout, after adding the <article> tag.
Figure 8.5: New Layout after Adding the <article> tag
The content of every <article> element has its own independent structure.