HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<html>
<head>
<title>Relationship Terms</title>
</head>
<style>
body {
margin: 0 auto;
width: 1368px;
height: 768px;
}
header {
text-align: center;
padding: 20px;
font-family: Helvetica, sans-serif;
}
header li {
display: block;
background: silver;
width: 600px;
margin: auto;
padding: 10px;
}
header a:hover {
background: yellow;
}
dt {
font-family: Helvetica, sans-serif;
background: black;
color: white;
margin: 0px;
padding: 10px;
}
dd {
font-family: Georgia, serif;
padding: 10px;
}
footer {
text-align: center;
}
</style>
<body>
<header>
<h1>Relationship Terms</h1>
<h2>Table of Contents</h2>
<ul>
<li><a href="#talking">Talking</a></li>
<li><a href="#dating">Dating</a></li>
<li><a href="#courting">Courting</a></li>
<li><a href="#RR">Romantic Relationship</a></li>
<li><a href="#SR">Sexual Relationship</a></li>
<li><a href="#IR">Intimate Relationsip</a></li>
<li><a href="#PR">Platonic Relationship</a></li>
<li><a href="#FR">Friendship</a></li>
</ul>
</header>
<main id="main-doc">
<h2>Introduction</h2>
<p>
In order to get practice with Links and Lists, I decided to create a project that explored a topic that I am interested in, and that is the top of Relationships. I find that many people have similar definitions for these terms, but the expectations that come with these terms are different from one person to the next. As such, I will take the liberty of analyzing and defining the following words as best that I know.
</p>
<dl>
<!-----------Beginning of Talking section------------->
<section class="main-section">
<dt id="#talking"><h3>Talking</h3> </dt>
<dd> the initial stage of the relationship-forming process that consists of two individuals regularly and consistently communicating with one another. It can be through talking in-person, on the phone, via text messages, or through social media such as Snap Chat or Instagram. It is important to note that there are two types of talking and they are the following:
<ul>
<li>
<dd>Inclusive(open) Talking</dd>
</li>
<li>
<dd>Exclusive(closed) Talking</dd>
</li>
</ul>
</dd>
</section>
<!-------------------End of Talking section------------------>
<!-----------------Beginning of Dating section--------------->
<section class="main-section">
<dt id="#dating"><h3>Dating</h3> </dt>
<dd>the stage after the <i>Talking</i> stage that consists of two individuals deciding that they have enough interest in one another to go out in public and spend time together. Essentially, the Dating stage officially starts when two individuals take the time to schedule a time and a place that they will meetup and interact with each other; this meet up could be at a person's house or out in public at somewhere like a restuarant.
<ul>
<li>
<dd>Inclusive(Open) Dating</dd>
</li>
<li>
<dd>Exclusive(Closed) Dating</dd>
</li>
</ul>
</dd>
</section>
<!-------------End of Dating section----------------------->
<!--------------Beginning of Courting section--------------->
<section class="main-section">
<dt id="#courting"><h3>Courting</h3>
<dd>the period in the relationship-development process that is defined by a person paying special attention to another person with the sole intent of gaining their complete and exclusive attention.The goal of courting is to form an exclusinve, intimate relationship that will eventually lead to marriage. Courting encapsulates the stages of Talking and Dating, however it is possible to talk to someone and date someone and not have the intentions of marrying a person. </dd>
</dt>
</section>
<!---------------End of Courting section------------------------>
<!---------------Beginning of Romantic Relationship------------->
<section class="main-section">
<dt id="#RR"><h3>Romantic Relationship</h3></dt>
<dd>a type of relationship that involves romantic actions. Romantic actions can include kissing, touching, hugging, cuddling, buying flowers, or any other actions that are considered a profession of love and affection for a person. Romance is what take a friendship to the next level. <i>Disclaimer:</i> it is important to note that Romance can include sex, but it does not have to as these two types of relationships are distinct yet interrelated.
</dd>
</section>
<!---------------End of Romantic Relationship------------------->
<!----------------Beginning of Sexual Relationship-------------->
<section class="main-section">
<dt id="#SR"><h3>Sexual Relationship</h3></dt>
<dd>a type of relationship that invovles sex. Interestingly, according to the Ancient Greeks, this type of Relationship is based on the type of love known as <i>Eros</i>. Eros is the type of love that is based purely on sexual desires; to the Ancient Greeks, they considered this love to base and primal and without any substance to back it up the relationship would eventually fade and collapse. </dd>
</section>
<!-----------------------End of Sexual Relationship------------------->
<!-------------------Beginning of Intimate Relationship-------------->
<section class="main-section">
<dt id="#IR"><h3>Intimate Relationship</h3></dt>
<dd>a type of relationship that is defined by extreme closeness and familiarity between two individuals. This intimacy could by an emotional, sexual, romantic, intellectual, and so on and so forth.</dd>
</section>
<!---------------------End of Intimate Relationship section--------->
<!---------------Beginning of Platonic Relationship section-------->
<section class="main-section">
<dt><h3>Platonic Relationship</h3>
<dd>a type of relationship that is based on the type of love that the Philosopher Plato expresses in his work <cite>Symposium</cite> in which two individuals rise through the levels of closeness and ascend to wisdom and true beauty. Thi ascesion is based in physical attraction and elevates to attraction of the souls. Platonic love is neither Romantic nor Sexual but it is an Intimate Relationship.</dd>
</dt>
</section>
<!----------------End of Platonic Relationship section-------------->
<!-------------------Beginning of Friendship section-------->
<section class="main-section">
<dt id="#FR"><h3>Friendship</h3>
<dd>a type of relationship that is nonsexual and nonromantic. It involves two individuals who have became acquainted with each other, have mutually recognized each other as friends, and who have a bond with one another meaning that they have connected somehow.</dd>
</dt>
</section>
<!-----------End of Friendship----------------------->
</dl>
</main>
<footer>
©2020 Build-A-Better-Vocabulary Project
</footer>
</body>
</html>
Also see: Tab Triggers