Module1.pdf
Document Details
Tags
Full Transcript
â€LEA‬ L†EARNING MODULE NO. 1‬ â€Title‬ â€1. HTML5 and CSS3‬ T†opic‬ â€.1 HTML5 Elements, HTML5 Forms, CSS3‬ 1 â€Time Frame‬ â€10 hrs.‬ â€Introduction‬ â€This module will introdu...
â€LEA‬ L†EARNING MODULE NO. 1‬ â€Title‬ â€1. HTML5 and CSS3‬ T†opic‬ â€.1 HTML5 Elements, HTML5 Forms, CSS3‬ 1 â€Time Frame‬ â€10 hrs.‬ â€Introduction‬ â€This module will introduce some basic terminology and lay the groundwork‬ â€for the course. Discussion on the introduction of HTML5 and its basic‬ â€applications with CSS3 structures.‬ â€Objectives‬ â€At the end of this session, the students will be able to:‬ â€1.‬ â€Explain concept of designing a web page‬ â€2.‬ â€Familiarize the basics of HTML5.‬ â€3.‬ â€Describe the HTML page structure.‬ â€4.‬ â€Familiarize the basics of CSS3‬ L†earning Activities‬ â€HTML is the standard markup language for Web pages.‬ â€With HTML you can create your own Website.‬ †hat is HTML?‬ W â€HTML stands for Hyper Text Markup Language‬ â€HTML is the standard markup language for creating Web pages‬ â€HTML describes the structure of a Web page‬ â€HTML consists of a series of elements‬ â€HTML elements tell the browser how to display the content‬ â€HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link",‬ â€etc.‬ â€A Simple HTML Document‬ ‬ †‬ †‬ ††â€P ‬age Title‬ ‬ †‬ †‬ †â€â€¬ ‬ †My First Heading‬ †‬ ††â€M ‬y first paragraph.‬ ‬ †â€â€¬ ‬ †‬ †â€Example Explained‬ â€â€¬ â€The †‬ !DOCTYPE html>‬ < â€declaration defines that this‬â€document is an HTML5‬ â€document‬ â€â€¬ T †he †‬ html>‬ < â€element is the root element of an HTML‬â€page‬ â€â€¬ â€The †‬ head>‬ < â€element contains meta information about‬â€the HTML page‬ â€â€¬ â€The ‬ †â€element specifies a title for the HTML‬â€page (which is shown in‬ â€the browser's title bar or in the page's tab)‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 1‬ â€LEA‬ â€â€¬ â€The †‬ body>‬ < â€element defines the document's body, and‬â€is a container for all‬ t†he visible contents, such as headings, paragraphs, images, hyperlinks,‬ â€tables, lists, etc.‬ â€â€¬ â€The †‬ h1>‬ < â€element defines a large heading‬ †‬ â€The †‬ p>‬ < â€element defines a paragraph‬ â€What is an HTML Element?‬ †n HTML element is defined by a start tag, some content, and an end tag:‬ A â€â€C ‬ ontent goes here...‬â€â€¬ â€The HTML ‬â€element‬â€is everything from the start tag‬â€to the end tag:‬ â€â€M ‬ y First Heading‬â€â€¬ †‬ ‬â€My first paragraph.‬â€â€¬ â€Web Browsers‬ †he purpose of a web browser (Chrome, Edge, Firefox, Safari) is to read HTML‬ T â€documents and display them correctly.‬ â€A browser does not display the HTML tags, but uses them to determine how to‬ â€display the document:‬ â€HTML Page Structure‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 2‬ â€LEA‬ â€Below is a visualization of an HTML page structure:‬ â€HTML History‬ †ince the early days of the World Wide Web, there have been many versions of‬ S â€HTML:‬ â€Yea‬ â€Version‬ â€r‬ â€198‬ â€Tim Berners-Lee invented www‬ â€9‬ â€199‬ â€Tim Berners-Lee invented HTML‬ â€1‬ â€199‬ â€Dave Raggett drafted HTML+‬ â€3‬ â€199‬ â€HTML Working Group defined HTML 2.0‬ â€5‬ â€199‬ â€W3C Recommendation: HTML 3.2‬ â€7‬ â€199‬ â€W3C Recommendation: HTML 4.01‬ â€9‬ â€200‬ â€W3C Recommendation: XHTML 1.0‬ â€0‬ â€200‬ â€WHATWG HTML5 First Public Draft‬ â€8‬ â€201‬ â€WHATWG HTML5 Living Standard‬ â€2‬ â€201‬ â€W3C Recommendation: HTML5‬ â€4‬ â€201‬ â€W3C Candidate Recommendation: HTML 5.1‬ â€6‬ â€201‬ â€W3C Recommendation: HTML5.1 2nd‬ â€7‬ â€Edition‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 3‬ â€LEA‬ â€201‬ â€W3C Recommendation: HTML5.2‬ â€7‬ â€HTML Editors‬ â€A simple text editor is all you need to learn HTML.‬ â€Learn HTML Using Notepad or TextEdit‬ †eb pages can be created and modified by using professional HTML editors.‬ W â€However, for learning HTML we recommend a simple text editor like Notepad (PC)‬ â€or TextEdit (Mac).‬ â€We believe in that using a simple text editor is a good way to learn HTML.‬ â€Follow the steps below to create your first web page with Notepad or TextEdit.‬ â€Step 1: Open Notepad (PC)‬ â€Windows 8 or later:‬ †pen the ‬â€Start Screen‬â€(the window symbol at the bottom‬â€left on your screen).‬ O â€Type ‬â€Notepad‬â€.‬ â€Windows 7 or earlier:‬ â€Open â€S ‬ tart‬â€>‬â€Programs >‬â€â€A ‬ ccessories >‬â€â€N ‬ otepad‬ â€Step 1: Open TextEdit (Mac)‬ â€Open â€F ‬ inder > Applications > TextEdit‬ †lso change some preferences to get the application to save files‬ A â€correctly. In ‬â€Preferences > Format > â€c ‬ hoose‬â€"Plain‬â€Text"‬ †hen under "Open and Save", check the box that says "Display HTML files as HTML‬ T â€code instead of formatted text".‬ â€Then open a new document to place the code.‬ â€Step 2: Write Some HTML‬ â€Write or copy the following HTML code into Notepad:‬ â€â€¬ ‬ †‬ †â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 4‬ â€LEA‬ ‬ †‬ â€My First Heading‬ †‬ †‬ â€My first paragraph.‬ †‬ †â€â€¬ ‬ †‬ †â€Step 3: Save the HTML Page‬ â€Save the file on your computer. Select â€F ‬ ile > Save‬â€as‬â€in the Notepad menu.‬ †ame the file ‬â€"index.htm"‬â€and set the encoding to ‬â€UTF-8‬â€(which‬â€is the preferred‬ N â€encoding for HTML files).‬ †ip:‬â€You can use either.htm or.html as file extension.‬â€There is no difference, it is‬ T â€up to you.‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 5‬ â€LEA‬ â€Step 4: View the HTML Page in Your Browser‬ †pen the saved HTML file in your favorite browser (double click on the file, or‬ O â€right-click - and choose "Open with").‬ â€The result will look much like this:‬ â€W3Schools Online Editor - "Try it Yourself"‬ †ith our free online editor, you can edit the HTML code and view the result in your‬ W â€browser.‬ I†t is the perfect tool when you want to ‬â€test‬â€code‬â€fast. It also has color coding and‬ â€the ability to save and share code with others:‬ â€Example‬ â€â€¬ ‬ †‬ †‬ †‬ â€Page Title‬ †‬ †‬ †‬ †â€â€¬ ‬ â€This is a Heading‬ †‬ †‬ â€This is a paragraph.‬ †‬ †â€â€¬ ‬ †‬ †â€https://www.w3schools.com/html/html_editors.asp‬ â€HTML Basic Examples‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 6‬ â€LEA‬ â€HTML Documents‬ †ll HTML documents must start with a document type declaration: †A ‬ !DOCTYPE html>‬ < â€.‬ â€The HTML document itself begins with â€â€¬ html>‬ < â€and ends‬â€with †‬ /html>‬ < â€.‬ â€The visible part of the HTML document is between †‬ body>‬ < â€and ‬â€â€¬ â€.‬ â€Example‬ â€â€¬ ‬ †‬ †‬ †â€â€¬ ‬ â€My First Heading‬ †‬ †‬ â€My first paragraph.‬ †‬ †â€â€¬ ‬ †‬ †â€The Declaration‬ †he ‬†T â€declaration represents the document‬â€type, and helps browsers to‬ ‬ â€display web pages correctly.‬ â€It must only appear once, at the top of the page (before any HTML tags).‬ â€The ‬†â€declaration is not case sensitive.‬ ‬ â€The ‬†â€declaration for HTML5 is:‬ ‬ ‬ †â€HTML Headings‬ †TML headings are defined with the ‬†H â€to ‬†‬ â€tags.‬ ‬ ‬ †â€defines the most important heading. ‬†‬â€defines‬â€the least important‬ â€heading: ‬ â€Example‬ â€â€¬ ‬ â€This is heading 1‬ †‬ †‬ â€This is heading 2‬ †‬ †‬ â€This is heading 3‬ †‬ †â€HTML Paragraphs‬ â€HTML paragraphs are defined with the †‬ p>‬ < â€tag:‬ â€Example‬ â€â€¬ ‬ â€This is a paragraph.‬ †‬ †‬ â€This is another paragraph.‬ †‬ †â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 7‬ â€LEA‬ â€HTML Links‬ â€HTML links are defined with the ‬†â€tag:‬ ‬ â€Example‬ â€â€¬ < a‬ â€â€href‬="https://www.w3schools.com">‬ †This is a link‬ †‬ †â€The link's destination is specified in the †‬ ref‬ h â€attribute. ‬ â€Attributes are used to provide additional information about HTML elements.‬ â€You will learn more about attributes in the succeeding module.‬ â€HTML Images‬ †TML images are defined with the ‬†H ‬ â€tag.‬ â€The source file (‬†â€), alternative text (‬†src‬ alt‬â€), ‬†â€,‬â€and †width‬ ‬ eight‬ h â€are provided as‬ â€attributes:‬ â€Example‬ ‬ †â€How to View HTML Source?‬ â€Have you ever seen a Web page and wondered "Hey! How did they do that?"‬ â€View HTML Source Code:‬ †ight-click in an HTML page and select "View Page Source" (in Chrome) or "View‬ R â€Source" (in Edge), or similar in other browsers. This will open a window containing‬ â€the HTML source code of the page.‬ â€Inspect an HTML Element:‬ †ight-click on an element (or a blank area), and choose "Inspect" or "Inspect‬ R â€Element" to see what elements are made up of (you will see both the HTML and the‬ â€CSS). You can also edit the HTML or CSS on-the-fly in the Elements or Styles panel‬ â€that opens.‬ â€https://www.w3schools.com/html/html_basic.asp‬ â€HTML Elements‬ â€An HTML element is defined by a start tag, some content, and an end tag.‬ â€An HTML element is defined by a start tag, some content, and an end tag:‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 8‬ â€LEA‬ â€â€C ‬ ontent goes here...‬â€â€¬ â€The HTML ‬â€element‬â€is everything from the start tag‬â€to the end tag:‬ †‬â€h1‬â€>â€M < ‬ y First Heading‬â€â€¬ †‬ ‬â€My first paragraph.‬â€â€¬ â€Start tag‬ â€Element content‬ â€End tag‬ â€â€¬ â€My First Heading‬ â€â€¬ â€â€¬ â€My first paragraph.‬ â€â€¬ â€â€¬ â€none‬ â€none‬ †ote:‬â€Some HTML elements have no content (like the‬†element). These‬ N â€elements are called empty elements. Empty elements do not have an end tag!‬ â€Nested HTML Elements‬ †TML elements can be nested (this means that elements can contain other‬ H â€elements).‬ â€All HTML documents consist of nested HTML elements.‬ â€The following example contains four HTML elements (‬†â€, ‬†‬ â€, †‬ ‬ h1>‬ < â€and †‬ p>‬ < â€):‬ â€Example‬ â€â€¬ ‬ †‬ †‬ †â€â€¬ ‬ â€My First Heading‬ †‬ †‬ â€My first paragraph.‬ †‬ †â€â€¬ ‬ †‬ †â€Example Explained‬ †he ‬†T ‬â€element is the root element and it defines‬â€the whole HTML document.‬ â€It has a start tag ‬†â€and an end tag ‬†‬ ‬â€.‬ â€Then, inside the †‬ html>‬ < â€element there is a †‬ body>‬ < â€element:‬ ‬ †‬ â€My First Heading‬ †‬ †â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 9‬ â€LEA‬ ‬ â€My first paragraph.‬ †‬ †‬ ††he ‬†T ‬â€element defines the document's body.‬ â€It has a start tag ‬†â€and an end tag ‬†‬ â€.‬ ‬ â€Then, inside the †‬ body>‬ < â€element there is two other‬â€elements: †‬ h1>‬ < â€and †‬ p>‬ < â€:‬ â€â€¬ ‬ â€My First Heading‬ †‬ †‬ â€My first paragraph.‬ †‬ ††he ‬†T â€element defines a heading.‬ ‬ â€It has a start tag ‬†â€and an end tag †‬ ‬ /h1>‬ < â€:‬ ‬ â€My First Heading‬ †‬ ††he ‬†T â€element defines a paragraph.‬ ‬ â€It has a start tag ‬†â€and an end tag ‬†‬ â€:‬ ‬ ‬ â€My first paragraph.‬ †‬ †â€Never Skip the End Tag‬ â€Some HTML elements will display correctly, even if you forget the end tag:‬ â€Example‬ â€â€¬ ‬ †‬ †â€â€¬ ‬ â€This is a paragraph‬ †‬ â€This is a paragraph‬ †â€â€¬ ‬ †‬ ††owever, never rely on this! Unexpected results and errors may occur if you forget‬ H â€the end tag!‬ â€Empty HTML Elements‬ â€HTML elements with no content are called empty elements.‬ â€The ‬†â€tag defines a line break, and is an empty‬â€element without a closing tag:‬ ‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 10‬ â€LEA‬ â€Example‬ ‬ â€This is a ††< ‬‬br‬ †>†â€â€¬paragraph with a line break.‬ ‬ †â€HTML is Not Case Sensitive‬ â€HTML tags are not case sensitive: †‬ P>‬ < â€means the same‬â€as ‬†â€.‬ ‬ †he HTML standard does not require lowercase tags, but‬ T â€W3C ‬â€recommends‬â€lowercase in HTML, and ‬â€demands‬â€lowercase‬â€for stricter‬ â€document types like XHTML.‬ â€At W3Schools we always use lowercase tag names.‬ â€HTML Tag Reference‬ †3Schools' tag reference contains additional information about these tags and their‬ W â€attributes.‬ â€Tag‬ â€Description‬ â€â€¬ â€Defines the root of an HTML document‬ â€â€¬ â€Defines the document's body‬ †to ‬ â€Defines HTML headings‬ â€For a complete list of all available HTML tags, visit our ‬â€HTML Tag Reference‬â€.‬ â€https://www.w3schools.com/html/html_elements.asp‬ â€HTML Attributes‬ â€HTML attributes provide additional information about HTML elements.‬ â€â€¬ †ll HTML elements can have ‬â€attributes‬ A â€â€¬ â€Attributes provide ‬â€additional information‬â€about elements‬ â€â€¬ â€Attributes are always specified in ‬â€the start tag‬ â€â€¬ â€Attributes usually come in name/value pairs like: ‬â€name="value"‬ â€The href Attribute‬ †he ‬†T â€tag defines a hyperlink. The †‬ ‬ ref‬ h â€attribute‬â€specifies the URL of the page‬ â€the link goes to:‬ â€Example‬ ‬ †Visit W3Schools‬ †‬ †â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 11‬ â€LEA‬ â€You will learn more about links in our â€H ‬ TML Links‬â€chapter‬â€.‬ â€The src Attribute‬ †he ‬†T ‬â€tag is used to embed an image in an HTML‬â€page. The ‬†â€attribute‬ src‬ â€specifies the path to the image to be displayed:‬ â€Example‬ ‬ †â€The width and height Attributes‬ †he ‬†T â€tag should also contain the †‬ ‬ idth‬ w â€and ‬†â€attributes,‬â€which specifies‬ height‬ â€the width and height of the image (in pixels):‬ â€Example‬ ‬ †â€The alt Attribute‬ †he required †T ‬ lt‬ a â€attribute for the â€â€¬ img>‬ < â€tag specifies‬â€an alternate text for an image,‬ â€if the image for some reason cannot be displayed. This can be due to slow‬ â€connection, or an error in the â€â€¬ rc‬ s â€attribute, or if‬â€the user uses a screen reader.‬ â€Example‬ ‬ †â€Example‬ â€See what happens if we try to display an image that does not exist:‬ ‬ †â€You will learn more about images in our ‬â€HTML Images‬â€chapter‬â€.‬ â€The style Attribute‬ †he ‬†T â€attribute is used to add styles to an element,‬â€such as color, font, size,‬ style‬ â€and more.‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 12‬ â€LEA‬ â€Example‬ ‬ †This is a red paragraph.‬ †‬ †â€You will learn more about styles in our â€H ‬ TML Styles‬â€chapter‬â€.‬ â€The lang Attribute‬ †ou should always include the ‬†Y â€attribute inside‬â€the †lang‬ ‬ html>‬ < â€tag, to declare the‬ â€language of the Web page. This is meant to assist search engines and browsers.‬ â€The following example specifies English as the language:‬ â€â€¬ ‬ †‬ †‬ â€...‬ †‬ †‬ ††ountry codes can also be added to the language code in the †C ‬ ang‬ l â€attribute. So, the‬ â€first two characters define the language of the HTML page, and the last two‬ â€characters define the country.‬ †he following example specifies English as the language and United States as the‬ T â€country:‬ â€â€¬ ‬ †‬ †‬ â€...‬ †‬ †‬ †â€You can see all the language codes in our â€H ‬ TML Language‬â€Code Reference‬â€.‬ â€The title Attribute‬ â€The ‬†â€attribute defines some extra information‬â€about an element.‬ title‬ †he value of the title attribute will be displayed as a tooltip when you mouse over‬ T â€the element:‬ â€Example‬ â€â€¬ < p‬ â€â€title‬ ="I'm a tooltip">‬ †This is a paragraph.‬ †‬ †â€Try it Yourself »‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 13‬ â€LEA‬ â€We Suggest: Always Use Lowercase Attributes‬ â€The HTML standard does not require lowercase attribute names.‬ †he title attribute (and all other attributes) can be written with uppercase or‬ T â€lowercase like â€t‬ itle‬â€or ‬â€TITLE‬â€.‬ †owever, W3C ‬â€recommends‬â€lowercase attributes in HTML,‬ H â€and ‬â€demands‬â€lowercase attributes for stricter document‬â€types like XHTML.‬ â€At W3Schools we always use lowercase attribute names.‬ â€We Suggest: Always Quote Attribute Values‬ â€The HTML standard does not require quotes around attribute values.‬ †owever, W3C ‬â€recommends‬â€quotes in HTML, and â€d H ‬ emands‬â€quotes‬â€for stricter‬ â€document types like XHTML.‬ â€Good:‬ ‬ †Visit our‬††HTML tutorial‬ ‬ †â€Bad:‬ ‬ †Visit our‬††HTML tutorial‬ ‬ ††ometimes you have to use quotes. This example will not display the title attribute‬ S â€correctly, because it contains a space:‬ â€Example‬ ‬ †â€At W3Schools we always use quotes around attribute values.‬ â€Single or Double Quotes?‬ †ouble quotes around attribute values are the most common in HTML, but single‬ D â€quotes can also be used.‬ I†n some situations, when the attribute value itself contains double quotes, it is‬ â€necessary to use single quotes:‬ ‬ †â€Or vice versa:‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 14‬ â€LEA‬ ‬ †â€Module Summary‬ â€â€¬ †ll HTML elements can have ‬â€attributes‬ A â€â€¬ â€The †‬ ref‬ h â€attribute of ‬â€â€¬â€specifies the URL of the‬â€page the link goes to‬ â€â€¬ â€The †‬ rc‬ s â€attribute of â€â€¬ img>‬ < â€specifies the path to the‬â€image to be displayed‬ â€â€¬ â€The †‬ idth‬ w â€and â€â€¬ eight‬ h â€attributes of ‬†‬â€provide size‬â€information for images‬ â€â€¬ â€The †‬ lt‬ a â€attribute of â€â€¬ img>‬ < â€provides an alternate text‬â€for an image‬ â€â€¬ â€The †‬ tyle‬ s â€attribute is used to add styles to an element,‬â€such as color, font,‬ â€size, and more‬ â€â€¬ â€The †‬ ang‬ l â€attribute of the †‬ html>‬ < â€tag declares the‬â€language of the Web page‬ †‬ â€The †‬ itle‬ t â€attribute defines some extra information‬â€about an element‬ â€HTML Exercises‬ â€Top of Form‬ est‬ â€Exercise:‬ â€Add a "tooltip" to the paragraph below with the text "About W3Schools".‬ W3Schools is a web developer's‬††site.‬ â€Bottom of Form‬ â€HTML Attribute Reference‬ †complete list of all attributes for each HTML element, is listed in our: ‬â€HTML‬ A â€Attribute Reference‬â€.‬ â€https://www.w3schools.com/html/html_attributes.asp‬ â€HTML Headings‬ â€HTML headings are titles or subtitles that you want to display on a webpage.‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 15‬ â€LEA‬ â€Example‬ â€Heading 1‬ â€Heading 2‬ â€Heading 3‬ â€Heading 4‬ â€Heading 5‬ â€Heading 6‬ â€Try it Yourself »‬ â€HTML Headings‬ â€HTML headings are defined with the ‬†â€to ‬†‬ â€tags.‬ ‬ â€defines the most important heading. ‬†‬ †â€defines‬â€the least important heading.‬ ‬ â€Example‬ â€â€¬ < h1‬ †>‬ †Heading 1‬ †‬ †‬ †Heading 2‬ †‬ †‬ †Heading 3‬ †‬ †‬ †Heading 4‬ †‬ †‬ †Heading 5‬ †‬ †‬ †Heading 6‬ †‬ †â€Try it Yourself »‬ †ote:‬â€Browsers automatically add some white space‬â€(a margin) before and after a‬ N â€heading.‬ â€Headings Are Important‬ †earch engines use the headings to index the structure and content of your web‬ S â€pages.‬ †sers often skim a page by its headings. It is important to use headings to show‬ U â€the document structure.‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 16‬ â€LEA‬ â€h1>‬ < â€headings should be used for main headings, followed‬â€by ‬†â€headings, then‬ ‬ â€the less important ‬†â€, and so on.‬ ‬ †ote:‬â€Use HTML headings for headings only. Don't use‬â€headings to make‬ N â€text ‬â€BIG‬â€or â€b ‬ old‬â€.‬ â€Bigger Headings‬ †ach HTML heading has a default size. However, you can specify the size for any‬ E â€heading with the ‬†â€attribute, using the CSS †style‬ ‬ ont-size‬ f â€property:‬ â€Example‬ ‬ †Heading 1‬ †‬ †â€HTML Exercises‬ â€Use the correct HTML tag to add a heading with the text "London".‬ â€p>London is the capital city of England. It is the most populous city in the‬ < United Kingdom, with a metropolitan area of over 13 million inhabitants.‬ †â€HTML Tag Reference‬ †3Schools' tag reference contains additional information about these tags and their‬ W â€attributes.‬ â€Tag‬ â€Description‬ â€â€¬ â€Defines the root of an HTML document‬ â€â€¬ â€Defines the document's body‬ †to ‬ â€Defines HTML headings‬ â€For a complete list of all available HTML tags, visit our ‬â€HTML Tag Reference‬â€.‬ â€https://www.w3schools.com/html/html_headings.asp‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 17‬ â€LEA‬ â€HTML Paragraphs‬ â€A paragraph always starts on a new line, and is usually a block of text.‬ â€The HTML ‬†â€element defines a paragraph.‬ ‬ †paragraph always starts on a new line, and browsers automatically add some‬ A â€white space (a margin) before and after a paragraph.‬ â€Example‬ â€â€¬ < p‬ â€>‬ â€This is a paragraph.‬ †‬ †‬ â€This is another paragraph.‬ †‬ †â€Try it Yourself »‬ â€HTML Display‬ â€You cannot be sure how HTML will be displayed.‬ â€Large or small screens, and resized windows will create different results.‬ †ith HTML, you cannot change the display by adding extra spaces or extra lines in‬ W â€your HTML code.‬ †he browser will automatically remove any extra spaces and lines when the page is‬ T â€displayed:‬ â€Example‬ â€â€¬ ‬ †This paragraph‬ †contains a lot of lines‬ †in the source code,‬ †but the browser‬ †ignores it.‬ †‬ †â€â€¬ < p‬ â€>‬ †This paragraph‬ †contains †a lot of spaces‬ in the source †code,‬ but the †browser‬ ignores it.‬ †‬ †â€Try it Yourself »‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 18‬ â€LEA‬ â€HTML Horizontal Rules‬ †he ‬†T â€tag defines a thematic break in an HTML page,‬â€and is most often‬ ‬ â€displayed as a horizontal rule.‬ †he ‬†T â€element is used to separate content (or define‬â€a change) in an HTML‬ ‬ â€page:‬ â€Example‬ â€â€¬ < h1‬ †>‬ †This is heading 1‬ †‬ †‬ â€This is some text.‬ †‬ †‬ †‬ †This is heading 2‬ †‬ †‬ â€This is some other text.‬ †‬ †‬ †â€Try it Yourself »‬ â€The ‬†â€tag is an empty tag, which means that it‬â€has no end tag.‬ ‬ â€HTML Line Breaks‬ â€The HTML ‬†â€element defines a line break.‬ ‬ â€Use ‬†â€if you want a line break (a new line) without‬â€starting a new paragraph:‬ ‬ â€Example‬ â€â€¬ < p‬ â€>‬ â€This is‬ †‬ †a paragraph‬ ††â€w ‬ith line breaks.‬ ‬ †â€Try it Yourself »‬ â€The ‬†â€tag is an empty tag, which means that it‬â€has no end tag.‬ ‬ â€The Poem Problem‬ â€This poem will display on a single line:‬ â€Example‬ â€â€¬ ‬ ††My Bonnie lies over the ocean.‬ †My Bonnie lies over the sea.‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 19‬ â€LEA‬ †My Bonnie lies over the ocean.‬ †Oh, bring back my Bonnie to me.‬ ‬ †â€Try it Yourself »‬ â€Solution - The HTML Element‬ â€The HTML ‬†â€element defines preformatted text.‬ ‬ †he text inside a †T ‬ pre>‬ < â€element is displayed in a‬â€fixed-width font (usually Courier),‬ â€and it preserves both spaces and line breaks:‬ â€Example‬ â€â€¬ ‬ ††My Bonnie lies over the ocean.‬ †My Bonnie lies over the sea.‬ †My Bonnie lies over the ocean.‬ †Oh, bring back my Bonnie to me.‬ ‬ †â€Try it Yourself »‬ â€HTML Exercises‬ â€Top of Form‬ â€Use the correct HTML tag to add a paragraph with the text "Hello World!".‬ â€html>‬ < ‬ †â€/body>‬ < ‬ †â€Submit Answer »‬ â€Bottom of Form‬ â€HTML Tag Reference‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 20‬ â€LEA‬ †3Schools' tag reference contains additional information about HTML elements and‬ W â€their attributes.‬ â€Tag‬ â€Description‬ â€â€¬ â€Defines a paragraph‬ â€â€¬ â€Defines a thematic change in the content‬ â€â€¬ â€Inserts a single line break‬ â€â€¬ â€Defines pre-formatted text‬ â€For a complete list of all available HTML tags, visit our ‬â€HTML Tag Reference‬â€.‬ â€https://www.w3schools.com/html/html_paragraphs.asp‬ â€HTML Styles‬ †he HTML ‬†T style‬ â€attribute is used to add styles to‬â€an element, such as color, font, size, and‬ â€more.‬ â€Example‬ â€I am Red‬ â€I am Blue‬ â€I am Big‬ â€Try it Yourself »‬ â€The HTML Style Attribute‬ â€Setting the style of an HTML element, can be done with the â€s‬ tyle‬â€attribute.‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 21‬ â€LEA‬ â€The HTML ‬â€style‬â€attribute has the following syntax:‬ ‬ †â€The ‬â€property‬â€is a CSS property. The ‬â€value‬â€is a CSS‬â€value.‬ â€You will learn more about CSS later in this tutorial.‬ â€Background Color‬ â€The CSS â€b‬ ackground-color‬â€property defines the background‬â€color for an HTML element.‬ â€Example‬ â€Set the background color for a page to powderblue:‬ ‬ †â€â€ †â€T ‬his is a heading‬ ‬ ††â€T ‬his is a paragraph.‬ ‬ †â€â€ < / ‬body‬ >‬ †â€Try it Yourself »‬ â€Example‬ â€Set background color for two different elements:‬ ‬ †â€â€ ‬ †This is a‬††heading‬‬ †‬ †This is a paragraph.‬ †‬ †â€â€ < / ‬body‬ >‬ †â€Try it Yourself »‬ â€Text Color‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 22‬ â€LEA‬ â€The CSS â€c‬ olor‬â€property defines the text color for‬â€an HTML element:‬ â€Example‬ â€â€ < h ‬1‬ â€style‬ ="color:blue;">‬ †This is a heading‬ †‬ †‬ †This is a paragraph.‬ †‬ †â€Try it Yourself »‬ â€Fonts‬ â€The CSS â€f‬ ont-family‬â€property defines the font to be‬â€used for an HTML element:‬ â€Example‬ â€â€ < h ‬1‬ â€style‬ ="font-family:verdana;">‬ †This is a heading‬ †‬ †‬ †This is a paragraph.‬ †‬ †â€Try it Yourself »‬ â€Text Size‬ â€The CSS â€f‬ ont-size‬â€property defines the text size for‬â€an HTML element:‬ â€Example‬ â€â€ < h ‬1‬ â€style‬ ="font-size:300%;">‬ †This is a heading‬ †‬ †‬ †This is a paragraph.‬ †‬ †â€Try it Yourself »‬ â€Text Alignment‬ â€The CSS â€t‬ ext-align‬â€property defines the horizontal‬â€text alignment for an HTML element:‬ â€Example‬ â€â€ < h ‬1‬ â€style‬ ="text-align:center;">‬ †Centered Heading‬ †‬ †‬ †Centered paragraph.‬ †‬ †â€Try it Yourself »‬ â€Summary‬ â€â€¬ â€Use the †‬ tyle‬ s â€attribute for styling HTML elements‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 23‬ â€LEA‬ â€â€¬ †se †U ‬ ackground-color‬ b â€for background color‬ â€â€¬ â€Use †‬ olor‬ c â€for text colors‬ â€â€¬ â€Use †‬ ont-family‬ f â€for text fonts‬ â€â€¬ â€Use â€â€¬ ont-size‬ f â€for text sizes‬ â€â€¬ â€Use †‬ ext-align‬ t â€for text alignment‬ â€HTML Exercises‬ â€Top of Form‬ â€Use the correct HTML attribute, and CSS, to set the color of the paragraph to "blue".‬ This is a paragraph.‬ †â€https://www.w3schools.com/html/html_styles.asp‬ â€HTML Text Formatting‬ â€HTML contains several elements for defining text with a special meaning.‬ â€Example‬ â€This text is bold‬ â€This text is italic‬ â€This is‬â€subscript‬â€and ‬â€superscript‬ â€Try it Yourself »‬ â€HTML Formatting Elements‬ â€Formatting elements were designed to display special types of text:‬ â€â€¬ < â€- Bold text‬ â€b>‬ â€â€¬ ‬ †â€- Important text‬ â€â€¬ †â€- Italic text‬ ‬ â€â€¬ †â€- Emphasized text‬ ‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 24‬ â€LEA‬ â€â€¬ < â€- Marked text‬ â€mark>‬ â€â€¬ ‬ †â€- Smaller text‬ â€â€¬ †â€- Deleted text‬ ‬ â€â€¬ †â€- Inserted text‬ ‬ â€â€¬ †â€- Subscript text‬ ‬ â€â€¬ †â€- Superscript text‬ ‬ â€HTML and Elements‬ â€The HTML †‬ b>‬ < â€element defines bold text, without any‬â€extra importance.‬ â€Example‬ â€â€ < b ‬‬ >†â€T ‬his text is bold‬ ‬ †â€Try it Yourself »‬ †he HTML †T ‬ strong>‬ < â€element defines text with strong‬â€importance. The content‬ â€inside is typically displayed in bold.‬ â€Example‬ â€â€ < s ‬trong‬ >‬ â€This text is important!‬ †‬ †â€Try it Yourself »‬ â€HTML and Elements‬ †he HTML †T ‬ i>‬ < â€element defines a part of text in an‬â€alternate voice or mood. The‬ â€content inside is typically displayed in italic.‬ †ip:‬â€The †T ‬ i>‬ < â€tag is often used to indicate a technical‬â€term, a phrase from‬ â€another language, a thought, a ship name, etc.‬ â€Example‬ â€â€ < i ‬‬ >†â€T ‬his text is italic‬ ‬ †â€Try it Yourself »‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 25‬ â€LEA‬ †he HTML †T ‬ em>‬ < â€element defines emphasized text. The‬â€content inside is typically‬ â€displayed in italic.‬ †ip:‬â€A screen reader will pronounce the words in †T ‬ em>‬ < â€with‬â€an emphasis, using‬ â€verbal stress.‬ â€Example‬ â€â€ < e ‬m‬ >††T ‬his text is emphasized‬ ‬ †â€Try it Yourself »‬ â€HTML Element‬ â€The HTML †‬ small>‬ < â€element defines smaller text:‬ â€Example‬ â€â€ < s ‬mall‬ >†â€T ‬his is some smaller text.‬ ‬ †â€Try it Yourself »‬ â€HTML Element‬ â€The HTML †‬ mark>‬ < â€element defines text that should be‬â€marked or highlighted:‬ â€Example‬ â€â€ < p ‬‬ >†â€D ‬o not forget to buy ‬ ‬ â€milk‬ †‬ â€â€today.‬ ‬ †â€Try it Yourself »‬ â€HTML Element‬ †he HTML †T ‬ del>‬ < â€element defines text that has been‬â€deleted from a document.‬ â€Browsers will usually strike a line through deleted text:‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 26‬ â€LEA‬ â€Example‬ â€â€ < p ‬‬ >†â€M ‬y favorite color is ‬ ‬ â€blue‬ †‬ â€â€red.‬ ‬ †â€Try it Yourself »‬ â€HTML Element‬ †he HTML †T ‬ ins>‬ < â€element defines a text that has been‬â€inserted into a document.‬ â€Browsers will usually underline inserted text:‬ â€Example‬ â€â€ < p ‬‬ >†â€M ‬y favorite color is ‬ ‬ â€blue‬ †‬ â€â€â€ < ‬‬ ins‬ †>‬ â€red‬ †‬ â€.‬ †‬ †â€Try it Yourself »‬ â€HTML Element‬ †he HTML †T ‬ sub>‬ < â€element defines subscript text. Subscript‬â€text appears half a‬ â€character below the normal line, and is sometimes rendered in a smaller font.‬ â€Subscript text can be used for chemical formulas, like H‬â€2‬â€O:‬ â€Example‬ â€â€ < p ‬‬ >†â€T ‬his is †< ‬‬ sub‬ †>‬ â€subscripted‬ †‬ â€â€text.‬ ‬ †â€Try it Yourself »‬ â€HTML Element‬ †he HTML †T ‬ sup>‬ < â€element defines superscript text. Superscript‬â€text appears half‬ â€a character above the normal line, and is sometimes rendered in a smaller font.‬ â€Superscript text can be used for footnotes, like WWW‬â€â€¬â€:‬ â€Example‬ â€â€ < p ‬‬ >†â€T ‬his is †< ‬‬ sup‬ †>‬ â€superscripted‬ †‬ â€â€text.‬ ‬ †â€Try it Yourself »‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 27‬ â€LEA‬ â€HTML Exercises‬ â€Add extra importance to the word "degradation" in the paragraph below.‬ ‬ †â€WF's mission is to stop the ‬ W degradation‬ †â€of our‬ planet's natural environment.‬ †‬ †â€HTML Text Formatting Elements‬ â€Tag‬ â€Description‬ â€â€¬ â€Defines bold text‬ â€â€¬ â€Defines emphasized text ‬ â€â€¬ â€Defines a part of text in an alternate voice or mood‬ â€â€¬ â€Defines smaller text‬ â€â€¬ â€Defines important text‬ â€â€¬ â€Defines subscripted text‬ â€â€¬ â€Defines superscripted text‬ â€â€¬ â€Defines inserted text‬ â€â€¬ â€Defines deleted text‬ â€â€¬ â€Defines marked/highlighted text‬ â€For a complete list of all available HTML tags, visit our â€H ‬ TML Tag Reference‬â€.‬ â€https://www.w3schools.com/html/html_formatting.asp‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 28‬ â€LEA‬ †TML Quotation and Citation Elements‬ H â€https://www.w3schools.com/html/html_quotation_elements.asp‬ â€HTML Comments‬â€https://www.w3schools.com/html/html_comments.asp‬ â€HTML Colors‬â€https://www.w3schools.com/html/html_colors.asp‬ â€HTML RGB and RGBA Colors‬â€https://www.w3schools.com/html/html_colors_rgb.asp‬ â€HTML HEX Colors‬â€https://www.w3schools.com/html/html_colors_hex.asp‬ â€HTML HSL and HSLA Colors‬â€https://www.w3schools.com/html/html_colors_hsl.asp‬ â€HTML Styles – CSS‬â€https://www.w3schools.com/html/html_css.asp‬ â€HTML Links‬â€https://www.w3schools.com/html/html_links.asp‬ â€HTML Links - Different Colors‬â€https://www.w3schools.com/html/html_links_colors.asp‬ â€HTML Links - Create Bookmarks‬â€https://www.w3schools.com/html/html_links_bookmarks.asp‬ â€HTML Images‬â€https://www.w3schools.com/html/html_images.asp‬ â€HTML Image Maps‬â€https://www.w3schools.com/html/html_images_imagemap.asp‬ â€HTML Background Images‬â€https://www.w3schools.com/html/html_images_background.asp‬ â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 29‬ â€LEA‬ L†EARNING MODULE NO. 2‬ â€Title‬ â€HTML FORMS, GRAPHICS‬ â€Topic‬ †TML Form Elements, Input Types, Input Attributes, HTML‬ H â€Graphics Canvas & SVG‬ T†ime Frame‬ â€10 hrs.‬ â€Introduction‬ â€This module will introduce some html forms and graphics.‬ â€Objectives‬ â€At the end of this session, the students will be able to:‬ â€1.‬ â€Explain concept of html forms and graphics‬ â€2.‬ â€Familiarize the html form elements, type and attributes‬ â€3.‬ â€Describe the HTML graphics canvas and SVG‬ â€Learning Activities‬ â€HTML Forms‬ †n HTML form is used to collect user input. The user input is most often sent‬ A â€to a server for processing.‬ â€The Element‬ â€The HTML‬†‬â€element is used to create an HTML‬â€form for user input:‬ â€â€ ‬ â€.‬ †form elements‬ â€.‬ †‬ †â€IT 413 – WEB SYSTEMS AND TECHNOLOGIES‬ â€RACABAÑERO 30‬