HTML tags

Ace your homework & exams now with Quizwiz!

<p> and </p>

The <p> tag defines a paragraph. Browsers automatically add some space (margin) before and after each <p> element. The margins can be modified with CSS (with the margin properties).

<doctype! html>

The <!DOCTYPE> declaration must be the very first thing in your HTML document, before the <html> tag. The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in.

<ul>

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

<a href="www.website.com"> link text here <a>

The <a> tag defines a hyperlink, which is used to link from one page to another.

<body>

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

<center>

The <center> tag is not supported in HTML5. Use CSS instead. The <center> tag is used to center-align text.

<h1> to <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 all the head elements. The <head> element must include a title for the document, and can include scripts, styles, meta information, and more. The following elements can go inside the <head> element: <title> (this element is required in the head section) <style> <base> <link> <meta> <script> <noscript>

<html>

The <html> tag tells the browser that this is an HTML document. The <html> tag represents the root of an HTML document. The <html> tag is the container for all other HTML elements (except for the <!DOCTYPE> tag).

<iframe>

The <iframe> tag specifies an inline frame. An inline frame is used to embed another document within the current HTML document.

<img src="URL or file reference">

The <img> tag defines an image in an HTML page. The <img> tag has two required attributes: src and alt. Note: Images are not technically inserted into an HTML page, images are linked to HTML pages. The <img> tag creates a holding space for the referenced image. Tip: To link an image to another document, simply nest the <img> tag inside <a> tags.

<li>

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

<ol>

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

<tabel>

The <table> tag defines an HTML table. An HTML table consists of the <table> element and one or more <tr>, <th>, and <td> elements. The <tr> element defines a table row, the <th> element defines a table header, and the <td> element defines a table cell. A more complex HTML table may also include <caption>, <col>, <colgroup>, <thead>, <tfoot>, and <tbody> elements.

<td>

The <td> tag defines a standard cell in an HTML table. An HTML table has two kinds of cells: Header cells - contains header information (created with the <th> element) Standard cells - contains data (created with the <td> element) The text in <th> elements are bold and centered by default. The text in <td> elements are regular and left-aligned by default.

<title>

The <title> tag is required in all HTML documents and it defines the title of the document. The <title> element: defines a title in the browser toolbar provides a title for the page when it is added to favorites displays a title for the page in search-engine results

<tr>

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


Related study sets

Intentional Torts, Unintentional Torts, and Strict Liability: An Overview

View Set

Chapter 1-2 Study Guide Economics

View Set

NU220 pharmocology chapter 49 drug therapy with opioids

View Set

Основные определения кинематики. Векторы. РПД

View Set

Chapter 5 Public goods, externalities and public policy MICRO FINAL EXAM

View Set

strategic management midterm beth hynes

View Set