Cloud R. Cert Prep
I remember that HTML stands for, "Hypertext Markup Language." It is a language used for creating web pages (CSS included too!). HTML Elements are a piece of a website, marked by a start tag and often closed with an end tag. HTML Tags are The special set of characters that indicates the start and end of an HTML element and that element's type.
What I have learned in each Domain:
DOMAIN 1 (HTML Fundementals):
To start off, HTML is a "markup language." HTML defines document structure. In this domain, I learn how to markup text using HTML Tags, and learning what these Tags can do. Be sure to remember that ALL tags start with an "<_____>" (the empty space is the specific tag you are putting within the angle brackets), and (Be sure to note some tags do not need to end with the name of the specific tag you are using! You just need to finish it off with a "/>") ends with a "</_____>." Take for example a "Body" tag, you start of with a "<body>" tag, but at the end, you finish it off with a "</body>" tag.
Specific HTML Tags:
- The "<!DOCTYPE html>" tag, simply indicates that this an HTML-5 document. This is the typical doctype declaration you'll normally see.
- The "html" tag, indicates that anything from the opening HTML tag to the closing of the HTML tag, is the HTML code that makes up your web page.
- The "Script" tag is a tag that will hold programming scripts.
- The "No Script" (noscript) tag, let's users know if their browser does not support the programming language we are trying to use.
- The "Head" tag, contains information that describes a web page, BUT does not necessarily show on a web page. The two most common pieces of information in the head tag, besides meta information, are scripts and titles.
- The "p" tag, develops paragraphs within the body of your web page. With this tag, you simply can type out sentences that you want to be displayed on your browser.
- The "Body" tag, contains information that will show ON a web page.
- The "Title" tag, is what the title for your Window Tab (or name of your website/browser) will be displayed as.
- The "Link" tag, allows us to link to external files, such as style sheets & scripts. These are links used to accentuate the current page. Its good to note that links go IN the head section, this is due to how they do not actually display on the web page.
- The "Meta" tag, defines metadata about an HTML file.
- A common use for the Meta tag is to use "keywords." Keywords are often picked up by search engines to search results for search engines.
- With using a Meta tag and including a "Description" setting within this tag, it adds a line that a search engine will display as a description.
- The Meta tag can also be used with a vieport setting, this setting tells a browser on how to render a website across devices. By setting your Content = to "width=device-witdh, initial-scale=1.0" you are telling the content to fit a device's width with a default scale of 1.0/normal size.
- You may not want a web page to not be translated by a translator, take Google translate as an example, you will then enter the no translate setting to where name="google" and content="notranslate"
Other Useful Facts:
Every "/" at the end always indicates that you are closing that specific tag.
Your "Title" in the heading of your HTML displays as the title on the Window Tab (basically the website name). Without it, the title on the Window Tab will just be labeled as, "Untitled." That is how your page will show up in a search engine.
Metadata is often describes as data describing data. Metadata can include things such as character types, keywords to help with search engines, & provide ways in which different device types should render web pages.
The character set, "UTF-8" is a unicode set that supports characters 1 to 4 bytes long, and is the default setting for HTML-5 as it supports all basic characters. If you were to have a website that has Latin, Cyrilic or Chinese characters, you would want to use the "UTF-16" character set.
In HTML code, most tags (as I've said before) have an opening and closing tag, a few tags however do not technically need closing tags. These tags are known as "Void Elements" in that, they are self-contained (or in some cases, contain no data at all). To determine which tags are Void Elements, let's use the Title tag as an example, you can see how the Title tag has a "<title>" at the start, and ends with a "</title>" meaning you are telling the browser that you are done with the Title. However, with the Meta tag, you can see how it starts off with a "<meta" and ends with only just a "/>" this is a clear distinction on how you can tell the difference between a regular tag and a Void Element.
An "Entity" is little pieces of HTML code that display symbols and characters.
With building web pages, sometimes I may often want to put placeholders for text that will need to be added later. Another way to explain this is how sometimes, I may just want to put explanations in for parts of a web page that do not display in a browser, but will show in your text editor. This is what's called a "Comment." This will help in any collaborative efforts in building a website. To creat a comment, start with this, "<!--" and end with a "-->" comments can also take up multiple lines too.
HTML's Symbols and Entities:
(just get rid of the spacing in each Symbol) Symbol:
- "& lt ;"
- "& gt ;"
- "& amp ;"
- "& copy ;"
- "& nbsp ;"
- "& quot ;"
Entity:
- Less than symbol (<)
- Greater than symbol (>)
- Ampersand (&)
- Copyright (©)
- Nonbreaking space
- Double quotation (")
Remember the big 4 every HTML file is: DOCTYPE, HTML, Head, & Body.
DOMAIN 2 (CSS Fundementals):
CSS, are also known as "Cascading Style Sheets." CSS define document formats. In this Domain, I learn the use of CSS, and what it can do. CSS is a computer language for laying out and structuring web pages (HTML).
The best practice for style sheets:
- Use external style sheets as much as possible to keep consistency within a website.
- To vary the formatting on an individual page, use an internal style sheet.
- Inline styles should be used very sparingly, only when that formatting will not be used again. Otherwise, you will have to repeat that style if you use it someplace else, and that can lead to inconsistencies within formatting.
The 3 Different Style Sheets for Web Pages:
- External Style Sheet
- A style sheet is created as a separate file and then applied to some pages in a website.
- Internal Style Sheet
- A style sheet is created for and applied to a single web page.
- Inline Style Sheet
- A style is applied directly to an HTML tag on a page.
Specific CSS Tags/Rules:
- The "Body" tag, is what wraps all the visible content on a web page, it is what styles the body of all the contents of an HTML document! Using this tag tells the browser what HTML element you want to style, in this case, the body.
- Here, you can style your body with different fonts with using the "font-family" property.
- The "p" tag, is what wraps all the visible content that only applies to the "p" HTML tags back on the HTML file. Rather than the Body tag, you are rather styling only the "p" tags specifically (also known as paragraphs).
- With the "p" tag, you can style the paragraphs with a different color by using the "color" property.
CSS Styles/Properties:
- The "font-family" property, is what changes the font on your browser/website.
- The "background-color" property, is what changes the background color of your browser/website (can also be used for text, its like a highlighter as a background for your text!). If you don't really change it, the background remains white as default.
- The "color" property, is what changes the color of your text (or anything else that you apply it to) that is displayed on your browser/website.
- The "font-weight" property, sets how thick or thin characters in the text within your browser/website should be displayed. Values like Bold, normal, or bolder can be used.
- The "text-weight" property, is used to set the appearance of decorative lines on text.
Other Ways to Create Styles:
- A "Class" is a style that can be applied to any tag at any time. All Classes start with a "." and can be named anything, as long as it is valid. You just cannot have spaces in the name. A Class can be used as many times as you want. External style sheets are made in the Head.
- A "ID" is a selector that's similar to a class, with one exception. It should be use just once per page. All ID's start with a "#" (or pound symbol as what it is called) and can be named anything. First, any scripts used to enhance an HTML element will refer to the element by ID. Secondly, IDs can be added to CSS files and then used in a similar fashion as are classes.
- A "Pseudo Class" is a class that applies specifically to a tag. For example the "a" tag has several Pseudo Classes which include "visited" which allows us to format a hyperlink that has been visited, "Active" which formats a hyperlink being clicked, and "Hover" which formats the hyperlink when a mouse hovers over it.
New HTML Tags I learned:
- The "Style" tag, defines the style information for an HTML document. It is placed within the "Head" section of the HTML code. This tag is used specifically for Internal style sheets.
- The "Span" tag, is an inline container used to mark up a part of a text or document. It is often used to apply styles or manipulate specific parts of the content with JavaScript. You can apply a "Class" within your Span tag.
- The "b" or "Strong" tag, is what makes your text bold in your web page.
- The "a" tag, otherwise known as the "Anchor Element" creates a hyperlink to web pages, files, email addresses, locations in the same page, or anythig else a URL can address.
As when to use each style sheet, we need to understand the cascading part of cascading style sheets (CSS).
When creating and applying an external style sheet, you click on create a new file, name it however you want, but be sure to end the name with a ".css" that way, the program knows you are wanting to create a CSS file specifically. You can see this with previous HTML files, the names of each file always ends with a, ".html"
Upon the creation of your CSS file, you are automatically (if not, you should put this first in the file) a Body tag with two curly braces by default. Here, I just style the Body tag and can change the "font-family" however I want. To link this CSS file with your HTML file, go to your HTML file and in the heading, you will type this exact piece of code "<link rel="stylesheet" type="text/css" href="________.css" />" the blank space is just whatever name you gave that CSS file.
Now we really want to get into the cascading aspect of CSS. So you must be sure that you know the precedence order for external style sheets, internal style sheets, and inline sheets.
Internal style sheets take precedence over External style sheets for the same tag and property. An example of this is if you were to type a color change property for the "p" tags in your CSS file (External style sheet), but if you were to type a Style tag in your HTML file and type a color change property within that tag (Internal style sheet), the Internal style sheet will always take precedence over the External style sheet. Inline style sheets take precedence over Internal style sheets AND External style sheets for the same tag and property. An example is when you style a specific "p" tag in your HTML to a certain color, the style you typed for the Internal & External style sheets will be overridden by the style of the Inline style sheet, even if there is a different color from the Internal & External style sheets, the Inline style sheet will always override both. So here is the order from which style sheet takes precedence first to last
- Inline Style Sheets
- Internal Style Sheets
- External Style Sheets
A "Rule Set" in CSS is a combination of a selector which can be, a tag, class or ID, and the property & value pairs set in the style sheet. Any styles that you decide to add is within the curly brackets of a tag in your CSS file. You have pairs of properties being changed, and values they are set to.
To end things off, remember that styles can be applied to Tags, Classes, and ID's. Classes can be applied to ANY tag. ID's should only be applied once per page.
DOMAIN 3 (Document Structure Using HTML):
Let's start with talking about some detailed usage of HTML Tags, the most important takeaway for you here is to understand when you would use each of these tags, some you will use often, and some you will hardly ever use. But any tag within Domain 3 is a possible exam question (MORE STUDYING! HOORAYYY).
PART 1 -
For any information in rows and columns, "Tables" are a good way to layout the information in an organized fashion. As a fun fact, many years ago, tables used to layout entire web pages. But now, CSS offers more flexibility in laying out a web page.
Table tags are an HTML structure for creating rows and columns on a web page. For video 1, the important pieces to learn are all the different Table tags.
New HTML Tags I learned:
- The "Table" tag, defines the overall table. It allows web developers to arrange data into rows and columns.
- The "tr" tag, also known as the "Table Row" tag, is used to build each row.
- The "td" tag, also known as the "Table Data" tag, is what defines that actual data.
- The "th" tag, also known as the "Table Header" tag, is used to define headings for columns or rows within the table.
- Tags "h1, h2, h3, h4, h5, h6" are headings for your web page. As the tags go from 1-6, 1 being the largest size of the headings, while 6 is the smallest size of headings (tags h5 & h6 have text smaller than your average text within a "p" tag). Keep in mind that these headings are boldened! So no need to style them bold. Headings will usually be at the top of the page, while some can be above sections of a list.
- The "br" tag, also known as the "Line Break" tag, is used to create a line break in the text, allowing content that follows it to appear on a new line without starting a new paragraph. In a normal paragraph, you would see in your website that a line was skipped (it's like pressing ENTER twice in a Google Doc to separate your text to start a new paragraph), but here with a line break, you do not skip a line, and you do not start a new paragraph (now it's like pressing ENTER once in a Google Doc).
- The "hr" tag, also known as the "Horizontal Rule" tag, is used to insert a line (aka horizontal rule or a thematic break) in an HTML page, this is to divide or separate whatever you want, like your paragraphs or document sections as an example.
- The "div" tag, allows us to divide up parts of pages and control formatting features such as, alignment, positioning, background, colors, boxes, etc. Most of this formatting is done through style sheets, but HTML does allow us to do a little formatting. It basically allows us to take an entire block of text, usually multiple paragraphs, and format it.
- The "span" tag, rather than what a "div" tag does, it allows us to format a word or phrase.
- The "ul" tag, creates bulleted lists. With bullet points in your list, you can style them, which I find pretty cool (I never knew about that until now)! Just put this into your Style attribute within the "ul" tag: "list-style-type:"
- The "ol" tag, creates numbered lists. You really only use this if you want to convey a process in which order of the steps matter (To be honest, I just use whichever list I feel like using). You can also style your "ol" tag with the Style attribute, and within it, you just type the "list-style-type:" again.
- The "li" tag, is known as "List Item" it goes within a "ul" or "ol" tag. Here, you will put your text (or images), so that it will be put into your Unordered or Ordered list. Be sure to know that the "li" tag works just like the "p" tag! But instead of creating a new paragraph, you are creating a new listed item in your list.
Semantic Tags I learned:
- "Semantic" tags are used to organize a webpage. Semantic tags are a quick reference to let both developers and search engines know where the header, navigation, text sections, articles with self-containing text, aside story, and footer areas are in an HTML document. Remember that Semantic tags does nothing for the look of a web page, outside of using a style sheet to format this and other Semantic tags.
- "Header" tags (<h1> through <h6>) are used to define headings and subheadings within a web page. They structure content, making it more readable and accessible for users and search engines.
- The "nav" tag, is used to help us spot in the HTML code, the area containing navigation links to other pages.
- The "Section" tag, is just to mark off sections on a web page. This is helpful, especially for longer pages. For example, let's say you may have a booklet with multiple chapters or an instruction set with multiple steps.
- The "Article" tag, is used to mark off self-containing text, that can make up a story, blog entry, or some other kind of article.
- The "Aside" tag, is often used to mark off a side story. It could be related to the article, but that's not a must.
- The "Footer" tag, defines the footer section of a webpage or content area. You typically use it to include information such as contact details, copyright notices, navigation links, or related documents.
- The "Details" tag, specifies additional details that the user can open and close on demand. This tag can be hidden or shown at will.
- The "Summary" tag, defines a visible heading for the <details> element. It will surround the line explaining what is in the Details section.
- The "Figure" tag, is used to mark up an image, diagram, or code snippet in a web page. By itself, the tag doesn't really do much to the image, but this tag can be used with the "Fig Caption" tag, which can be used to put a caption on an image and line up the caption with the image.
- The "Caption" tag, is really just explained in the tag in the previous tag. BUT IF YOU STILL WANT A EXPLANATION, then fine... A "Caption" tag is where you add a title or caption to a table or image. It provides a description or context for the table, helping users understand the table's purpose and content.
There is more to building tables than just using the "Table" , "tr" and, "td" tags, you may want a header row on your table. You may want to do some table formatting. Though you should use style sheets to do most of the formatting, there are some basic attributes that you can add to existing table tags.
New Attributes I learned:
- The "href" attribute, defines the destination URL of a hyperlink. It specifies the URL of the page or resource that will be opened when the link is clicked.
- The "Border" attribute, is used to specify the border of a table. It sets the border around the table cells.
- The "colspan" attribute, allows you to make a row or column span across multiple "<td>" or "<th>" cells.
- The "Alignment" attribute, specifies the horizontal alignment of text in an element. You can align your text (or whatever really) to the left, right, center, or justify (I don't know what that does) your text.
- The "Style" attribute, is used to add inline styles to an HTML element. This attribute allows you to specify CSS properties directly within the HTML tag, which will override any styles set globally or in external stylesheets.
Now we are going to look at the first of two types of list we can use to structure content on a web page.
Different types of HTML Lists:
- "Unordered Lists" are your basic bulleted lists.
- "Ordered Lists" are your basic numbered lists.
About Images:
Now you might be wondering, how do we add images? The answer is, you don't. You cannot simply just add it by inserting it. To make an image apart of your web page, you really just link it from a web page to a stored location. So for any image link that you add, you will want to occasionally check and make sure the link still work.
Now for any image, "alternate text" should be added for two reasons. First, if the image does not display, at least some text will be there to explain what the image was supposed to be. Secondly, screen readers use alternative text, to read text to those who need assistance with finding you what's on web pages.
PART 2 -
HTML links are known as "hyperlinks" you can click on a link and jump to another document. One of the tags used to create hyperlinks is the "a" Tag (you can find info of it back on Domain 2). One design rule in websites is to keep people on your website as much as possible.
In addition to adding hyperlinks to navigate to web pages, you may want to control how a web page loads once a link has been clicked! Continuing on from that one design rule, one way to do this, especially for hyperlinks that go out your website, is to set the "Target" of a hyperlink to open in a new window (aka a new Tab).
Another feature of hyperlinks, specifically the "a" tag, links to a specific spot on a web page. This is known as a "Bookmark"
New Attributes I learned:
- The "Target" attribute, specifies where to open the linked document. If you put in "_blank" as an example, your hyperlink will open up a brand new window/tab.
- The "Shape" attribute, specifies the shape of the selectable area.
- The value of the "coords" attribute, can depend on the particular shape, it specifies the coordinates of an area in an image map. This attribute is used together with the shape attribute to specify the size, shape, and placement of an area.
- The "alt" attribute, specifies alternate text.
Specific Links in HTML and their Purpose:
- A "Hyperlink" moves the user to another webpage when it is clicked. A hyperlink can be internal or external to a website.
- A "Bookmark" is a type of hyperlink that navigates to a specific location on a webpage. This can be a location on the same webpage as the hyperlink or to a specific location on a different page. Bookmarks are especially very helpful with navigating within long web pages. The location for the bookmark must be defined. This is done using the anchor "a" tag and the name attribute. Then, the hyperlink uses the # symbol in front of the name (using the "name" attribute) of whatever you put within the "a" tag of whever you want the hyperlink to be directed towards. It's very hard to explain this...
- "Relative" links, are hyperlinks located within the same website from the HTML document from where the link originates.
- "Absolute" links, are hyperlinks in which the destination is not in the same website of the webpage from which the link originates.
- "Relative" hyperlinks, are often located within folders different from the pages in which they originate. For simple folder hierarchies, the folder name needs to precede the webpage name in a hyperlink if the folder is below the webpage in the hierarchy of the website. However, if the folder is above the webpage in the hierarchy, two dots and a backslash (like this "../") need to be placed in front of the folder name. If you want to move down a folder path however, all you need is a simple slash "/"
Most of the hyperlinks that you'll create to link from page to page within a website, are what we call "Relative links." For example, look at "33d-spotlight.html" (or really just go to video 24, and go to time-stamp 0.06) and take a look at the hyperlink that is within the Home, down below in the HTML. The hyperlink leads to the index.html within Domain 3's folder. This really only works because of how each of these files are within the same folder. If it were not, then it won't work. But to solve this, you know that most external links will not be in the same folder as the current HTML you are in. For this, now you will need an "Absolute link" which contains the complete address to the link. You can add an Absolute link to a text with, let's say for example, a wikipedia page, so just copy and paste the full link from the window of the wikipedia page and paste it within an "a" tag with the "href" attribute.
Friendly reminder, when you create an external link, most of the time you will want to make sure you set that target to have the link open in a blank tab (use "_blank"). This is because of the GOLDEN RULE OF HYPERLINKS!!!! And that is to keep people on your website as much as possible.
New HTML Tags I learned:
- The "Map" tag, creates an image map that links to an image, while the area tag defines the different areas within the image map. It requires that the image on a webpage includes a selectable area, otherwise no change is applied to the webpage.
- The "Area" tag, defines an area inside an image map (an image map is an image with clickable areas).
- The "Form" tag, is used to create an HTML form for user input. These controls range from text fields, numeric inputs, and email fields to password fields, checkboxes, radio buttons, and submit buttons.
With linking a Map element to the image element, no changes will happen with the web page. The reason might be because you haven't defined any selectable areas, so the web page will remain unchanged.
An input form is a part of a website where you can type in information, like when you fill out a survey or apply for something online. Things like access keys and tab index help you move between the boxes on the form using just the keyboard instead of a mouse. This makes it easier for people who have trouble using a mouse to use the website.
Exam Tips given in the Videos:
FYI, just to let future me know, I do NOT have all the Exam Tips given in each Domain, so if anything, actually go and watch the videos to study. (Here's a TIP to make your life easier, just go to the final video in each Domain, that video is usually what you must truly study on)
FOR THE EXAM! You will want to make sure that when referencing links or images, you know the proper code to navigate DOWN a folder path and the proper code to navigate UP a folder path. If you have familiarity with navigating folders in a command prompt, this should look at least somewhat familiar.
Remember that the Map tag defines an image map using one or more area tags. That image map is then linked to an image, creating sperate selectable areas on an image that act similarly to standard hyperlinks.
There is no need to be an expert in coding form Submission Scripts for this exam. But just know the most common Submission Methods and how they operate. Here are some Submission Methods:
- "Get" = A request to retrieve something, like an image or web page. With this specific method, user attributes will appear in the URL. This method should NOT be used for submitting sensitive information.
- "Post" = A request to take the submitted data and modify data on the server as a result of user input. An example would be a form post changing existing information.
- "Put" = A request to take submitted data and insert it into a database.
- "Delete" = A request to remove information from a database. This should be used with caution.
PART 3 -
An important factor to take into consideration when building a form is accessibility. Specifically, we want to make form fields more accessible to those who struggle to use a mouse. Two ways we can do this are through adding an "Access Key" and a "Tab Index."
There are a few different ways in which we can allow users to input information on a form. Each input is defined either through a tag or combination of tag and attribute. There are a number of input methods on the exam. The input methods you will need to know about the exam include:
- The "Input" tag, which has many attributes, such as:
- "Text" is for a single line text field.
- "Email" is for an email address.
- "Checkbox" is for a field which users can check or leave unchecked.
- "Submit" is a submit button.
- "Button" can be a normal or submit button.
- "List" is a pre-populated data list, which is appliead to help users automatically complete a form field.
- The "Select" tag, is used to generate a drop-down list, has attributes such as:
- "Option" is a vaule that a user can select from a drop-down list.
- The "Textarea" tag, is used for entering multiple lines of text.
When building input fields, a best practice is to add a label tag prior to the input field. This allows a user to click on the label, the text next to the field name, and have the cursor move into the accompanying field.
New Attributes I learned:
- The "accesskey" attribute, specifies a shortcut key to activate/focus an element. This attribute value must be a single character (a letter or a digit).
- The "tabindex" attribute, specifies the tab order of an element (when the "tab" button is used for navigating). This attribute can be used on any HTML element (it will validate on any HTML element. However, it is not necessarily useful).
- The "action" attribute, specifies where to send the form data when a form is submitted. It allows the browser to send the data to the specified location, enabling server-side scripts to process the data and generate a response.
- The "method" attribute, is used to specify the HTTP method used to send data when submitting a form. This attribute can be applied to the <form> element and supports two primary values: GET and POST.
- The "name" attribute, is used to specify a name for an HTML element. It can be used to reference the element in a JavaScript.
- The "ID" attribute, is used to specify a unique id for an HTML element. You cannot have more than one element with the same id in an HTML document.
- The "value" attribute, for <button>, <input> and <option> elements, the value attribute specifies the initial value of the element (there are a lot more uses with this attribute in different tags, you can check out w3schools for the other uses, but really this definition is specifically for this part of the Domain).
- The "selected" attribute, sets the web option selected by default in whichever option tag you put it in.
- The "rows" attribute, specifies the visible height of a text area, in lines.
- The "cols" or columns attribute, is used within the element to specify the visible width of the text area. It defines the number of characters that can be displayed in one row of the text area.
- The "maxlength" attribute, specifies the maximum number of characters allowed in an input field. It helps limit the length of user input, such as usernames or other types of input data.
- The "onclick" attribute, is used to execute a script or function when an element is clicked by the user. This attribute is part of the Event Attributes and can be applied to any HTML element, making it a versatile tool for adding interactivity to web pages.
- The "oninput" attribute, fires when an element gets user input. The oninput attribute fires when the value of an <input> or <textarea> element is changed.
The Significance of Labels:
Without the label tag, the user would have to click directly in the form field.
This may sound insignificant, but consider how many users today are on mobile devices and smaller screens.
Most studies estimate that 50% or more of all internet traffic is from mobile devices.
The "label" tag also improve the experience for users utilizing screen readers.
When a user focuses on a form field that has a label, the screen reader will use the associated label tag to read the name of the field out loud.
So why do we use the "label" tag? ACCESSIBILITY!! For these reasons, input tags should ALWAYS be accompanie by a label tag.
New HTML Tags I learned:
- The "label" tag, defines a label for several elements (just go to w3schools to see what those elements are because I ain't typing all those elements).
- The "select" tag, creates a drop-down list full of options. And in this, we can set a default option.
- The "option" tag, is used to define the options in a list.
- The "Textarea" tag, is used for entering multiple lines of text.
- The "button" tag, defines a clickable button (more to know on w3schools).
- The "output" tag, will take information that is being put into the form and make calculations with the information. The output tag needs a name, which is then referred to in an oninput attribute added to the form tag. This oninput attribute will contain the calculation that is added to the output tag.
- The "optgroup" tag, takes individual option tags and group them in similar groups to make options easy to read.
- The "datalist" tag, creates a prepopulated list of possible answers in an input form. This can help users use values you want in a form field without having to display a drop-down list right away, as is the case with a select tag. A datalist typically works in conjunction with an input tag with a list attribute.
- The "fieldset" tag, allows a user to group fields on a form to make the form user- friendly. A fieldset defines a box around a set of fields. A fieldset tag also requires a legend tag.
- The "legend" tag, represents the name of the fieldset.
We just covered a lot of tags that is the essence of HTML! Taking text and marking it up with tags, so a web browser knows how to display a web page.
Exam Tips given in the Videos:
It is not important to know how to script a button, but it is important to know how to use the button tag.
As you learn these HTML tags, put them into groups. There are four tags we learned in this Domain:
- Structure
- Semantics
- Navigation
- Forms
This is just to make it a little easier for you to keep track of which tags go with which group.
Structure: Know all the basic HTML tags. More importantly, know when you would use these.
Semantics: Understand that most of these do not change the appearance of your web pages, but they help define the web pages.
Navigation: Set the "a" tag for hyperlinks and know how to set targets and bookmarks.
Forms: Know the different input types, know how to add accessibility attributes to form fields, know how and when to create a data list, and know the purpose of a fieldset.
The overall exam tip for this domain is simply this, know when you would use these tags and know what kind of code you would use given a scenario.
DOMAIN 4 (Multimedia Presentation using HTML):
Adding multimedia to a web page, used to be a taxing task. With HTML-5, adding multimedia is easy. As you learn how to add video or audio to a web page, make sure you see which formats can be used for web pages and which ones cannot.
In Domain 4, we will be reviewing what we have learned previously on adding image tags and it's attributes, and look at ways we can control a page layout with images. We'll also see how to create a hyperlink on an image. As you go to add images onto a web pagem you'll want to know what those image dimensions are, so you can scale the image accordingly. Just remember that the more you scale an image, the lower the quality of that image gets (especially if you scale the image to a larger size than its original).
About Images:
(this is just taken from another previous Domain, I just brought it back due to how this Domain is somewhat about images)
Now you might be wondering, how do we add images? The answer is, you don't. You cannot simply just add it by inserting it. To make an image apart of your web page, you really just link it from a web page to a stored location. So for any image link that you add, you will want to occasionally check and make sure the link still work.
Now for any image, "alternate text" should be added for two reasons. First, if the image does not display, at least some text will be there to explain what the image was supposed to be. Secondly, screen readers use alternative text, to read text to those who need assistance with finding you what's on web pages.
New HTML Tags I learned:
- The "img" tag, is used to embed an image in an HTML page. Images are not technically inserted into a web page; images are linked to web pages. This tag creates a holding space for the referenced image.
- The "Video" tag, embeds a media player which supports video playback into the document.
- The "Source" tag, is used to specify multiple media resources for media elements, such as <video>, <audio>, and <picture>. The <source> tag allows you to specify alternative video/audio/image files which the browser may choose from, based on browser support or viewport width.
- The "Audio" tag, can have multiple source tags and should have audio controls (controls attribute) for the user to control audio play settings. These tags are added to an HTML file in a very similar fashion as that of video tags. Here, you can add an mp3 formatted file, which is a very common audio file format, along with a wave format.
- The "Track" tag, is used with VTT files, which add things like captions and subtitles to videos on websites. But not all web browsers support them. The most common types of VTT files are for captions and subtitles. You have to say which language the track is in when you use it. You can also add more than one track file if you want to include different languages.
- The "iframe" tag, is a frame that holds content inside a webpage. The iframe can hold a source from another webpage that can easily be changed with the click of a button or other user interaction. An iframe will let you put one HTML file within another HTML file.
New Attributes I learned:
- The "src" attribute, specifies the location of a digital source, which is typically a URL or a file path. It is required for HTML elements like "img" so that they can appear on a website or application.
- The "Width" attribute, specifies the width of an image, in pixels. Tip: Always specify both the height and width attributes for images. If height and width are set, the space required for the image is reserved when the page is loaded.
- The "Height" attribute, specifies the height of an image, in pixels. The tip is the same as width.
- The "Controls" attribute, instructs the browser to display default media controls for audio and video elements.
- The "Type" attribute, specifies the Internet media type (formerly known as MIME type) of the media resource.
- The "Kind" attribute, specifies the kind of text track. Can only be applied to the "Track" tag.
- The "srclang" attribute, specifies the language of the track text data. This attribute is required if kind="subtitles".
- The "Label" attribute, in HTML is used within the <track> element, which is typically used to specify text tracks for <video> or <audio> elements. The label attribute provides a user-friendly name for the track, making it easier for users to identify and select the track (e.g., subtitles, captions, or descriptions) in a media player.
When trying to get images to line up in rows and columns, we should use one of two methods. Either a Table or through CSS.
Adding a hyperlink to an image involves using the same tag and attributes, as is the case with adding a hyperlink around text. We'll still need the "a" tag and a hyperlink reference. The key is to surround the image tag with the "a" tag, and not the other way around.
Within Domain 4, I have learned how you can have more than one soutce specified for video format. The 3 most common video formats you'll see are:
- MPEG (.mp4) = Also known as the H.264 format. The most common output for video editing software.
- WebM (.webm) = Works on less powerful devices.
- Ogg (.ogg) = A royalty-free video format.
Though these are the most common video formats, many other video formats are supported. The most important thing you can do is test the formats you use across multiple browsers.
Exam Tips given in the Videos:
For this exam, you need to know how to add an iframe tag and know what it does, not how to programmatically change it.
One thing to remember as you practice studying for HTML coding (or just practicing in general), if the page displays the way you anticipated, you use tags and attributes perfectly! If not, look for a missing angle bracket, a misspelled tag, or a typo. HTML code does NOT show alert messages when there is an error. The only result you have to go by is the web page itself. So finding errors takes good proofreading skills.
Be sure to know the proper way to display an image.
- Using the src attribute of the img tag.
Be able to set the width, height, and alternate text for an image.
Be able to add a hyperlink to an image.
Know how to implement a video with controls.
- Be able to apply multiple sources and a track to a video.
Be able to implement audio with controls.
- Be able to attach multiple sources to it.
DOMAIN 5 (Web)
Earlier, we dived into the basics or CSS. Now we want to dive into the details and see how we use CSS not only to format text, but to also position text on a page.