HTML Flashcards
What is HTML?
Stand for HyperText Markup Language. It is code used to structure web pages and it’s content. It allows us to publish documents online with headings, text, tables, lists, photos, etc.
What is semantic HTML and why is it useful?
Semantic elements clearly describe the purpose of the element and the type of content in a way that is readable by both the human and the machine. Ex. , , , etc. This is useful because it makes the code easier to read, adds greater accessibility, and overall more consistent code.
Common html tags
<p> </p>
<div> <span></span></div>
What is the doctype declaration?
An instruction to the web browser about what version of HTML the page is written in. It is not an html tag but information to the browser and should be included at the top of the page before the html tag. This is important to ensure the web page is parsed the same way in every browser allowing for continuity across different web browsers.
How do I create a table in HTML?
The tags defines an html table. The table will consist of one element and one or more table row, table head, and table data elements. This creates a structured data set made of rows and columns allowing for quick and easy access to look up values.
How do I create ordered and unordered lists?
Unordered lists start with the <ul> tag and each list item starts with the <li> tag. The list items will appear marked with bullet points. Unordered lists creates a collection of related items that have no special order or sequence, like a checklist.
Ordered lists start with the <ol> tag and also uses <li> before each list item. These lists can be displayed as numerical or alphabetical by simply specifying type in the opening tag. This is used for containing information where order should be emphasized, for ex a recipe. </li></ol></li></ul>
How do I create various form data?
An HTML form is used to collect user input. This is accomplished using the element tag and specifying type of form to be used ie text, checkbox, select box, clickable buttons, submit/reset, etc. Forms allow users to enter data that is sent to a server for processing.