联网科技发展的速度真可谓惊人的快,一个稍不留神,你就可能无法跟上它的步伐。HTML5的变化和更新也压倒不少人,这篇文章将向大家介绍一些最基本也非常必要的HTML技巧。
- <!DOCTYPE html PUBLIC ”-//W3C//DTD XHTML 1.0 Transitional//EN”
- “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
- <!DOCTYPE html>
- <mg src=”path/to/image” alt=”About image” />
- <p>Image of Mars. </p>
- <figure>
- <img src=”path/to/image” alt=”About image” />
- <figcaption>
- <p>This is an image of something interesting. </p>
- </figcaption>
- </figure>
- <link rel=”stylesheet” href=”path/to/stylesheet.css” type=”text/css” />
- <script type=”text/javascript” src=”path/to/script.js”></script>
- <link rel=”stylesheet” href=”path/to/stylesheet.css” />
- <script src=”path/to/script.js”></script>
- <p class=myClass id=someId> Start the reactor.
- <!DOCTYPE html>
- <html lang=”en”>
- <head>
- <meta charset=”utf-8″>
- <title>untitled</title>
- </head>
- <body>
- <h2> To-Do List </h2>
- <ul contenteditable=”true”>
- <li> Break mechanical cab driver. </li>
- <li> Drive to abandoned factory
- <li> Watch video of self </li>
- </ul>
- </body>
- </html>
- <ul contenteditable=true>
- <!DOCTYPE html>
- <html lang=”en”>
- <head>
- <meta charset=”utf-8″>
- <title>untitled</title>
- </head>
- <body>
- <form action=”" method=”get”>
- <label for=”email”>Email:</label>
- <input id=”email” name=”email” type=”email” />
- <button type=”submit”> Submit Form </button>
- </form>
- </body>
- </html>