- Web Developer's Reference Guide
- Joshua Johanan Talha Khan Ricardo Zea
- 187字
- 2021-07-09 20:18:20
Chapter 1. HTML Elements
HyperText Markup Language (HTML) is a language that annotates text. Annotation of text is done using elements. Using the following p
element, as an example, we will see how to use HTML:
<p>This is an example</p>
HTML elements also have attributes that will modify how they are rendered or interpreted. Attributes are added inside of the starting tag. Here is the class
attribute in a p
element:
<p class="example">This is an example</p>
There have been multiple specifications of HTML so far, but we will just look at the most commonly used and important elements of HTML5. HTML5 is the latest official specification, so we will be as future-proof as possible at the time of writing this book. You will want to follow the specifications of HTML as closely as possible. Most browsers are very forgiving and will render your HTML, but when you go beyond the specifications, you can and will run into strange rendering issues.
Note
All HTML elements will have global attributes. The attributes listed for each element in the sections that follow are the attributes beyond the global attributes.
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)(第三版)
- HTML5+CSS3王者歸來(lái)
- Moodle Administration Essentials
- Python入門很簡(jiǎn)單
- Vue.js快跑:構(gòu)建觸手可及的高性能Web應(yīng)用
- 人臉識(shí)別原理及算法:動(dòng)態(tài)人臉識(shí)別系統(tǒng)研究
- Julia高性能科學(xué)計(jì)算(第2版)
- 零基礎(chǔ)入門學(xué)習(xí)Python(第2版)
- Essential C++(中文版)
- FPGA嵌入式項(xiàng)目開(kāi)發(fā)實(shí)戰(zhàn)
- Arduino Wearable Projects
- Vue.js光速入門及企業(yè)項(xiàng)目開(kāi)發(fā)實(shí)戰(zhàn)
- 監(jiān)控的藝術(shù):云原生時(shí)代的監(jiān)控框架
- Appcelerator Titanium:Patterns and Best Practices
- WildFly Cookbook