- Learn the anatomy of HTML syntax to structure your websites.
- Understand the HTML boilerplate and HTML doctypes.
- How to structure text in HTML.
- How to structure HTML lists to create unordered and ordered lists.
- How to insert images using HTML.
- How to create hyperlinks using anchor tags.
- Understand how to use HTML tables for content.
- How to use tables for layout.
- Learn HTML best practices.
- Understand about HTML forms and create a simple contact me form.
- HTML Divs and how to separate content for CSS styling.
HTML is the foundation of all websites. Other files like css or javaScript cannot stand on their own to create websites, but HTML can.
- HyperText Markup Language
- tag must be close when you open it except for some tags.
<h1>
-<h6>
elements represent six levels of section headings.<h1>
is the largest heading level and<h6>
is the smallest heading level.
- HTML with Start and End tag
- HTML with Self-closing tag
- HTML with Attributes
<h1>Hello World</h1>
<h1>
is the Start tag.Hello World!
is the Content.</h1>
is the End tag.
<br>
- element produces line break in text.
- is a Self-closing tag.
<hr>
- is a horizontal rule.
- element represents a thematic break between paragraph.
- is Self-closing tag.
<hr size="3">
hr
is the html elementsize
is the html attribute3
is the html
To explain what's the code for, not only for you but also for the future programmers.
<!-- The
Self-closing
tag-->
- Boilerplate is a code template that can be reuse for each different project.
<!DOCTYPE html>
to use the latest version of html which is HTML5.<html>
is the one that indicates that everything inside of it is html.<head>
holds the information about webpage, and tells how it should handle the page.<title>
it to display the title of the webpage on the tab of the browser.<meta>
- charset="UTF-8" using the standard encoding to display the page correctly.
UTF-8
uses all the characters around the world. - description
- keywords
- author
- viewport
- charset="UTF-8" using the standard encoding to display the page correctly.
<p>
element represents a paragraph text.<em>
element marks text that has stress emphasis. Use<em>
instead of<i>
to convey more meaning on the subject.strong
element gives text strong importance, and is typically displayed in bold. Use<strong>
instead of<b>
to give a strong importance to the subject.
<ul>
element represents an unordered list of items, typically rendered as a bullet list.<ol>
element represents an ordered list of items, typically rendered as a number list.
<img>
element represents an image in the document and it's a self-closing tag
<img src="genesis.png" alt="genesis-profile">
src
to get the path of the image.alt
is an alternative text to display when the image is not available anymore.
<a>
(anchor) element creates a hyperlink toother web pages, files, location within the same page, email address, or any other URL.
<a href="https://">Click</a>
<a>
is the html elementhref
is attribute that contains a URL that the hyperlink points to.https://
is a link destinationClick
is the link text.
download
is an attribute to download any resourcesin the internetinside your website.
<table>
element represents tabular data, information presented in a two-dimensional table comprised of rows and columns of cells containing data.<tr>
or Table Row element defines a row of cells in a table. The row's cells can then be established using a mix of<td>
and<th>
elements.<td>
or Table Data element defines a cell of a table that contains data.<th>
or Table Header element defines a cell as header of a group of table cells.<thead>
or Table Head element defines a set of rows defining the head of the columns of the table.<tbody>
or Table Body encapsulates a set of table rows ( elements), indicating that they comprise the body of the table ().<tfoot>
or Table Foot element defines a set of rows summarizing the columns of the table.<form>
element represents a document section that contains interactive controls to submit information to a web server.<label>
element represents a caption for an item in a user interface.<input>
is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent<textarea>
represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.checkbox
type: is a check box allowing single values to be selected/deselected.date
type: is a control for entering a date (year, month, and day, with no time).email
type: is a field for editing an e-mail address.file
type: is a control that lets the user select a file. Use the accept attribute to define the types of files that the control can select.number
: is a control for entering a number.radio
type: is a radio button, allowing a single value to be selected out of multiple choices.range
type: is a control for entering a number whose exact value is not important.submit
type: is a button that submits the form.text
type: is a single-line text field. Line-breaks are automatically removed from the input value.- Create an account in Github with their free plan.
- Verify your email sent by Github
- Click the + button at the upper right corner then create new repository.
- You can upload files by dragging your files or using command line terminals.
- Lastly got to the settings and scroll to the Github Pages, then select the Source and change it to master branch instead of None.
- Wait for several minutes, then voila! your site is already published!
- HTML MDN
- HTML w3schools
- HTML devdocs
- Internet Archive WayBack Machine
- Emmet Documentation
- Unicode® Character Table
- The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
<table>
<tr>
<td>Genesis</td>
<td>19</td>
</tr>
<tr>
<td>David</td>
<td>20</td>
</tr>
</table>
<form action="index.html" method="POST">
<label for="">Name: </label>
<input type="text">
<label for="">Password: </label>
<input type="password" name="" id="">
<input type="submit" value="Submit">
</form>