Hyper Text Markup Language
.html
extension
, an "end tag"
, some content in between them, and multiple types of attributes.
<tagname attribute="value">
content
</tagname>
<a href="http://www.google.com">
Google
</a>
<a>
tag stands for "anchor," the href
attribute stands for "hyper-reference," and the value, a URL, is assigned to the attribute of the anchor tag.
<html>
doctype
isn't an actual tag, but it needs to be at start at every HTML page to tell browser which version of HTML you're using (HTML5 here).
html
is the root of the page.
<head>
element<head>
contains "meta" information about the page: information that the browser needs before rendering. Note: It also includes <link>
tags to your CSS stylesheets.
<meta>
tags.
<body>
Elementhtml
in your index.html
file. Then, save it, commit it, and push the committed changes to your repo on Github.
<body>
/* questions? */
inline
elements, since block
elements have width and height properties that you can change.
Inline
elements have a width, but is contingent on the size of the inline object itself.
<div>
; <article>
; <section>
; <h1>
, <h2>
, <h3>
...; <p>
, etc.
<img>
, <b>
, <em>
<img>
element is actually an inline-block element, so you can modify the dimensional and position properties.
float: left;
position: absolute;
position: fixed;
/* questions? */
<html>
(Navigate back to your index.html
file.)
<a>
Links<img>
Element/* Recap with Your Browser's Inspect Element Tool */