Heading h6 Is The Smallest.: HTML Stands For Hypertext Markup Language, and Is Used To Give A Webpage Structure
Heading h6 Is The Smallest.: HTML Stands For Hypertext Markup Language, and Is Used To Give A Webpage Structure
a: short for anchor and used to add links to other webpages. Anchor
elements typically have an href attribute:
<a href="http://codecademy.com">Click here</a> to learn how to make a
website!
img: used to add an image to a webpage. Image elements are selfclosing and do not require a closing tag:
<img src="https://images.com/favorite.png">
div: used to organize HTML elements into different groups, which can
be given a class attribute:
<div class="main"> <h2>Subheading!</h2> </div>
WEB CONCEPTS
Here's how you would set your h2element's text color to blue:
<h2 style="color: blue">CatPhotoApp</h2>
That's one way to add style to an element, but a better way is by using CSS, which
stands for Cascading Style Sheets.
At the top of your code, create a styleelement like this:
<style>
</style>
Inside that style element, you can create a CSS selector for all h2 elements. For
example, if you wanted all h2elements to be red, your style element would look like
this:
<style>
h2 {color: red;}
</style>
Note that in your CSS style element, classes should start with a period. In your
HTML elements' class declarations, classes shouldn't start with a period.
<style>
.red-text {
color:red;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
Now, let's import and apply a Google font (note that if Google is blocked in your
country, you will need to skip this challenge).
First, you'll need to make a call to Google to grab the Lobster font and load it into
your HTML.
Copy the following code snippet and paste it into the top of your code editor:
You can add images to your website by using the img element, and point to a specific
image's URL using the srcattribute.
An example of this would be:
<img src="https://www.your-image-source.com/your-image.jpg">
All img elements must have an altattribute. The text inside an altattribute is used for
screen readers to improve accessibility and is displayed if the image fails to load.
Lets add an alt attribute to our imgexample above:
<img src="https://www.your-image-source.com/your-image.jpg" alt="Author
standing on a beach with two thumbs up. ">
HTML has a special element for creatingunordered lists, or bullet point-style lists.
Unordered lists start with a <ul>element. Then they contain some number of <li>
elements.
For example:
<ul>
<li>milk</li>
<li>cheese</li>
</ul>
Bootstrap examples
http://v4-alpha.getbootstrap.com/examples/