HTML Tags

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Why would you insert a comment in your code?

To include notes that you may need for various reasons and will not be visible to the webpage visitor.

<p>

The <p> tag defines a paragraph. Browsers automatically add a single blank line before and after each <p> element.

<ul>

The <ul> tag defines an unordered (bulleted) list. Use the <ul> tag together with the <li> tag to create unordered lists.

width of a percentage

Demands a tag to only span a certain percentage of the webpage

<table cellpadding="1" >

Styles each cell of the table in html to have a padding of 1

<table cellspacing="2" >

Styles each cell of the table in html to have a spacing of 2

<table border="1" >

Styles the table in html to have a border thickness of 1

<table bordercolor="#fff" >

Styles the table in html to have a white border color

<table width="100%" >

Styles the table in html to have a width of 100%, which means it will span 100% of the webpage

<b>

The <b> tag specifies bold text without any extra importance.

How can we center an h1 heading within the html document?

<h1 align="center">

What are the different ways you can code color?

Hex code, RGB values, default color names (ex: red, blue, yellow, etc.)

<table>

The <table> tag defines an HTML table. An HTML table consists of one <table> element and one or more <tr>, <th>, and <td> elements.

<nav>

defines a set of navigation links

<div>

A container for a block of content (other html elements)

<html>

Hypertext Markup Language. The tag represents the root of an HTML document and is the container for all other HTML elements.

<a>

The <a> tag defines a hyperlink, which is used to link from one page to another. The most important attribute of the <a> element is the href attribute, which indicates the link's destination.

<audio>

The <audio> tag is used to embed sound content in a document, such as music or other audio streams. The <audio> tag contains one or more <source> tags with different audio sources. The browser will choose the first source it supports. The text between the <audio> and </audio> tags will only be displayed in browsers that do not support the <audio> element.

<body>

The <body> tag defines the document's body. The <body> element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

<br>

The <br> tag inserts a single line break. The <br> tag is useful for writing addresses or poems. The <br> tag is an empty tag which means that it has no end tag.

<h1>, <h2>, <h3>, <h4> <h5>, <h6>

The <h1> to <h6> tags are used to define HTML headings. <h1> defines the most important heading. <h6> defines the least important heading.

<head>

The <head> element is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag.

<hr>

The <hr> tag defines a thematic break in an HTML page (e.g. a shift of topic). The <hr> element is most often displayed as a horizontal rule that is used to separate content (or define a change) in an HTML page.

<i>

The <i> tag defines a part of text in an alternate voice or mood. The content inside is typically displayed in italic. The <i> tag is often used to indicate a technical term, a phrase from another language, a thought, a ship name, etc.

<img>

The <img> tag is used to embed an image in an HTML page. Images are not technically inserted into a web page; images are linked to web pages. The <img> tag creates a holding space for the referenced image.

<li>

The <li> tag defines a list item. The <li> tag is used inside ordered lists(<ol>), unordered lists (<ul>), and in menu lists (<menu>).

<link>

The <link> tag defines the relationship between the current document and an external resource. The <link> tag is most often used to link to external style sheets. The <link> element is an empty element, it contains attributes only.

<ol>

The <ol> tag defines an ordered list. An ordered list can be numerical or alphabetical.

<td>

The <td> tag defines a standard data cell in an HTML table. The text in <td> elements are regular and left-aligned by default.

<th>

The <th> tag defines a header cell in an HTML table. The text in <th> elements are bold and centered by default.

<title>

The <title> tag defines the title of the document. The title must be text-only, and it is shown in the browser's title bar or in the page's tab. The <title> tag is required in HTML documents!

<tr>

The <tr> tag defines a row in an HTML table. A <tr> element contains one or more <th> or <td> elements.

<tt>

The <tt> tag was used in HTML 4 to define teletype text.

<u>

The <u> tag represents some text that is unarticulated and styled differently from normal text, such as misspelled words or proper names in Chinese text. The content inside is typically displayed with an underline. You can change this with CSS (see example below).

<video>

The <video> tag is used to embed video content in a document, such as a movie clip or other video streams. The <video> tag contains one or more <source> tags with different video sources. The browser will choose the first source it supports. The text between the <video> and </video> tags will only be displayed in browsers that do not support the <video> element.

<table border="1" bordercolor="#fff" cellpadding="1" cellspacing="2" width="100%" >

These are all ways to style a table within html.


Ensembles d'études connexes

AWS Certified Solutions Architect Associate

View Set

Chapter 6: Environmental Considerations

View Set

Fundamentals of Nursing Course Point Quiz CH. 8 (updated)

View Set